Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2010, 9:02:48 AM (14 years ago)
Author:
scheusso
Message:

some changes regarding lod:

  • added lodtemplate in different levels
  • trying to avoid sigabrt's because of models with too much lod levels
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/orxonox/graphics/MeshLodInformation.h

    r7020 r7036  
    4747            std::string getMeshName();
    4848            bool getEnabled(){ return this->bEnabled_; }
     49            unsigned int getNumLevels(){ return this->numLevels_; }
     50            float getReductionRate(){ return this->reductionRate_; }
    4951           
    5052            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     
    5355            void setLodLevel(float lodLevel);
    5456            void setMeshSource(std::string meshSource);
    55             void setEnabled( bool enabled ){ this->bEnabled_ = true; }
     57            void setEnabled( bool enabled ){ this->bEnabled_ = enabled; }
     58            void setNumLevels( unsigned int num ){ this->numLevels_ = num; }
     59            void setReductionRate( float rate ){ this->reductionRate_ = rate; }
    5660            std::string getMeshSource();
    5761            std::string meshSource_;
    5862            float lodLevel_;
    5963            bool bEnabled_;
     64            unsigned int numLevels_;
     65            float reductionRate_;
    6066
    6167    };
Note: See TracChangeset for help on using the changeset viewer.