glPerspective

Construct an optionally non-symmetric perspective matrix

  1. mat4 glPerspective(float fovy, float aspect, float near, float far)
  2. mat4 glPerspective(float left, float right, float bottom, float top, float near, float far)
    nothrow @nogc
    mat4
    glPerspective
    (
    float left
    ,
    float right
    ,
    float bottom
    ,
    float top
    ,
    float near
    ,
    float far
    )
    in { assert (right - left != 0); assert (top - bottom != 0); assert (far - near != 0); }

Meta