| 32 | static char g_textPool[TEXT_POOL_SIZE]; |
| 33 | static unsigned g_textPoolSize = 0; |
| 34 | static const char* allocText(const char* text) |
| 35 | { |
| 36 | int len = (int)(strlen(text)+1); |
| 37 | if (g_textPoolSize + len >= TEXT_POOL_SIZE) |
| 38 | return 0; |
| 39 | char* dst = &g_textPool[g_textPoolSize]; |
| 40 | memcpy(dst, text, len); |
| 41 | g_textPoolSize += len; |
| 42 | return dst; |
| 43 | } |
| 44 | |
| 45 | static const unsigned GFXCMD_QUEUE_SIZE = 5000; |
| 46 | static imguiGfxCmd g_gfxCmdQueue[GFXCMD_QUEUE_SIZE]; |