Changeset 158 for trunk/VUT/work/ogre_changes/Plugins
- Timestamp:
- 07/06/05 11:04:25 (20 years ago)
- Location:
- trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.