guFrustum.3p 1.09 KB
.TH guFrustum 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
guFrustum, guFrustumF \- computes a perspective projection matrix.
.SH C SPECIFICATION
.nf
\f3#include "gu.h"

void guFrustum(Mtx m,
		float l, float r,
		float b, float t,
		float n, float f
		float scale)

void guFrustumF(float m[4][4],
		float l, float r,
		float b, float t,
		float n, float f
		float scale)

\fP
.fi
.SH PARAMETERS
.TP 10
.I m
resulting 4x4 projection matrix.
.TP
.I l, r
left and right vertical clipping planes coordinate at the "near" plane.
.TP
.I b, t
bottom and top horizontal clipping planes coordinate at the "near" plane.
.TP
.I n, f
distance to the near and far clipping planes.
.TP
.I scale
scale each element of the matrix.
Can be used to improve precision in the RSP fixed point arithmetic.
.SH DESCRIPTION
.I guFrustum
returns a fixed point 4x4 matrix 
.B m. 
For a detailed description of the 
fixed-point matrix format, see
.I gSPMatrix (3P).
.PP
.I guFrustumF
returns a floating point 4x4 matrix 
.B m. 

.SH SEE ALSO
.IR guOrtho (3P)
.IR guPerspective (3P)
.IR guLookAt (3P)
.IR gSPMatrix (3P)
.IR glFrustum (3G)