| 402 | } |
| 403 | |
| 404 | void UpdateScene() |
| 405 | { |
| 406 | // Update scene animation (simple rotation) |
| 407 | if (input->KeyPressed(LLGL::Key::LButton)) |
| 408 | rotation.x += static_cast<float>(input->GetMouseMotion().x)*0.005f; |
| 409 | if (input->KeyPressed(LLGL::Key::RButton)) |
| 410 | rotation.y += static_cast<float>(input->GetMouseMotion().x)*0.005f; |
| 411 | |
| 412 | // Check if user wants to sage the render target texture to file |
| 413 | if (input->KeyDown(LLGL::Key::F4)) |
| 414 | SaveTexture(*renderTargetTex, "Screenshot." + GetModuleName() + ".png"); |
| 415 | } |
| 416 | |
| 417 | void DrawSceneIntoTexture() |
| 418 | { |
no test coverage detected