本文整理汇总了C++中TileNode::inheritState方法的典型用法代码示例。如果您正苦于以下问题:C++ TileNode::inheritState方法的具体用法?C++ TileNode::inheritState怎么用?C++ TileNode::inheritState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TileNode
的用法示例。
在下文中一共展示了TileNode::inheritState方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TileNode
void
TileNode::createChildren(EngineContext* context)
{
// NOTE: Ensure that _mutex is locked before calling this fucntion!
// Create the four child nodes.
for(unsigned quadrant=0; quadrant<4; ++quadrant)
{
TileNode* node = new TileNode();
if (context->getOptions().minExpiryFrames().isSet())
{
node->setMinimumExpiryFrames( *context->getOptions().minExpiryFrames() );
}
if (context->getOptions().minExpiryTime().isSet())
{
node->setMinimumExpiryTime( *context->getOptions().minExpiryTime() );
}
// Build the surface geometry:
node->create( getTileKey().createChildKey(quadrant), context );
// Add to the scene graph.
addChild( node );
// Inherit the samplers with new scale/bias information.
node->inheritState( context );
}
}
示例2: TileNode
void
TileNode::createChildren(EngineContext* context)
{
// Create the four child nodes.
for(unsigned quadrant=0; quadrant<4; ++quadrant)
{
TileNode* node = new TileNode();
// Build the surface geometry:
node->create( getTileKey().createChildKey(quadrant), context );
// Add to the scene graph.
addChild( node );
// Inherit the samplers with new scale/bias information.
node->inheritState( context );
}
OE_DEBUG << LC << "Creating children of: " << getTileKey().str() << "; count = " << (++_count) << "\n";
}