Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 26, 2010, 4:05:45 PM (15 years ago)
Author:
kolibri7
Message:
 
File:
1 edited

Legend:

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

    r6724 r6786  
    4040    CreateFactory(MeshLodInformation);
    4141
    42     MeshLodInformation::MeshLodInformation(BaseObject* creator) : StaticEntity(creator)
     42    MeshLodInformation::MeshLodInformation(BaseObject* creator)
     43        : BaseObject(creator), lodLevel_(-1)
    4344    {
    4445        RegisterObject(MeshLodInformation);
     
    5657    }
    5758   
    58     std::string getMeshName()
     59    std::string MeshLodInformation::getMeshName()
    5960    {
    60         if(mesh!=null)
    61             return mesh;
    62         return "";
     61                return MeshLodInformation::getMeshSource();
    6362    }
    64 
     63       
     64        void MeshLodInformation::setLodLevel(unsigned int lodLevel)
     65        {
     66                lodLevel_=lodLevel;
     67        }
     68        int MeshLodInformation::getLodLevel()
     69        {
     70                return lodLevel_;
     71        }
     72        void MeshLodInformation::setMeshSource(std::string meshSource)
     73        {
     74                meshSource_ = meshSource;
     75        }
     76        std::string MeshLodInformation::getMeshSource()
     77        {
     78                return meshSource_;
     79        }
    6580 
    6681}
Note: See TracChangeset for help on using the changeset viewer.