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