Changeset 6881 for code/branches/lod
- Timestamp:
- May 10, 2010, 4:00:52 PM (15 years ago)
- Location:
- code/branches/lod
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lod/data/levels/gametype_underattack.oxw
r6877 r6881 4 4 include("underattackhud.oxo") 5 5 include("templates/spaceship_assff.oxt") 6 include("templates/lodinformation.oxt") 6 7 ?> 7 8 … … 11 12 gametype = UnderAttack 12 13 > 14 <templates> 15 <Template link=lodtemplate_default /> 16 </templates> 13 17 14 <lodinformation>15 <MeshLodInformation mesh=Carrier.mesh lodQuality=1 />16 </lodinformation>17 18 18 <Scene 19 19 ambientlight = "0.5, 0.5, 0.5" -
code/branches/lod/data/levels/templates/lodinformation.oxt
r6786 r6881 2 2 <Level> 3 3 <lodinformation> 4 <MeshLodInformation mesh= ast1.mesh lodQuality=1/>4 <MeshLodInformation mesh=Carrier.mesh lodQuality=2.4 /> 5 5 </lodinformation> 6 6 </Level> -
code/branches/lod/src/orxonox/graphics/MeshLodInformation.cc
r6877 r6881 62 62 } 63 63 64 void MeshLodInformation::setLodLevel( unsigned int lodLevel)64 void MeshLodInformation::setLodLevel(float lodLevel) 65 65 { 66 lodLevel_=lodLevel; 66 if(lodLevel>=0) 67 lodLevel_=lodLevel; 67 68 } 68 int MeshLodInformation::getLodLevel()69 float MeshLodInformation::getLodLevel() 69 70 { 70 71 return lodLevel_; -
code/branches/lod/src/orxonox/graphics/MeshLodInformation.h
r6838 r6881 41 41 { 42 42 private: 43 void setLodLevel( unsigned int lodLevel);43 void setLodLevel(float lodLevel); 44 44 void setMeshSource(std::string meshSource); 45 45 std::string getMeshSource(); 46 46 std::string meshSource_; 47 int lodLevel_;47 float lodLevel_; 48 48 49 49 public: … … 51 51 virtual ~MeshLodInformation(); 52 52 53 int getLodLevel();53 float getLodLevel(); 54 54 std::string getMeshName(); 55 55
Note: See TracChangeset
for help on using the changeset viewer.