Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6881 for code/branches/lod/src


Ignore:
Timestamp:
May 10, 2010, 4:00:52 PM (14 years ago)
Author:
kolibri7
Message:

*lodLevel is a float now
*gametype_underattack.oxw includes the lodlevel template now

Location:
code/branches/lod/src/orxonox/graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/lod/src/orxonox/graphics/MeshLodInformation.cc

    r6877 r6881  
    6262    }
    6363       
    64         void MeshLodInformation::setLodLevel(unsigned int lodLevel)
     64        void MeshLodInformation::setLodLevel(float lodLevel)
    6565        {
    66                 lodLevel_=lodLevel;
     66        if(lodLevel>=0)
     67                    lodLevel_=lodLevel;
    6768        }
    68         int MeshLodInformation::getLodLevel()
     69        float MeshLodInformation::getLodLevel()
    6970        {
    7071                return lodLevel_;
  • code/branches/lod/src/orxonox/graphics/MeshLodInformation.h

    r6838 r6881  
    4141    {
    4242                private:
    43                         void setLodLevel(unsigned int lodLevel);
     43                        void setLodLevel(float lodLevel);
    4444                        void setMeshSource(std::string meshSource);
    4545                        std::string getMeshSource();
    4646                        std::string meshSource_;
    47                         int lodLevel_;
     47                        float lodLevel_;
    4848               
    4949        public:
     
    5151            virtual ~MeshLodInformation();
    5252           
    53                         int getLodLevel();
     53                        float getLodLevel();
    5454            std::string getMeshName();
    5555
Note: See TracChangeset for help on using the changeset viewer.