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

perspectivecam.h File Reference

Perspective camera with location and lookat. More...

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

Include dependency graph for perspectivecam.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  LsgPerspectiveCam
 Perspective camera with location and lookat. More...


Defines

#define LSG_PERSPECTIVECAM_H   1
#define LsgPerspectiveCam_destroy(self)   LsgCamera_destroy(&(self)->super)

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.


Define Documentation

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

Destructor method for LsgPerspectiveCam. Reuse parent implementation.


Function Documentation

LsgPerspectiveCam* LsgPerspectiveCam_create void   ) 
 

Allocate and initialize a LsgPerspectiveCam.

Returns:
A new LsgPerspectiveCam instance

void LsgPerspectiveCam_init LsgPerspectiveCam self  ) 
 

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
 

Display a node as seen using this camera.

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