MCPcopy Create free account
hub / github.com/LukasBanana/LLGL / UpdateModelTransform

Function UpdateModelTransform

examples/Cpp/RenderTarget/Example.cpp:376–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374 #endif // /ENABLE_RESOURCE_HEAP
375
376 void UpdateModelTransform(Settings& settings, const Gs::Matrix4f& proj, float rotation, const Gs::Vector3f& axis = { 0, 1, 0 })
377 {
378 Gs::Translate(settings.wMatrix, { 0, 0, 5 });
379 Gs::RotateFree(settings.wMatrix, axis.Normalized(), rotation);
380 settings.wvpMatrix = proj * settings.wMatrix;
381 }
382
383 static const auto shaderStages = LLGL::StageFlags::VertexStage | LLGL::StageFlags::FragmentStage;
384

Callers 2

UpdateSettingsForTextureFunction · 0.85
UpdateSettingsForScreenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected