| 310 | } |
| 311 | |
| 312 | void OnDrawFrame() override |
| 313 | { |
| 314 | // Update scene by user input |
| 315 | timer.MeasureTime(); |
| 316 | UpdateScene(static_cast<float>(timer.GetDeltaTime())); |
| 317 | |
| 318 | commands->Begin(); |
| 319 | { |
| 320 | // Bind common input assembly |
| 321 | commands->SetVertexBuffer(*vertexBuffer); |
| 322 | |
| 323 | // Render everything directly into the swap-chain |
| 324 | commands->BeginRenderPass(*swapChain); |
| 325 | { |
| 326 | commands->Clear(LLGL::ClearFlags::ColorDepth, backgroundColor); |
| 327 | commands->SetViewport(swapChain->GetResolution()); |
| 328 | RenderScene(); |
| 329 | } |
| 330 | commands->EndRenderPass(); |
| 331 | } |
| 332 | commands->End(); |
| 333 | commandQueue->Submit(*commands); |
| 334 | } |
| 335 | |
| 336 | }; |
| 337 |
nothing calls this directly
no test coverage detected