Added bx::Location, and removed allocator macros.

This commit is contained in:
Branimir Karadžić
2023-04-23 19:19:22 -07:00
parent 277b5f4ada
commit 290295136b
42 changed files with 314 additions and 314 deletions

View File

@@ -98,7 +98,7 @@ public:
if (swapChainSupported)
{
m_bindings = (InputBinding*)BX_ALLOC(entry::getAllocator(), sizeof(InputBinding)*3);
m_bindings = (InputBinding*)bx::alloc(entry::getAllocator(), sizeof(InputBinding)*3);
m_bindings[0].set(entry::Key::KeyC, entry::Modifier::None, 1, cmdCreateWindow, this);
m_bindings[1].set(entry::Key::KeyD, entry::Modifier::None, 1, cmdDestroyWindow, this);
m_bindings[2].end();
@@ -160,7 +160,7 @@ public:
}
inputRemoveBindings("22-windows");
BX_FREE(entry::getAllocator(), m_bindings);
bx::free(entry::getAllocator(), m_bindings);
// Cleanup.
bgfx::destroy(m_ibh);