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

LsgTransform Struct Reference
[Scene Representation]

Geometry transformation node. More...

#include <transform.h>

Collaboration diagram for LsgTransform:

Collaboration graph
[legend]

Data Fields

LsgGroup super
Matrix tm

Related Functions

(Note that these are not member 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.

Apply a transformation matrix to all subnodes.


Friends And Related Function Documentation

LsgTransform * LsgTransform_create void   )  [related]
 

Allocate and initialize a transformation node.

Returns:
a new LsgTransform instance

void LsgTransform_init LsgTransform self  )  [related]
 

Constructor method for LsgTransform. Initialize the transformation to identity.

Parameters:
self The instance variable

void LsgTransform_update LsgTransform self,
float  now
[related]
 

Update all children and recompute the bounding box.

Parameters:
self The instance variable
now The current time

void LsgTransform_display LsgTransform self,
LsgFrustum frustum
[related]
 

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
[related]
 

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


The documentation for this struct was generated from the following file:
(c) 2003, by Enno Cramer
generated on 13 Jul 2003
lescegra - doxygen