Ignore:
Timestamp:
07/06/05 11:04:25 (20 years ago)
Author:
mattausch
Message:

removed node visibility for item buffer

Location:
trunk/VUT/work/ogre_changes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/ogre_changes/OgreMain/include/OgreRenderable.h

    r153 r158  
    227227            } 
    228228        } 
     229                /** Sets an id for this renderable. 
     230                */ 
    229231                void setId(int id) {mId = id;} 
     232                /** see set  
     233                */ 
    230234                int getId() {return mId;} 
    231235 
  • trunk/VUT/work/ogre_changes/OgreMain/include/OgreSceneNode.h

    r154 r158  
    444444                void setLastRendered(int frameid); 
    445445 
    446                 /** Sets scene node id  
    447                 @param the id 
    448                 */ 
    449                 void setId(int id); 
    450                 /** see set */ 
    451                 int getId(void); 
    452  
    453446        protected: 
    454447                int mLastVisited; 
  • trunk/VUT/work/ogre_changes/OgreMain/src/OgreSceneNode.cpp

    r154 r158  
    4242        mYawFixed(false), mAutoTrackTarget(0), mIsInSceneGraph(false) 
    4343#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    44         , mLastVisited(0), mVisible(false), mLastRendered(-1), mId(-1) 
     44        , mLastVisited(0), mVisible(false), mLastRendered(-1) 
    4545#endif //GTP_VISIBILITY_MODIFIED_OGRE 
    4646    { 
     
    5353        mAutoTrackTarget(0), mIsInSceneGraph(false) 
    5454        #ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    55         , mLastVisited(0), mVisible(false), mId(-1) 
     55        , mLastVisited(0), mVisible(false) 
    5656        #endif //GTP_VISIBILITY_MODIFIED_OGRE 
    5757    { 
     
    641641                mLastRendered = frameid; 
    642642        } 
    643         //----------------------------------------------------------------------- 
    644         void SceneNode::setId(int id) 
    645         { 
    646                 mId = id; 
    647         } 
    648         //----------------------------------------------------------------------- 
    649         int SceneNode::getId(void) 
    650         { 
    651                 return mId; 
    652         } 
    653643        #endif //GTP_VISIBILITY_MODIFIED_OGRE 
    654644} 
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/include/OgreOctree.h

    r154 r158  
    192192        void _updateBounds(); 
    193193 
    194         /** Sets scene node id  
    195         @param the id 
    196         */ 
    197         void setId(int id); 
    198          
    199         /** see set */ 
    200         int getId(void); 
    201  
    202194protected: 
    203195         
     
    209201        bool mVisible; 
    210202        int mDepth; 
    211         int mId; 
     203         
    212204 
    213205#endif // GTP_VISIBILITY_MODIFIED_OGRE 
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctree.cpp

    r154 r158  
    8888      mHalfSize( 0, 0, 0 ) 
    8989#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    90         , mLastVisited(0), mVisible(false), mLastRendered(-1), mId(-1) 
     90        , mLastVisited(0), mVisible(false), mLastRendered(-1) 
    9191#endif //GTP_VISIBILITY_MODIFIED_OGRE 
    9292{ 
     
    271271        } 
    272272 } 
    273 //----------------------------------------------------------------------- 
    274 void Octree::setId(int id) 
    275 { 
    276         mId = id; 
    277 } 
    278 //----------------------------------------------------------------------- 
    279 int Octree::getId() 
    280 { 
    281         return mId; 
    282 } 
     273 
    283274#endif //GTP_VISIBILITY_MODIFIED_OGRE 
    284275} 
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctreeSceneManager.cpp

    r154 r158  
    316316 
    317317    mOctree = new Octree( 0 ); 
     318 
    318319#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    319         mNumOctreeNodes = 1; 
    320         mOctree->setId(mNumOctreeNodes); 
     320        mNumOctreeNodes = 1; // count number of octants 
    321321#endif // GTP_VISIBILITY_MODIFIED_OGRE 
     322 
    322323    mMaxDepth = depth; 
    323324    mBox = box; 
     
    469470            octant -> mChildren[ x ][ y ][ z ] = new Octree( octant ); 
    470471#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    471         mOctree->setId(++ mNumOctreeNodes); 
     472        ++ mNumOctreeNodes; 
    472473#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    473474 
     
    10311032 
    10321033    mOctree = new Octree( 0 ); 
     1034 
    10331035#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    10341036        mNumOctreeNodes = 1; 
    1035         mOctree->setId(mNumOctreeNodes); 
    10361037#endif // GTP_VISIBILITY_MODIFIED_OGRE 
     1038 
    10371039    mOctree->mBox = box; 
    10381040 
Note: See TracChangeset for help on using the changeset viewer.