23 if (xmag == 0.0f && ymag != 0.0f) {
25 }
else if (xmag != 0.0f && ymag == 0.0f) {
26 ymag = xmag * viewport.getRatio();
27 }
else if (xmag == 0.0f && ymag == 0.0f) {
28 xmag = viewport.extent.width;
29 ymag = viewport.extent.height;
33 -xmag / 2.0f, xmag / 2.0f,
34 -ymag / 2.0f, ymag / 2.0f,
Math::Mat4x4f _projMatrix
Orthographic(const Orthographic &)=delete
Matrix< 4, 4, T > ortho(T left, T right, T bottom, T top, T zNear, T zFar)
const Viewport & getViewport() const
void updateProj() override final