- Timestamp:
- 05/06/06 18:47:53 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OGRE/trunk/ogre_changes/Ogre1.2/OgreMain/include/OgreRenderable.h
r768 r921 53 53 { 54 54 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 61 61 /** Virtual destructor needed as class has virtual methods. */ 62 62 virtual ~Renderable() { } … … 247 247 } 248 248 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 251 257 protected: 252 258 static const PlaneList msDummyPlaneList; … … 254 260 CustomParameterMap mCustomParameters; 255 261 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 277 265 }; 278 266
Note: See TracChangeset
for help on using the changeset viewer.