Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2010, 3:46:08 PM (14 years ago)
Author:
scheusso
Message:

some enhancements to lod (can be disabled now in the lodinformation template)

Location:
code/branches/presentation3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3

  • code/branches/presentation3/src/orxonox/graphics/MeshLodInformation.h

    r6926 r7020  
    4040    class _OrxonoxExport MeshLodInformation : public BaseObject
    4141    {
    42                 private:
    43                         void setLodLevel(float lodLevel);
    44                         void setMeshSource(std::string meshSource);
    45                         std::string getMeshSource();
    46                         std::string meshSource_;
    47                         float lodLevel_;
    48                
    4942        public:
    5043            MeshLodInformation(BaseObject* creator);
    5144            virtual ~MeshLodInformation();
    5245           
    53                         float getLodLevel();
     46            float getLodLevel();
    5447            std::string getMeshName();
     48            bool getEnabled(){ return this->bEnabled_; }
     49           
     50            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5551
    56             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     52        private:
     53            void setLodLevel(float lodLevel);
     54            void setMeshSource(std::string meshSource);
     55            void setEnabled( bool enabled ){ this->bEnabled_ = true; }
     56            std::string getMeshSource();
     57            std::string meshSource_;
     58            float lodLevel_;
     59            bool bEnabled_;
     60
    5761    };
    5862}
Note: See TracChangeset for help on using the changeset viewer.