MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / RunFrameInstance

Function RunFrameInstance

Source/Player/WinMain.cpp:263–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263static bool RunFrameInstance(int elapsedMsec) {
264 if (!ProcessEventLoop()) {
265 return false;
266 }
267
268 BE1::Engine::RunFrame(elapsedMsec);
269
270 BE1::gameClient.Update();
271
272 app.Update();
273
274 app.mainRenderContext->Display();
275
276 BE1::gameClient.EndFrame();
277
278 return true;
279}
280
281int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) {
282 const HCURSOR hcurSave = ::SetCursor(LoadCursor(0, IDC_WAIT));

Callers 1

_tWinMainFunction · 0.70

Calls 4

DisplayMethod · 0.80
ProcessEventLoopFunction · 0.70
UpdateMethod · 0.45
EndFrameMethod · 0.45

Tested by

no test coverage detected