Changeset 158 for trunk/VUT/work/ogre_changes
- Timestamp:
- 07/06/05 11:04:25 (20 years ago)
- Location:
- trunk/VUT/work/ogre_changes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/ogre_changes/OgreMain/include/OgreRenderable.h
r153 r158 227 227 } 228 228 } 229 /** Sets an id for this renderable. 230 */ 229 231 void setId(int id) {mId = id;} 232 /** see set 233 */ 230 234 int getId() {return mId;} 231 235 -
trunk/VUT/work/ogre_changes/OgreMain/include/OgreSceneNode.h
r154 r158 444 444 void setLastRendered(int frameid); 445 445 446 /** Sets scene node id447 @param the id448 */449 void setId(int id);450 /** see set */451 int getId(void);452 453 446 protected: 454 447 int mLastVisited; -
trunk/VUT/work/ogre_changes/OgreMain/src/OgreSceneNode.cpp
r154 r158 42 42 mYawFixed(false), mAutoTrackTarget(0), mIsInSceneGraph(false) 43 43 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 44 , mLastVisited(0), mVisible(false), mLastRendered(-1) , mId(-1)44 , mLastVisited(0), mVisible(false), mLastRendered(-1) 45 45 #endif //GTP_VISIBILITY_MODIFIED_OGRE 46 46 { … … 53 53 mAutoTrackTarget(0), mIsInSceneGraph(false) 54 54 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 55 , mLastVisited(0), mVisible(false) , mId(-1)55 , mLastVisited(0), mVisible(false) 56 56 #endif //GTP_VISIBILITY_MODIFIED_OGRE 57 57 { … … 641 641 mLastRendered = frameid; 642 642 } 643 //-----------------------------------------------------------------------644 void SceneNode::setId(int id)645 {646 mId = id;647 }648 //-----------------------------------------------------------------------649 int SceneNode::getId(void)650 {651 return mId;652 }653 643 #endif //GTP_VISIBILITY_MODIFIED_OGRE 654 644 } -
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/include/OgreOctree.h
r154 r158 192 192 void _updateBounds(); 193 193 194 /** Sets scene node id195 @param the id196 */197 void setId(int id);198 199 /** see set */200 int getId(void);201 202 194 protected: 203 195 … … 209 201 bool mVisible; 210 202 int mDepth; 211 int mId;203 212 204 213 205 #endif // GTP_VISIBILITY_MODIFIED_OGRE -
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctree.cpp
r154 r158 88 88 mHalfSize( 0, 0, 0 ) 89 89 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 90 , mLastVisited(0), mVisible(false), mLastRendered(-1) , mId(-1)90 , mLastVisited(0), mVisible(false), mLastRendered(-1) 91 91 #endif //GTP_VISIBILITY_MODIFIED_OGRE 92 92 { … … 271 271 } 272 272 } 273 //----------------------------------------------------------------------- 274 void Octree::setId(int id) 275 { 276 mId = id; 277 } 278 //----------------------------------------------------------------------- 279 int Octree::getId() 280 { 281 return mId; 282 } 273 283 274 #endif //GTP_VISIBILITY_MODIFIED_OGRE 284 275 } -
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctreeSceneManager.cpp
r154 r158 316 316 317 317 mOctree = new Octree( 0 ); 318 318 319 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 319 mNumOctreeNodes = 1; 320 mOctree->setId(mNumOctreeNodes); 320 mNumOctreeNodes = 1; // count number of octants 321 321 #endif // GTP_VISIBILITY_MODIFIED_OGRE 322 322 323 mMaxDepth = depth; 323 324 mBox = box; … … 469 470 octant -> mChildren[ x ][ y ][ z ] = new Octree( octant ); 470 471 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 471 mOctree->setId(++ mNumOctreeNodes);472 ++ mNumOctreeNodes; 472 473 #endif // GTP_VISIBILITY_MODIFIED_OGRE 473 474 … … 1031 1032 1032 1033 mOctree = new Octree( 0 ); 1034 1033 1035 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 1034 1036 mNumOctreeNodes = 1; 1035 mOctree->setId(mNumOctreeNodes);1036 1037 #endif // GTP_VISIBILITY_MODIFIED_OGRE 1038 1037 1039 mOctree->mBox = box; 1038 1040
Note: See TracChangeset
for help on using the changeset viewer.