- Timestamp:
- 02/20/06 19:06:03 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OGRE/trunk/ogre_changes/OgreMain/include/OgreRenderQueueSortingGrouping.h
r343 r657 316 316 } 317 317 318 319 @ remarks320 Doesn't delete any priority groups, just empties them. Saves on318 /** Clears this group of renderables. 319 @param destroy 320 If false, doesn't delete any priority groups, just empties them. Saves on 321 321 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) 325 326 { 326 327 PriorityMap::iterator i, iend; … … 328 329 for (i = mPriorityGroups.begin(); i != iend; ++i) 329 330 { 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 334 342 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 335 343 void clear(int passes)
Note: See TracChangeset
for help on using the changeset viewer.