![]() |
• World Manager | ||
|
API Links
Developer Links
|
Node::SetVisibilityProcDefined in:
Sets the function that handles visibility testing for a node.
C4Node.hPrototype
Parameters
Description
The SetVisibilityProc function installs the procedure that is called when visibility testing is needed for a node. The VisibilityProc type is defined as follows.
Region class. Region::PolygonVisible Region::SphereVisible Region::EllipsoidVisible Region::BoxVisible Region::CylinderVisibleBy default, the Node::SphereVisible function is installed as a node's visibility procedure. This function passes the node's bounding sphere to the Region::SphereVisible function to determine whether the node is visible.The Node::AlwaysVisible function may be installed as the visibility procedure to force a node to be visible all the time.If a custom visibility procedure is installed using the SetVisibilityProc, then a custom occlusion procedure should also be installed using the Node::SetOcclusionProc function if occlusion portals are in use.
See Also
|