Changeset 9675 for code/trunk/src/modules/objects
- Timestamp:
- Sep 26, 2013, 11:03:33 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/libs (added) merged: 9668-9671
- Property svn:mergeinfo changed
-
code/trunk/src/modules/objects/Planet.cc
r9667 r9675 108 108 float scaleFactor = this->getScale(); 109 109 110 #if OGRE_VERSION >= 0x010700 110 #if OGRE_VERSION >= 0x010800 111 Ogre::ProgressiveMesh::LodValueList distList; 112 #elif OGRE_VERSION >= 0x010700 111 113 Ogre::Mesh::LodValueList distList; 112 114 #else 113 115 Ogre::Mesh::LodDistanceList distList; 114 116 #endif 115 117 116 118 distList.push_back(10.0f*scaleFactor); … … 127 129 float reductionValue = 0.2f; 128 130 131 #if OGRE_VERSION >= 0x010800 132 Ogre::ProgressiveMesh::generateLodLevels(this->mesh_.getEntity()->getMesh().get(), distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, 133 reductionValue); 134 #else 129 135 this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, reductionValue); 136 #endif 130 137 billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->atmosphere_, Vector3(0,0,0)); 131 138
Note: See TracChangeset
for help on using the changeset viewer.