Changeset 6815 in orxonox.OLD for trunk/src/lib/graphics/effects
- Timestamp:
- Jan 28, 2006, 5:11:51 PM (19 years ago)
- Location:
- trunk/src/lib/graphics/effects
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/effects/fog_effect.cc
r6772 r6815 62 62 void FogEffect::loadParams(const TiXmlElement* root) 63 63 { 64 printf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.loadParms\n\n"); 64 65 GraphicsEffect::loadParams(root); 65 66 66 LoadParam(root, "fog- effect", this, FogEffect, setFogMode)67 LoadParam(root, "fog-mode", this, FogEffect, setFogMode) 67 68 .describe("sets the the fog mode {GL_LINEAR, GL_EXP, GL_EXP2}"); 68 69 … … 87 88 bool FogEffect::activate() 88 89 { 90 printf("fog==============================================>>>>>>>>>>>>>>>>>>>>>>>>...\n\n"); 89 91 PRINTF(4)( "Enabling Fog Effect, mode: %i, density: %f, start: %f, end: %f\n", this->fogMode, this->fogDensity, 90 92 this->fogStart, this->fogEnd); … … 92 94 glEnable(GL_FOG); 93 95 { 94 GLfloat fogColor[4] = {0. 5, 0.5, 0.5, 1.0};96 GLfloat fogColor[4] = {0.6, 0.6, 0.6, 1.0}; 95 97 96 98 glFogi(GL_FOG_MODE, this->fogMode); -
trunk/src/lib/graphics/effects/graphics_effect.cc
r6772 r6815 72 72 bool GraphicsEffect::init() 73 73 {} 74 75 76 77 /** 78 * draws the effect, if needed 79 */ 80 void GraphicsEffect::draw() const 81 {} 82 83 84 85 /** 86 * ticks the effect if there is any time dependancy 87 */ 88 void GraphicsEffect::tick(float dt) 89 {} -
trunk/src/lib/graphics/effects/graphics_effect.h
r6772 r6815 25 25 virtual bool deactivate() = 0; 26 26 27 inline bool isActivated() { return this->bActivated; } 27 virtual void draw() const; 28 virtual void tick(float dt); 29 30 inline bool isActivated() const { return this->bActivated; } 28 31 29 32
Note: See TracChangeset
for help on using the changeset viewer.