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

Method OrthogonalProjection

examples/Cpp/ExampleBase/ExampleBase.cpp:1048–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1046}
1047
1048Gs::Matrix4f ExampleBase::OrthogonalProjection(float width, float height, float near, float far) const
1049{
1050 const bool isClipRangeUnitCube = (renderer->GetRenderingCaps().clippingRange == LLGL::ClippingRange::MinusOneToOne);
1051 int flags = (isClipRangeUnitCube ? Gs::ProjectionFlags::UnitCube : 0);
1052 return Gs::ProjectionMatrix4f::Orthogonal(width, height, near, far, flags).ToMatrix4();
1053}
1054
1055Gs::Quaternionf ExampleBase::Rotation(float x, float y) const
1056{

Callers

nothing calls this directly

Calls 1

GetRenderingCapsMethod · 0.65

Tested by

no test coverage detected