| 1046 | } |
| 1047 | |
| 1048 | Gs::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 | |
| 1055 | Gs::Quaternionf ExampleBase::Rotation(float x, float y) const |
| 1056 | { |
nothing calls this directly
no test coverage detected