Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csCBufferCube Class Reference

A cbuffer cube is a set of six c-buffers arranged in a cube. More...

#include <cbufcube.h>

List of all members.

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...


Detailed Description

A cbuffer cube is a set of six c-buffers arranged in a cube.


Member Function Documentation

bool csCBufferCube::InsertPolygon ( csVector3 * verts,
int num_verts )
 

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).

bool csCBufferCube::TestPolygon ( csVector3 * verts,
int num_verts )
 

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).


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000