Changeset 7039 for code/branches/presentation3/src/orxonox/graphics
- Timestamp:
- May 31, 2010, 9:33:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/orxonox/graphics/MeshLodInformation.cc
r7036 r7039 41 41 42 42 MeshLodInformation::MeshLodInformation(BaseObject* creator) 43 43 : BaseObject(creator), lodLevel_(5), bEnabled_(true), numLevels_(10), reductionRate_(0.15) 44 44 { 45 45 RegisterObject(MeshLodInformation); … … 62 62 std::string MeshLodInformation::getMeshName() 63 63 { 64 64 return MeshLodInformation::getMeshSource(); 65 65 } 66 67 68 66 67 void MeshLodInformation::setLodLevel(float lodLevel) 68 { 69 69 if(lodLevel>=0) 70 71 72 73 74 75 76 77 78 79 80 81 82 83 70 lodLevel_=lodLevel; 71 } 72 float MeshLodInformation::getLodLevel() 73 { 74 return lodLevel_; 75 } 76 void MeshLodInformation::setMeshSource(std::string meshSource) 77 { 78 meshSource_ = meshSource; 79 } 80 std::string MeshLodInformation::getMeshSource() 81 { 82 return meshSource_; 83 } 84 84 85 85 }
Note: See TracChangeset
for help on using the changeset viewer.