void GsSetProjection (
u_short h
)
|
Arguments
Return Value
None.
Explanation
Sets the projection distance to h.
The projection distance is the distance between the viewpoint and the
projection plane.
The size of the projection plane is specified by the (xres, yres)
arguments to GsInitGraph(). This size is
constant for a given resolution. This means that the field of view decreases
as the projection distance is increased, and conversely, the field of view
increases as the projection distance is decreased.
As shown in the table below, the aspect ratio is a function of the
screen resolution and may not always be 1 to 1. In particular, when the
resolution is 640 x 240, the X coordinate should be scaled by 1/2 to compensate.
Resolution
|
640x480
|
640x240
|
320x240
|
Aspect ratio
|
1:1
|
2:1
|
1:1
|
|