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:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
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
|
|
Allocate and initialize a transformation node. |
|
|
Constructor method for LsgTransform. Initialize the transformation to identity. - Parameters:
-
| self | The instance variable |
|
|
|
Update all children and recompute the bounding box. - Parameters:
-
| self | The instance variable |
| now | The current time |
|
|
|
Display all children with a transformed view frustum and changed OpenGL modelview matrix. - Parameters:
-
| self | The instance variable |
| frustum | The view frustum |
|
|
|
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
|