![]() |
• World Manager | ||
|
API Links
Developer Links
|
Node::SetOcclusionProcDefined in:
Sets the function that handles occlusion testing for a node.
C4Node.hPrototype
Parameters
Description
The SetOcclusionProc function installs the procedure that is called when occlusion testing is needed for a node. The OcclusionProc type is defined as follows.
Region class. Region::PolygonOccluded Region::SphereOccluded Region::EllipsoidOccluded Region::BoxOccluded Region::CylinderOccludedBy default, the Node::SphereOccluded function is installed as a node's occlusion procedure. This function passes the node's bounding sphere to the Region::SphereOccluded function for each region in the list to determine whether the node is visible.When the occlusion procedure function is called, the first region, passed as the second parameter, is guarenteed not to be nullptr. The ListElement::Next function should be used to iterate over all of the regions in the list.The Node::NeverOccluded function may be installed as the occlusion procedure to force a node to be unoccluded all the time.If a custom occlusion procedure is installed using the SetOcclusionProc, then a custom visibility procedure should also be installed using the Node::SetVisibilityProc function.
See Also
|