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

frustum.h File Reference

View Frustum. More...

#include <lescegra/util/object.h>
#include <lescegra/util/vertex.h>
#include <lescegra/util/matrix.h>

Include dependency graph for frustum.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  LsgPlane
 Clipping plane. More...

struct  LsgFrustum
 View Frustum. More...


Defines

#define LSG_FRUSTUM_H   1
#define LsgFrustum_destroy(self)   LsgObject_destroy(&(self)->super)

Functions

LsgFrustumLsgFrustum_create (const Matrix projection, const Matrix modelview)
void LsgFrustum_init (LsgFrustum *self, const Matrix projection, const Matrix modelview)
void LsgFrustum_transform (LsgFrustum *self, const Matrix projection, const Matrix modelview)
void LsgFrustum_updatePlanes (LsgFrustum *self)


Detailed Description

View Frustum.


Define Documentation

#define LsgFrustum_destroy self   )     LsgObject_destroy(&(self)->super)
 

The destructor method for LsgFrustum. Reuse parent implementation.


Function Documentation

LsgFrustum* LsgFrustum_create const Matrix  projection,
const Matrix  modelview
 

Allocate and initialize a view frustum.

Parameters:
projection The projection matrix
modelview The modelview matrix
Returns:
The view frustum as defined by projection and modelview

void LsgFrustum_init LsgFrustum self,
const Matrix  projection,
const Matrix  modelview
 

Constructor method for LsgFrustum.

Parameters:
self The instance variable
projection The projection matrix
modelview The modelview matrix

void LsgFrustum_transform LsgFrustum self,
const Matrix  projection,
const Matrix  modelview
 

Transform a view frustum.

Parameters:
self The instance variable
projection The transformation matrix for the projection matrix
modelview The transformation matrix for the modelview matrix

void LsgFrustum_updatePlanes LsgFrustum self  ) 
 

Update the clipping planes after transforming the defining projection and/or modelview matrix.

Parameters:
self The instance variable


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