Ignore:
Timestamp:
02/20/06 19:06:03 (19 years ago)
Author:
mattausch
Message:

added ogre dependencies and patched ogre sources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OGRE/trunk/ogre_changes/OgreMain/include/OgreRenderQueueSortingGrouping.h

    r343 r657  
    316316        } 
    317317 
    318         /** Clears this group of renderables.  
    319         @remarks 
    320             Doesn't delete any priority groups, just empties them. Saves on  
     318       /** Clears this group of renderables.  
     319        @param destroy 
     320            If false, doesn't delete any priority groups, just empties them. Saves on  
    321321            memory deallocations since the chances are rougly the same kinds of  
    322             renderables are going to be sent to the queue again next time. 
    323         */ 
    324         void clear(void) 
     322            renderables are going to be sent to the queue again next time. If 
     323                        true, completely destroys. 
     324        */ 
     325        void clear(bool destroy = false) 
    325326        { 
    326327            PriorityMap::iterator i, iend; 
     
    328329            for (i = mPriorityGroups.begin(); i != iend; ++i) 
    329330            { 
    330                 i->second->clear(); 
    331             } 
    332  
    333         } 
     331                                if (destroy) 
     332                                        delete i->second; 
     333                                else 
     334                                        i->second->clear(); 
     335            } 
     336 
     337                        if (destroy) 
     338                                mPriorityGroups.clear(); 
     339 
     340        } 
     341 
    334342#ifdef GTP_VISIBILITY_MODIFIED_OGRE      
    335343                void clear(int passes) 
Note: See TracChangeset for help on using the changeset viewer.