|
Public Types |
typedef std::vector< ShadowVolumeOccluder > | OccluderList |
typedef unsigned int | Mask |
enum | MaskValues {
NO_CULLING = 0x0,
VIEW_FRUSTUM_SIDES_CULLING = 0x1,
NEAR_PLANE_CULLING = 0x2,
FAR_PLANE_CULLING = 0x4,
VIEW_FRUSTUM_CULLING,
SMALL_FEATURE_CULLING = 0x8,
SHADOW_OCCLUSION_CULLING = 0x10,
DEFAULT_CULLING,
ENABLE_ALL_CULLING
} |
Public Member Functions |
| CullingSet () |
| CullingSet (const CullingSet &cs) |
| CullingSet (const CullingSet &cs, const Matrix &matrix, const Vec4 &pixelSizeVector) |
CullingSet & | operator= (const CullingSet &cs) |
void | set (const CullingSet &cs) |
void | set (const CullingSet &cs, const Matrix &matrix, const Vec4 &pixelSizeVector) |
void | setCullingMask (Mask mask) |
Mask | getCullingMask () const |
void | setFrustum (Polytope &cv) |
Polytope & | getFrustum () |
const Polytope & | getFrustum () const |
void | addOccluder (ShadowVolumeOccluder &cv) |
void | setPixelSizeVector (const Vec4 &v) |
Vec4 & | getPixelSizeVector () |
const Vec4 & | getPixelSizeVector () const |
void | setSmallFeatureCullingPixelSize (float value) |
float & | getSmallFeatureCullingPixelSize () |
float | getSmallFeatureCullingPixelSize () const |
float | pixelSize (const Vec3 &v, float radius) const |
float | pixelSize (const BoundingSphere &bs) const |
bool | isCulled (const std::vector< Vec3 > &vertices) |
bool | isCulled (const BoundingBox &bb) |
bool | isCulled (const BoundingSphere &bs) |
void | pushCurrentMask () |
void | popCurrentMask () |
void | disableAndPushOccludersCurrentMask (NodePath &nodePath) |
void | popOccludersCurrentMask (NodePath &nodePath) |
virtual | ~CullingSet () |
Protected Attributes |
Mask | _mask |
Polytope | _frustum |
OccluderList | _occluderList |
Vec4 | _pixelSizeVector |
float | _smallFeatureCullingPixelSize |