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

transform.h File Reference

Geometry transformation node. More...

#include <lescegra/sg/group.h>
#include <lescegra/util/vertex.h>
#include <lescegra/util/matrix.h>
#include <lescegra/util/frustum.h>

Include dependency graph for transform.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  LsgTransform
 Geometry transformation node. More...


Defines

#define LSG_TRANSFORM_H   1
#define LsgTransform_clean(self)   LsgGroup_clean(&(self)->super)
#define LsgTransform_destroy(self)   LsgGroup_destroy(&(self)->super)

Functions

LsgTransformLsgTransform_create (void)
void LsgTransform_init (LsgTransform *self)
void LsgTransform_update (LsgTransform *self, float now)
void LsgTransform_display (LsgTransform *self, LsgFrustum *frustum)
int LsgTransform_collide (LsgTransform *self, Vertex v, Vertex nearest)


Detailed Description

Geometry transformation node.


Define Documentation

#define LsgTransform_clean self   )     LsgGroup_clean(&(self)->super)
 

Clean all children. Reuse parent implementation.

#define LsgTransform_destroy self   )     LsgGroup_destroy(&(self)->super)
 

Destructor method for LsgTransform. Reuse parent implementation.


Function Documentation

LsgTransform* LsgTransform_create void   ) 
 

Allocate and initialize a transformation node.

void LsgTransform_init LsgTransform self  ) 
 

Constructor method for LsgTransform. Initialize the transformation to identity.

Parameters:
self The instance variable

void LsgTransform_update LsgTransform self,
float  now
 

Update all children and recompute the bounding box.

Parameters:
self The instance variable
now The current time

void LsgTransform_display LsgTransform self,
LsgFrustum frustum
 

Display all children with a transformed view frustum and changed OpenGL modelview matrix.

Parameters:
self The instance variable
frustum The view frustum

int LsgTransform_collide LsgTransform self,
Vertex  v,
Vertex  nearest
 

Compute collision with transformed children.

Parameters:
self The instance variable
v Some vertex
nearest A buffer to store the nearest vertex to v that would collide with any child
Returns:
1 if v after being transformed collides with at least one child, 0 otherwise


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