Changeset 8455 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/volfog_effect.cc
- Timestamp:
- Jun 15, 2006, 1:12:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/volfog_effect.cc
r7810 r8455 29 29 30 30 //#include <GL/glext.h> //OpenGL Extensions 31 //#include <GL/glxext.h> // GLX Extensions 31 //#include <GL/glxext.h> // GLX Extensions 32 32 33 33 #ifndef GL_EXT_fog_coord … … 76 76 } 77 77 78 boolVolFogEffect::init()78 void VolFogEffect::init() 79 79 { 80 80 PRINTF(0)("Initalize VolFogEffect\n"); … … 92 92 // Set fog color 93 93 float fogColor[4] = {0.6f,0.58f,0.79f,0.0f}; 94 94 95 95 96 96 glFogCoordfEXT = (PFNGLFOGCOORDFEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordfEXT"); … … 117 117 118 118 if (glewGetExtension("GL_EXT_fog_coord")) 119 {120 119 PRINTF(0)("GL_EXT_fog_coord extension found\n"); 121 return true; 122 } 123 else 124 { 125 PRINTF(0)("GL_EXT_fog_coord extension NOT found\n"); 126 return false; 127 } 128 } 129 130 131 bool VolFogEffect::activate() 120 } 121 122 123 void VolFogEffect::activate() 132 124 { 133 125 PRINTF(0)("Activating VolFogEffect\n"); 134 126 } 135 127 136 boolVolFogEffect::deactivate()128 void VolFogEffect::deactivate() 137 129 { 138 130 PRINTF(0)("Deactivating VolFogEffect\n"); … … 160 152 //glEnable(GL_BLEND); 161 153 //glBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA); 162 154 163 155 int i; 164 156 glLoadIdentity(); 165 157 166 158 167 159 glBegin( GL_LINES ); 168 160 glNormal3f(0,1,0); … … 210 202 * ticks the effect if there is any time dependancy 211 203 */ 212 void VolFogEffect::tick(float dt) 213 { 214 } 204 void VolFogEffect::tick(float dt) 205 { 206 }
Note: See TracChangeset
for help on using the changeset viewer.