Ignore:
Timestamp:
05/06/06 18:47:53 (18 years ago)
Author:
mattausch
Message:

added updates for visibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OGRE/trunk/ogre_changes/Ogre1.2/OgreMain/include/OgreRenderable.h

    r768 r921  
    5353    { 
    5454    public: 
    55                 Renderable() : mPolygonModeOverrideable(true)  
    56                 { 
    57 #ifdef GAMETOOLS_ILLUMINATION_MODULE 
    58                         this->mRenderTechniqueGroup = 0;                         
    59 #endif 
    60                 } 
     55                Renderable() : mPolygonModeOverrideable(true) 
     56#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
     57                , mId(-1) 
     58#endif // GTP_VISIBILITY_MODIFIED_OGRE 
     59                {} 
     60 
    6161        /** Virtual destructor needed as class has virtual methods. */ 
    6262        virtual ~Renderable() { } 
     
    247247                } 
    248248 
    249  
    250  
     249#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
     250                /** Sets an id for this renderable. 
     251                */ 
     252                void setId(int id) {mId = id;} 
     253                /** see set  
     254                */ 
     255                int getId() {return mId;} 
     256#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    251257    protected: 
    252258        static const PlaneList msDummyPlaneList; 
     
    254260        CustomParameterMap mCustomParameters; 
    255261                bool mPolygonModeOverrideable; 
    256  
    257 #ifdef GAMETOOLS_ILLUMINATION_MODULE 
    258         public: 
    259  
    260                 virtual void setRenderTechniqueGroup(UserDefinedObject* renderTechniqueGroup) 
    261                 { 
    262                         this->mRenderTechniqueGroup = renderTechniqueGroup; 
    263                 } 
    264  
    265                 virtual UserDefinedObject* getRenderTechniqueGroup(void) const 
    266                 { 
    267                         return this->mRenderTechniqueGroup; 
    268                 }                
    269  
    270                 virtual void setMaterialName(const String &name){} 
    271  
    272                 protected: 
    273  
    274                         UserDefinedObject* mRenderTechniqueGroup; 
    275 #endif 
    276  
     262#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
     263                int mId; 
     264#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    277265    }; 
    278266 
Note: See TracChangeset for help on using the changeset viewer.