Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

LsgPerspectiveCam Struct Reference

Perspective camera with location and lookat. More...

#include <perspectivecam.h>

Collaboration diagram for LsgPerspectiveCam:

Collaboration graph
[legend]

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.)

LsgPerspectiveCamLsgPerspectiveCam_create (void)
void LsgPerspectiveCam_init (LsgPerspectiveCam *self)
void LsgPerspectiveCam_display (LsgPerspectiveCam *self, LsgFrustum *frust, LsgNode *node)

Detailed Description

Perspective camera with location and lookat.

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.


Friends And Related Function Documentation

LsgPerspectiveCam * LsgPerspectiveCam_create void   )  [related]
 

Allocate and initialize a LsgPerspectiveCam.

Returns:
A new LsgPerspectiveCam instance

void LsgPerspectiveCam_init LsgPerspectiveCam self  )  [related]
 

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.

Parameters:
self The instance variable

void LsgPerspectiveCam_display LsgPerspectiveCam self,
LsgFrustum frust,
LsgNode node
[related]
 

Display a node as seen using this camera.

Parameters:
self The instance variable
frustum The initial view frustum
node The node to display


The documentation for this struct was generated from the following file:
(c) 2003, by Enno Cramer
generated on 13 Jul 2003
lescegra - doxygen