Changeset 9669 for code/branches/libs/src/modules
- Timestamp:
- Sep 4, 2013, 9:49:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/libs/src/modules/objects/Planet.cc
r9667 r9669 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.