C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

Node::Visible

Defined in:  C4Node.h
Determines whether a node is visible within a given region.
Prototype

bool Visible(const Region *region) const;

Parameters
region The region for which the node should be tested for visibility.
Description
The Visible function calls a node's currently installed visibility procedure to determine whether the node is visible within the region specified by the region parameter. This function is normally only called from within the World Manager. The return value is true if the node is visible, and false otherwise.

By default, a node's visibility procedure tests the node's bounding sphere against the planes of the given region. A different visibility procedure can be installed by calling the Node::SetVisibilityProc function.
See Also

Node::SetVisibilityProc

Node::Occluded

Region