MCPcopy Create free account
hub / github.com/LukasBanana/LLGL / OnDrawFrame

Method OnDrawFrame

examples/Cpp/ShadowMapping/Example.cpp:354–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352 }
353
354 void OnDrawFrame() override
355 {
356 // Update scene by user input
357 UpdateScene();
358
359 commands->Begin();
360 {
361 // Bind common input assembly
362 commands->SetVertexBuffer(*vertexBuffer);
363
364 // Draw scene into shadow-map, then draw scene onto screen
365 commands->PushDebugGroup("Shadow Map Pass");
366 RenderShadowMap();
367 commands->PopDebugGroup();
368
369 commands->PushDebugGroup("Scene Pass");
370 RenderScene();
371 commands->PopDebugGroup();
372 }
373 commands->End();
374 commandQueue->Submit(*commands);
375 }
376
377};
378

Callers

nothing calls this directly

Calls 7

UpdateSceneFunction · 0.85
BeginMethod · 0.65
SetVertexBufferMethod · 0.65
PushDebugGroupMethod · 0.65
PopDebugGroupMethod · 0.65
EndMethod · 0.65
SubmitMethod · 0.45

Tested by

no test coverage detected