MCPcopy Create free account
hub / github.com/MethanePowered/MethaneKit / Animate

Method Animate

Apps/06-CubeMapArray/CubeMapArrayApp.cpp:204–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204bool CubeMapArrayApp::Animate(double, double delta_seconds)
205{
206 m_camera.Rotate(m_camera.GetOrientation().up, static_cast<float>(delta_seconds * 360.0 / 16.0));
207 m_model_matrix = hlslpp::mul(m_model_matrix,
208 hlslpp::mul(hlslpp::float4x4::rotation_z(static_cast<float>(delta_seconds * std::numbers::pi / 2.0)),
209 hlslpp::float4x4::rotation_y(static_cast<float>(delta_seconds * std::numbers::pi / 4.0))));
210 return true;
211}
212
213bool CubeMapArrayApp::Resize(const gfx::FrameSize& frame_size, bool is_minimized)
214{

Callers

nothing calls this directly

Calls 1

RotateMethod · 0.80

Tested by

no test coverage detected