MCPcopy Create free account
hub / github.com/MyGUI/mygui / drawOneFrame

Method drawOneFrame

Wrappers/MyGUI_Export/MyGUI_ExportRenderManager.cpp:79–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 void ExportRenderManager::drawOneFrame()
80 {
81 Gui* gui = Gui::getInstancePtr();
82 if (gui == nullptr)
83 return;
84
85 static Timer timer;
86 static unsigned long last_time = timer.getMilliseconds();
87 unsigned long now_time = timer.getMilliseconds();
88 unsigned long time = now_time - last_time;
89
90 onFrameEvent(time / 1000.0f);
91
92 last_time = now_time;
93
94 begin();
95 onRenderToTarget(this, mUpdate);
96 end();
97
98 mUpdate = false;
99 }
100
101 void ExportRenderManager::begin()
102 {

Callers 1

Calls 2

getInstancePtrFunction · 0.85
getMillisecondsMethod · 0.80

Tested by

no test coverage detected