In file include/csgame/gworld.h:

class csBspNode

A BSP node

Private Fields

csBspNode* back
The back node.
int dynamic_idx
If not -1 then this is the index of the first dynamic polygon in the list of polygons
csBspNode* front
The front node.
int max
int num
csPolygonInt** polygons
All the polygons in this node

Private Methods

void AddPolygon(csPolygonInt* poly, bool dynamic = false)
Add a polygon to this BSP node
csBspNode()
Make an empty BSP node.
void RemoveDynamicPolygons()
Remove all dynamic polygons
~csBspNode()
Destroy this BSP node

Documentation

A BSP node
csPolygonInt** polygons
All the polygons in this node. These polygons are all on the same plane. The 'front' and 'back' children in this node are seperated by that plane.

int num

int max

int dynamic_idx
If not -1 then this is the index of the first dynamic polygon in the list of polygons

csBspNode* front
The front node.

csBspNode* back
The back node.

csBspNode()
Make an empty BSP node.

~csBspNode()
Destroy this BSP node. The list of polygons will be deleted but not the polygons themselves.

void AddPolygon(csPolygonInt* poly, bool dynamic = false)
Add a polygon to this BSP node. If 'dynamic' is true it will be a dynamic polygon. Dynamic polygons can be removed all at once with RemoveDynamicPolygons().

void RemoveDynamicPolygons()
Remove all dynamic polygons


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de