Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2013, 11:03:33 PM (11 years ago)
Author:
landauf
Message:

merged branch 'libs' back to trunk. orxonox now compiles and runs with ogre 1.8 and it compiles (but doesn't run) with cegui 0.8

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/graphics/Model.cc

    r9667 r9675  
    3030
    3131#include <OgreEntity.h>
     32#include <OgreProgressiveMesh.h>
    3233
    3334#include "core/CoreIncludes.h"
     
    162163                orxout(verbose, context::lod) << "Setting lodLevel for " << this->meshSrc_<< " with lodLevel_: " << this->lodLevel_ <<" and volume: "<< volume << ":" << endl;
    163164
    164 #if OGRE_VERSION >= 0x010700
     165#if OGRE_VERSION >= 0x010800
     166                Ogre::ProgressiveMesh::LodValueList distList;
     167#elif OGRE_VERSION >= 0x010700
    165168                Ogre::Mesh::LodValueList distList;
    166169#else
     
    190193
    191194                    //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
    192199                    this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, this->lodReductionRate_);
     200#endif
    193201                }
    194202                else
Note: See TracChangeset for help on using the changeset viewer.