#include <perspectivecam.h>
Collaboration diagram for LsgPerspectiveCam:

Data Fields | |
| LsgCamera | super |
| Vertex | location |
| Vertex | lookat |
| Vertex | up |
| float | fovy |
| float | aspect |
| float | dmin |
| float | dmax |
Related Functions | |
| (Note that these are not member functions.) | |
| LsgPerspectiveCam * | LsgPerspectiveCam_create (void) |
| void | LsgPerspectiveCam_init (LsgPerspectiveCam *self) |
| void | LsgPerspectiveCam_display (LsgPerspectiveCam *self, LsgFrustum *frust, LsgNode *node) |
A perspective camera that is defined by the three vertices location, lookat and up, the field-of-view and a minimal and maximal viewing distance.
|
|
Allocate and initialize a LsgPerspectiveCam.
|
|
|
Constructor method for LsgPerspectiveCam. Initialize the camera as looking from {0, 0, -1} to the center of the coordinate system with the second (y) axis being up. The initial field-of-view is 45 degrees in both directions.
|
|
||||||||||||||||
|
Display a node as seen using this camera.
|