Changeset 3440 in orxonox.OLD for orxonox/trunk/src/light.cc
- Timestamp:
- Mar 1, 2005, 8:55:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/light.cc
r3438 r3440 35 35 36 36 glEnable (GL_LIGHTING); 37 this->setAmbientColor(.3, .3, .3); 37 38 this->lights = new LightValue*[NUMBEROFLIGHTS]; 38 39 for (int i = 0; i < NUMBEROFLIGHTS; i++) … … 248 249 } 249 250 251 /** 252 \brief sets the ambient Color of the Scene 253 \param r red 254 \param g green 255 \param b blue 256 */ 257 void Light::setAmbientColor(GLfloat r, GLfloat g, GLfloat b) 258 { 259 this->ambientColor[0] = r; 260 this->ambientColor[1] = g; 261 this->ambientColor[2] = b; 262 this->ambientColor[3] = 1.0; 263 264 glLightfv (GL_LIGHT0, GL_AMBIENT, this->ambientColor); 265 266 } 267 250 268 // get Attributes 251 269
Note: See TracChangeset
for help on using the changeset viewer.