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

Function UpdateScene

deps/LLGL/examples/Cpp/RenderTarget/Example.cpp:404–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 9

OnDrawFrameMethod · 0.85
OnDrawFrameMethod · 0.85
OnDrawFrameFunction · 0.85
OnDrawFrameMethod · 0.85
OnDrawFrameMethod · 0.85
OnDrawFrameMethod · 0.85
OnDrawFrameMethod · 0.85
OnDrawFrameMethod · 0.85
OnDrawFrameMethod · 0.85

Calls 3

KeyPressedMethod · 0.80
KeyDownMethod · 0.80
GetModuleNameFunction · 0.50

Tested by

no test coverage detected