mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Added ability to configure entry allocator.
This commit is contained in:
parent
4f28cffa1a
commit
804a460d75
2 changed files with 5 additions and 1 deletions
|
@ -22,7 +22,7 @@ namespace entry
|
||||||
static bool s_exit = false;
|
static bool s_exit = false;
|
||||||
static bx::FileReaderI* s_fileReader = NULL;
|
static bx::FileReaderI* s_fileReader = NULL;
|
||||||
static bx::FileWriterI* s_fileWriter = NULL;
|
static bx::FileWriterI* s_fileWriter = NULL;
|
||||||
static bx::CrtAllocator s_allocator;
|
static ENTRY_CONFIG_ALLOCATOR s_allocator;
|
||||||
|
|
||||||
bool setOrToggle(uint32_t& _flags, const char* _name, uint32_t _bit, int _first, int _argc, char const* const* _argv)
|
bool setOrToggle(uint32_t& _flags, const char* _name, uint32_t _bit, int _first, int _argc, char const* const* _argv)
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,6 +39,10 @@
|
||||||
# error "Both ENTRY_DEFAULT_WIDTH and ENTRY_DEFAULT_HEIGHT must be defined."
|
# error "Both ENTRY_DEFAULT_WIDTH and ENTRY_DEFAULT_HEIGHT must be defined."
|
||||||
#endif // ENTRY_DEFAULT_WIDTH
|
#endif // ENTRY_DEFAULT_WIDTH
|
||||||
|
|
||||||
|
#ifndef ENTRY_CONFIG_ALLOCATOR
|
||||||
|
# define ENTRY_CONFIG_ALLOCATOR bx::CrtAllocator
|
||||||
|
#endif // ENTRY_CONFIG_ALLOCATOR
|
||||||
|
|
||||||
#define ENTRY_IMPLEMENT_EVENT(_class, _type) \
|
#define ENTRY_IMPLEMENT_EVENT(_class, _type) \
|
||||||
_class(WindowHandle _handle) : Event(_type, _handle) {}
|
_class(WindowHandle _handle) : Event(_type, _handle) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue