| 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 | { |
nothing calls this directly
no test coverage detected