Function ortho

Function Documentation

Matrix4f nanogui::ortho(float left, float right, float bottom, float top, float nearVal, float farVal)

Creates an orthographic projection matrix.

Parameters
  • left: The left border of the viewport.
  • right: The right border of the viewport.
  • bottom: The bottom border of the viewport.
  • top: The top border of the viewport.
  • nearVal: The near plane.
  • farVal: The far plane.