window - defines a perspective projection transformation
void window(left, right, bottom, top, near, far)
Coord left, right, bottom, top, near, far;
left expects x coordinate of left side of viewing volume.
right expects x coordinate of right side of viewing volume.
bottom expects y coordinate of bottom of viewing volume.
top expects y coordinate of top of viewing volume.
-near expects the z coordinate of the near clipping plane.
-far expects the z coordinate of the far clipping plane.
window specifies the position and size of the rectangular viewing frustum
closest to the eye (in the near clipping plane), and the location of the
far clipping plane. All objects contained within this volume are
projected in perspective onto the screen area that viewport defines.
When the system is in single matrix mode, window loads a matrix onto the
transformation stack, replacing the current top matrix. When the system
is in viewing, projection, or texture matrix mode, window replaces the
current Projection matrix and leaves the ModelView matrix stack and the
Texture matrix unchanged.
mmode, ortho, perspective, viewport
PPPPaaaaggggeeee 1111 [ Back ]