Matrix.initOrtho

graphene.matrix.Matrix initOrtho(float left, float right, float top, float bottom, float zNear, float zFar)

Initializes a #graphene_matrix_t with an orthographic projection.

Parameters

leftthe left edge of the clipping plane
rightthe right edge of the clipping plane
topthe top edge of the clipping plane
bottomthe bottom edge of the clipping plane
zNearthe distance of the near clipping plane
zFarthe distance of the far clipping plane

Returns

the initialized matrix