Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 4, 2013, 9:49:17 PM (11 years ago)
Author:
landauf
Message:

adjusted code for ogre 1.8.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/libs/src/modules/objects/Planet.cc

    r9667 r9669  
    108108                float scaleFactor = this->getScale();
    109109
    110     #if OGRE_VERSION >= 0x010700
     110#if OGRE_VERSION >= 0x010800
     111                Ogre::ProgressiveMesh::LodValueList distList;
     112#elif OGRE_VERSION >= 0x010700
    111113                Ogre::Mesh::LodValueList distList;
    112     #else
     114#else
    113115                Ogre::Mesh::LodDistanceList distList;
    114     #endif
     116#endif
    115117
    116118                distList.push_back(10.0f*scaleFactor);
     
    127129                float reductionValue = 0.2f;
    128130
     131#if OGRE_VERSION >= 0x010800
     132                Ogre::ProgressiveMesh::generateLodLevels(this->mesh_.getEntity()->getMesh().get(), distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL,
     133                    reductionValue);
     134#else
    129135                this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, reductionValue);
     136#endif
    130137                billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->atmosphere_, Vector3(0,0,0));
    131138
Note: See TracChangeset for help on using the changeset viewer.