#include <cbufcube.h>
Public Methods | |
csCBufferCube (int dim) | |
Make the cube for the box. | |
~csCBufferCube () | |
Destroy this cube. | |
void | MakeEmpty () |
Make cube empty. | |
bool | IsFull () |
Is the cube full? | |
bool | InsertPolygon (csVector3 *verts, int num_verts) |
Insert a polygon into the cube. More... | |
bool | TestPolygon (csVector3 *verts, int num_verts) |
Test for polygon visibility with the cube. More... |
|
Insert a polygon into the cube. Return true if the cube was modified (i.e. if parts of the polygon were visible. The polygon does not actually need to be a polygon. It can be a general frustum. Note that the frustum is assumed to start at (0,0,0). |
|
Test for polygon visibility with the cube. Return true if polygon is visible. The polygon does not actually need to be a polygon. It can be a general frustum. Note that the frustum is assumed to start at (0,0,0). |