本文整理汇总了C++中TrackObject::isDriveable方法的典型用法代码示例。如果您正苦于以下问题:C++ TrackObject::isDriveable方法的具体用法?C++ TrackObject::isDriveable怎么用?C++ TrackObject::isDriveable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TrackObject
的用法示例。
在下文中一共展示了TrackObject::isDriveable方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: add
/** Adds an object to the track object manager. The type to add is specified
* in the xml_node.
* \note If you add add any objects with LOD, don't forget to call
* TrackObjectManager::assingLodNodes after everything is loaded
* to finalize their creation.
*
* FIXME: all of this is horrible, just make the exporter write LOD definitions
* in a separate section that's read before everything and remove all this
* crap
*/
void TrackObjectManager::add(const XMLNode &xml_node, scene::ISceneNode* parent,
ModelDefinitionLoader& model_def_loader)
{
try
{
TrackObject *obj = new TrackObject(xml_node, parent, model_def_loader);
m_all_objects.push_back(obj);
if(obj->isDriveable())
m_driveable_objects.push_back(obj);
}
catch (std::exception& e)
{
Log::warn("TrackObjectManager", "Could not load track object. Reason : %s",
e.what());
}
} // add