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

observercam.h File Reference

Perspective camera with location and heading. More...

#include <lescegra/sg/camera.h>
#include <lescegra/util/vertex.h>

Include dependency graph for observercam.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  LsgObserverCam
 Perspective camera with location and heading. More...


Defines

#define LSG_OBSERVERCAM_H   1
#define LsgObserverCam_destroy(self)   LsgCamera_destroy(&(self)->super)

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.


Define Documentation

#define LsgObserverCam_destroy self   )     LsgCamera_destroy(&(self)->super)
 

Destructor method for LsgObserverCam. Reuse parent implementation.


Function Documentation

LsgObserverCam* LsgObserverCam_create void   ) 
 

Allocate and initialize a LsgObserverCam.

Returns:
A new LsgObserverCam instance

void LsgObserverCam_init LsgObserverCam self  ) 
 

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
 

Display a node as seen using this LsgCamera.

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


(c) 2003, by Enno Cramer
generated on 9 Jul 2003
lescegra - doxygen