Changeset 9669 for code/branches/libs/src/orxonox/graphics
- Timestamp:
- Sep 4, 2013, 9:49:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/libs/src/orxonox/graphics/Model.cc
r9667 r9669 30 30 31 31 #include <OgreEntity.h> 32 #include <OgreProgressiveMesh.h> 32 33 33 34 #include "core/CoreIncludes.h" … … 162 163 orxout(verbose, context::lod) << "Setting lodLevel for " << this->meshSrc_<< " with lodLevel_: " << this->lodLevel_ <<" and volume: "<< volume << ":" << endl; 163 164 164 #if OGRE_VERSION >= 0x010700 165 #if OGRE_VERSION >= 0x010800 166 Ogre::ProgressiveMesh::LodValueList distList; 167 #elif OGRE_VERSION >= 0x010700 165 168 Ogre::Mesh::LodValueList distList; 166 169 #else … … 190 193 191 194 //Generiert LOD-Levels 195 #if OGRE_VERSION >= 0x010800 196 Ogre::ProgressiveMesh::generateLodLevels(this->mesh_.getEntity()->getMesh().get(), distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, 197 this->lodReductionRate_); 198 #else 192 199 this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, this->lodReductionRate_); 200 #endif 193 201 } 194 202 else
Note: See TracChangeset
for help on using the changeset viewer.