[AE Engine logo] Public API Reference
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

aeFrustumCuller Class Reference

Engine level Interface to the frustum culler. More...

#include <frustum.h>

Inheritance diagram for aeFrustumCuller:

aeBase List of all members.

Public Member Functions

void extractFrustum ()
 Extract the current view-frustum.

bool pointInFrustum (aeVector3 point)
 Check if a point is in the frustum.

bool sphereInFrustum (aeVector3 center, float radius)
 Check if an object's bounding sphere is in the frustum.

bool cubeInFrustum (aeVector3 center, float size)
 Check if an object's bounding box is in the frustum.


Private Attributes

float frustum [6][4]

Detailed Description

Engine level Interface to the frustum culler.

Definition at line 35 of file frustum.h.


Member Function Documentation

bool aeFrustumCuller::cubeInFrustum aeVector3    center,
float    size
 

Check if an object's bounding box is in the frustum.

Parameters:
center The origin of the object to check.
size The bounding box size (half of the cube's length).
Returns:
True if the object's bounding box is visible by the camera, false if not.

void aeFrustumCuller::extractFrustum  
 

Extract the current view-frustum.

This is called each frame by the engine rendering loop.

bool aeFrustumCuller::pointInFrustum aeVector3    point
 

Check if a point is in the frustum.

Parameters:
point The point (vertex) to check.
Returns:
True if the point is currently visible by the camera, false if not.

bool aeFrustumCuller::sphereInFrustum aeVector3    center,
float    radius
 

Check if an object's bounding sphere is in the frustum.

Parameters:
center The origin of the object to check.
radius The bounding sphere radius of the object.
Returns:
True if the object's bounding sphere is visible by the camera, false if not.


The documentation for this class was generated from the following file:
AE Engine Public API Reference
Generated on Wed Apr 9 09:43:40 2003 by Doxygen.