Next: , Previous: , Up: GLU API   [Index]


4.1.3 Matrix Manipulation

Function: glu-perspective fov-y aspect z-near z-far

Set up a perspective projection matrix.

fov-y is the field of view angle, in degrees, in the Y direction. aspect is the ratio of width to height. z-near and z-far are the distances from the viewer to the near and far clipping planes, respectively.

The resulting matrix is multiplied against the current matrix.