- Timestamp:
- Jan 26, 2006, 12:54:07 AM (19 years ago)
- Location:
- branches/network/src/lib/graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/graphics/effects/fog_effect.cc
r6741 r6752 71 71 */ 72 72 bool FogEffect::activate() 73 {} 73 { 74 /* glEnable(GL_FOG); 75 { 76 GLfloat fogColor[4] = {0.5, 0.5, 1.0}; 77 78 GLint fogMode = GL_EXP; 79 glFogi(GL_FOG_MODE, fogMode); 80 glFogfv(GL_FOG_COLOR, fogColor); 81 gfFogf(GL_FOG_DENSITY, 0.35f); 82 83 84 }*/ 85 } 74 86 75 87 -
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 -
branches/network/src/lib/graphics/graphics_engine.h
r6742 r6752 83 83 void process(const Event &event); 84 84 85 voidloadGraphicsEffect(GraphicsEffect* effect);86 voidunloadGraphicsEffect(GraphicsEffect* effect);85 bool loadGraphicsEffect(GraphicsEffect* effect); 86 bool unloadGraphicsEffect(GraphicsEffect* effect); 87 87 88 88
Note: See TracChangeset
for help on using the changeset viewer.