Functions | |
void | Set_Camera_Position (double x, double y, double z) |
void | DSet_Camera_Position (double x, double y, double z) |
void Set_Camera_Position | ( | double | x, |
double | y, | ||
double | z | ||
) |
Sets up your viewing tripod within the framework of the scene you've created.
x | - The position, in object-space coordinates, at which to locate your vantage point. |
y | - |
z | - |
In order to look at the scene you've created, you need some way of telling the system where to locate and aim its "TV camera". Set_Camera_By_Volume() is a simple utility that makes some assumptions and lets you quickly set up a 2-D camera. At the other extreme, the generic Set_Camera() routine requires complete details about every aspect of arranging the camera. In between these extremes are a set of routines (see below) that let you vary one detail at a time. In particular, Set_Camera_Position() lets you say where in your scene the camera is to stand, and Set_Camera_Target() lets you say what it's pointing at.
If no camera exists in the specified segment, then a complete default camera will be provided, without regard to any camera specifications that there may be in the higher-up segments.
If, at Update time, the camera ends up positioned right on top of the camera target, an error is reported.
void DSet_Camera_Position | ( | double | x, |
double | y, | ||
double | z | ||
) |
Similar to Set_Camera_Position(). This command should be used in conjunction with other set camera functions in the HOOPS double-precision header, hcd.h.
x | - The position, in object-space coordinates, at which to locate your vantage point. |
y | - |
z | - |
No additional details. See Set_Camera_Position()