ortho


Description:


public void ortho (float left, float right, float bottom, float top, float near, float far)

Replaces the current projection matrix with an orthographic projection matrix.

Note:

Use cogl_framebuffer_orthographic instead

See cogl-ortho-matrix to see how the matrix is calculated.

:

Note:

This function copies the arguments from OpenGL's glOrtho even though they are unnecessarily confusing due to the z near and z far arguments actually being a "distance" from the origin, where negative values are behind the viewer, instead of coordinates for the z clipping planes which would have been consistent with the left, right bottom and top arguments.

Parameters:

left

The coordinate for the left clipping plane

right

The coordinate for the right clipping plane

bottom

The coordinate for the bottom clipping plane

top

The coordinate for the top clipping plane

near

The distance to the near clipping plane (negative if the plane is behind the viewer)

far

The distance for the far clipping plane (negative if the plane is behind the viewer)


Namespace: Cogl
Package: cogl-1.0