A SERVICE OF

logo

csPerspCamera
103
Setting the Clip Planes
You use the following elds to set the distance to the near and far clip planes:
void setNearClip(csFloat nearClip);
void setFarClip(csFloat farClip);
There is a corresponding get...() eld for each set...() eld.
Setting the Fields of View
You use the following elds to set the horizontal and vertical elds of view (FOV) of the
frustum. The arguments are the angles, in degrees, of the elds of view.
void setHorizFOV(csFloat horizFOV);
void setVertFOV(csFloat vertFOV);
There is a corresponding get...() eld for each set...() eld.
Offsetting the Fields of View
By default, the elds of view are centered around the Z axis. csPerspCamera, however,
enables you to offset the elds of view both horizontally and vertically, as shown in
Figure 9-5.