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

group.h File Reference

Basic grouping node. More...

#include <lescegra/sg/node.h>
#include <lescegra/util/list.h>
#include <lescegra/util/vertex.h>
#include <lescegra/util/frustum.h>

Include dependency graph for group.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  LsgGroup
 Basic grouping node. More...


Defines

#define LSG_GROUP_H   1

Functions

LsgGroupLsgGroup_create (void)
void LsgGroup_init (LsgGroup *self)
void LsgGroup_clean (LsgGroup *self)
void LsgGroup_update (LsgGroup *self, float time)
void LsgGroup_display (LsgGroup *self, LsgFrustum *frustum)
int LsgGroup_collide (LsgGroup *self, Vertex v, Vertex nearest)
void LsgGroup_destroy (LsgGroup *self)


Detailed Description

Basic grouping node.


Function Documentation

LsgGroup* LsgGroup_create void   ) 
 

Allocate and initialize a new LsgGroup.

Returns:
A new LsgGroup instance

void LsgGroup_init LsgGroup self  ) 
 

Constructor method for LsgGroup.

Parameters:
self The instance variable

void LsgGroup_clean LsgGroup self  ) 
 

Clean all children.

Parameters:
self The instance variable

void LsgGroup_update LsgGroup self,
float  time
 

Update all children.

Parameters:
self The instance variable
now The current time

void LsgGroup_display LsgGroup self,
LsgFrustum frustum
 

Display all subnodes if they are visible within the current view frustum.

Parameters:
self The instance variable
frustum The current view frustum

int LsgGroup_collide LsgGroup self,
Vertex  v,
Vertex  nearest
 

Check for collision with all 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 collides with at least one child, 0 otherwise

void LsgGroup_destroy LsgGroup self  ) 
 

Destructor method for LsgGroup.

Parameters:
self The instance variable


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