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

Method drawOneFrame

Platforms/OpenGL/OpenGLPlatform/src/MyGUI_OpenGLRenderManager.cpp:175–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 }
174
175 void OpenGLRenderManager::drawOneFrame()
176 {
177 Gui* gui = Gui::getInstancePtr();
178 if (gui == nullptr)
179 return;
180
181 static Timer timer;
182 static unsigned long last_time = timer.getMilliseconds();
183 unsigned long now_time = timer.getMilliseconds();
184 unsigned long time = now_time - last_time;
185
186 onFrameEvent(time / 1000.0f);
187
188 last_time = now_time;
189
190 begin();
191 onRenderToTarget(this, mUpdate);
192 end();
193
194 mUpdate = false;
195 }
196
197 void OpenGLRenderManager::setViewSize(int _width, int _height)
198 {

Callers

nothing calls this directly

Calls 2

getInstancePtrFunction · 0.85
getMillisecondsMethod · 0.80

Tested by

no test coverage detected