| 91 | static const float TEXT_MAX_DESCENT = 0.25f; |
| 92 | |
| 93 | static dmLuaDDF::LuaSource* LuaSourceFromStr(const char *str, int length = -1) |
| 94 | { |
| 95 | static dmLuaDDF::LuaSource src; |
| 96 | memset(&src, 0x00, sizeof(dmLuaDDF::LuaSource)); |
| 97 | src.m_Script.m_Data = (uint8_t*) str; |
| 98 | src.m_Script.m_Count = (length != -1) ? length : strlen(str); |
| 99 | src.m_Filename = "dummy"; |
| 100 | return &src; |
| 101 | } |
| 102 | |
| 103 | void OnWindowResizeCallback(const dmGui::HScene scene, uint32_t width, uint32_t height) |
| 104 | { |