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

LsgObserverCam Struct Reference

Perspective camera with location and heading. More...

#include <observercam.h>

Collaboration diagram for LsgObserverCam:

Collaboration graph
[legend]

Data Fields

LsgCamera super
Vertex location
Vertex heading
Vertex up
float fovy
float aspect
float dmin
float dmax

Related Functions

(Note that these are not member functions.)

LsgObserverCamLsgObserverCam_create (void)
void LsgObserverCam_init (LsgObserverCam *self)
void LsgObserverCam_display (LsgObserverCam *self, LsgFrustum *frust, LsgNode *node)

Detailed Description

Perspective camera with location and heading.

A perspective camera that is defined by the three vertices location, heading and up, the field-of-view and a minimal and maximal viewing distance.


Friends And Related Function Documentation

LsgObserverCam * LsgObserverCam_create void   )  [related]
 

Allocate and initialize a LsgObserverCam.

Returns:
A new LsgObserverCam instance

void LsgObserverCam_init LsgObserverCam self  )  [related]
 

Constructor method for LsgObserverCam. Initialize the LsgCamera as looking from {0, 0, -1} along the positive z axis with the second (y) axis being up. The initial field-of-view is 45 degrees in both directions.

Parameters:
self The instance variable

void LsgObserverCam_display LsgObserverCam self,
LsgFrustum frust,
LsgNode node
[related]
 

Display a node as seen using this LsgCamera.

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