MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / RenderScene

Method RenderScene

deps/LLGL/examples/Cpp/PBR/Example.cpp:463–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461 }
462
463 void RenderScene()
464 {
465 commands->UpdateBuffer(*constantBuffer, 0, &settings, sizeof(settings));
466 commands->BeginRenderPass(*context);
467 {
468 commands->Clear(LLGL::ClearFlags::ColorDepth);
469 commands->SetViewport(context->GetResolution());
470 commands->SetVertexBuffer(*vertexBuffer);
471
472 RenderSkybox();
473 RenderMesh(meshes[currentMesh]);
474 }
475 commands->EndRenderPass();
476 }
477
478 void OnDrawFrame() override
479 {

Callers

nothing calls this directly

Calls 7

UpdateBufferMethod · 0.45
BeginRenderPassMethod · 0.45
ClearMethod · 0.45
SetViewportMethod · 0.45
GetResolutionMethod · 0.45
SetVertexBufferMethod · 0.45
EndRenderPassMethod · 0.45

Tested by

no test coverage detected