本文整理汇总了C++中Spatial::OnGetVisibleSet方法的典型用法代码示例。如果您正苦于以下问题:C++ Spatial::OnGetVisibleSet方法的具体用法?C++ Spatial::OnGetVisibleSet怎么用?C++ Spatial::OnGetVisibleSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Spatial
的用法示例。
在下文中一共展示了Spatial::OnGetVisibleSet方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetVisibleSet
//----------------------------------------------------------------------------
void Node::GetVisibleSet(Culler& rCuller, Bool noCull)
{
for (UInt i = 0; i < mEffects.GetQuantity(); i++)
{
// This is a global effect. Place a 'begin' marker in the visible
// set to indicate the effect is active.
rCuller.Insert(mEffects[i], NULL);
}
GetVisibleSetRenderObject(rCuller, noCull);
// All RenderObjects in the subtree are added to the visible set. If
// a global effect is active, the RenderObjects in the subtree will be
// drawn using it.
for (UInt i = 0; i < mChildren.GetQuantity(); i++)
{
Spatial* pChild = mChildren[i];
if (pChild)
{
pChild->OnGetVisibleSet(rCuller, noCull);
}
}
for (UInt i = 0; i < mEffects.GetQuantity(); i++)
{
// Place an 'end' marker in the visible set to indicate that the
// global effect is inactive.
rCuller.Insert(NULL, NULL);
}
}
示例2: GetVisibleSet
//----------------------------------------------------------------------------
void SwitchNode::GetVisibleSet (Culler& culler, bool noCull)
{
if (mActiveChild == SN_INVALID_CHILD)
{
return;
}
// All Visual objects in the active subtree are added to the visible set.
Spatial* child = mChild[mActiveChild];
if (child)
{
child->OnGetVisibleSet(culler, noCull);
}
}