- Timestamp:
- Apr 26, 2010, 4:05:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lod/src/orxonox/graphics/MeshLodInformation.cc
r6724 r6786 40 40 CreateFactory(MeshLodInformation); 41 41 42 MeshLodInformation::MeshLodInformation(BaseObject* creator) : StaticEntity(creator) 42 MeshLodInformation::MeshLodInformation(BaseObject* creator) 43 : BaseObject(creator), lodLevel_(-1) 43 44 { 44 45 RegisterObject(MeshLodInformation); … … 56 57 } 57 58 58 std::string getMeshName()59 std::string MeshLodInformation::getMeshName() 59 60 { 60 if(mesh!=null) 61 return mesh; 62 return ""; 61 return MeshLodInformation::getMeshSource(); 63 62 } 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 } 65 80 66 81 }
Note: See TracChangeset
for help on using the changeset viewer.