Changeset 9675 for code/trunk/src/orxonox/graphics
- 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/orxonox/graphics/Model.cc
r9667 r9675 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.