本文整理汇总了C++中osg::LOD::getName方法的典型用法代码示例。如果您正苦于以下问题:C++ LOD::getName方法的具体用法?C++ LOD::getName怎么用?C++ LOD::getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类osg::LOD
的用法示例。
在下文中一共展示了LOD::getName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: id
void
FltExportVisitor::writeLevelOfDetail(const osg::LOD &lod,
osg::Vec3d const ¢er,
double switchInDist,
double switchOutDist)
{
uint16 length(80);
IdHelper id(*this, lod.getName());
_records->writeInt16((int16) LOD_OP);
_records->writeInt16(length);
_records->writeID(id);
_records->writeInt32(0); // 'Reserved' field
_records->writeFloat64(switchInDist);
_records->writeFloat64(switchOutDist); // Switch-out distance
_records->writeInt16(0); // Special Effect ID1
_records->writeInt16(0); // Special Effect ID2
_records->writeInt32(0); // Flags
_records->writeFloat64(center.x());
_records->writeFloat64(center.y());
_records->writeFloat64(center.z());
_records->writeFloat64(0); // Transition range
_records->writeFloat64(0); // Significant size
}