glFrustum - part-cw/lambdanative GitHub Wiki
(glFrustum left right bottom top nearVal farVal)
glFrustum multiplies the current matrix by a perspective matrix.
Parameter | Description |
---|---|
left | Coordinates for left vertical clipping plane |
right | Coordinates for right vertical clipping plane |
bottom | Coordinate for bottom horizontal clipping plane |
top | Coordinate for top horizontal clipping plane |
nearVal | Distances to near depth clipping plane (>0) |
farVal | Distances to far depth clipping planes (>0) |
Example
Example 1: From DemoCube's custom rendering function
(glFrustum -1.0 1.0 -1.0 1.0 1.5 20.0)