guFrustum.3p
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.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)