38 "SLNodeLOD::addChildLOD min. LOD limit must be > 0 and < 1");
42 SL_EXIT_MSG(
"SLNodeLOD::addChildLOD: A new child LOD node must have a smaller LOD limit than the last one.");
67 isVisible = rectCoverage >=
_children[i]->minLodCoverage();
69 isVisible = rectCoverage <
_children[i - 1]->minLodCoverage() &&
70 rectCoverage >=
_children[i]->minLodCoverage();
#define SL_EXIT_MSG(message)
#define SL_DB_HIDDEN
Flags an object as hidden.
SLfloat rectCoverageInSS()
Calculates the bounding rectangle in screen space and returns coverage in SS.
void isVisible(SLbool visible)
void set(SLuint bit, SLbool state)
Sets the specified bit to the passed state.
SLNode represents a node in a hierarchical scene graph.
void addChild(SLNode *child)
void minLodCoverage(SLfloat minLodCoverage)
SLAABBox _aabb
axis aligned bounding box
SLVNode _children
vector of children nodes
void levelForSM(SLubyte lfsm)
void addChildLOD(SLNode *child, SLfloat minLodLimit, SLubyte levelForSM=0)
Adds an LOD node with forced decreasing min LOD coverage.
virtual void cullChildren3D(SLSceneView *sv)
Culls the LOD children by evaluating the the screen space coverage.
SceneView class represents a dynamic real time 3D view onto the scene.