Changeset 6752 in orxonox.OLD for branches/network/src/lib/graphics/graphics_engine.cc
- Timestamp:
- Jan 26, 2006, 12:54:07 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/graphics/graphics_engine.cc
r6746 r6752 655 655 break; 656 656 } 657 658 657 } 659 658 … … 663 662 * @param effect the GraphicsEffect to add 664 663 */ 665 void GraphicsEngine::loadGraphicsEffect(GraphicsEffect* effect) 666 {} 664 bool GraphicsEngine::loadGraphicsEffect(GraphicsEffect* effect) 665 { 666 list<GraphicsEffect*>::iterator it; 667 for (it = this->graphicsEffects.begin(); it != this->graphicsEffects.end(); it++) 668 if( (*it) == effect) 669 return false; 670 671 this->graphicsEffects.push_back(effect); 672 673 return true; 674 } 667 675 668 676 … … 671 679 * @param effect the GraphicsEffect to remove 672 680 */ 673 void GraphicsEngine::unloadGraphicsEffect(GraphicsEffect* effect) 674 {} 681 bool GraphicsEngine::unloadGraphicsEffect(GraphicsEffect* effect) 682 { 683 list<GraphicsEffect*>::iterator it; 684 for (it = this->graphicsEffects.begin(); it != this->graphicsEffects.end(); it++) 685 { 686 if( (*it) == effect) 687 { 688 this->graphicsEffects.erase(it); 689 return true; 690 } 691 } 692 693 return false; 694 } 695
Note: See TracChangeset
for help on using the changeset viewer.