Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2010, 11:32:01 AM (14 years ago)
Author:
rgrieder
Message:

Ensured OGRE v1.7 "Cthugha" code compatibility. Does not yet seem to run run though.

Location:
code/trunk/src/modules/objects
Files:
2 edited

Legend:

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

    r5929 r6501  
    9191        float scaleFactor = this->getScale();
    9292
    93         this->distList.push_back(10.0f*scaleFactor);
    94         this->distList.push_back(19.0f*scaleFactor);
    95         this->distList.push_back(27.0f*scaleFactor);
    96         this->distList.push_back(34.0f*scaleFactor);
    97         this->distList.push_back(40.0f*scaleFactor);
    98         this->distList.push_back(45.0f*scaleFactor);
    99         this->distList.push_back(49.0f*scaleFactor);
    100         this->distList.push_back(52.0f*scaleFactor);
    101         this->distList.push_back(54.0f*scaleFactor);
    102         this->distList.push_back(55.0f*scaleFactor);
     93#if OGRE_VERSION >= 0x010700
     94        Ogre::Mesh::LodValueList distList;
     95#else
     96        Ogre::Mesh::LodDistanceList distList;
     97#endif
     98
     99        distList.push_back(10.0f*scaleFactor);
     100        distList.push_back(19.0f*scaleFactor);
     101        distList.push_back(27.0f*scaleFactor);
     102        distList.push_back(34.0f*scaleFactor);
     103        distList.push_back(40.0f*scaleFactor);
     104        distList.push_back(45.0f*scaleFactor);
     105        distList.push_back(49.0f*scaleFactor);
     106        distList.push_back(52.0f*scaleFactor);
     107        distList.push_back(54.0f*scaleFactor);
     108        distList.push_back(55.0f*scaleFactor);
    103109
    104110        float reductionValue = 0.2f;
  • code/trunk/src/modules/objects/Planet.h

    r5781 r6501  
    106106            float atmosphereSize;
    107107            float imageSize;
    108             std::vector<float> distList;
    109108            BillboardSet billboard_;
    110109            bool bCastShadows_;
Note: See TracChangeset for help on using the changeset viewer.