[1853] | 1 | |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | orxonox - the future of 3D-vertical-scrollers |
---|
| 5 | |
---|
| 6 | Copyright (C) 2004 orx |
---|
| 7 | |
---|
| 8 | This program is free software; you can redistribute it and/or modify |
---|
| 9 | it under the terms of the GNU General Public License as published by |
---|
| 10 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 11 | any later version. |
---|
[1855] | 12 | |
---|
| 13 | ### File Specific: |
---|
[3436] | 14 | main-programmer: Benjamin Grauer |
---|
[1855] | 15 | co-programmer: ... |
---|
[1853] | 16 | */ |
---|
| 17 | |
---|
[3590] | 18 | #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_LIGHT |
---|
[1853] | 19 | |
---|
[3436] | 20 | #include "light.h" |
---|
[1853] | 21 | |
---|
[3436] | 22 | #include "glincl.h" |
---|
[1853] | 23 | |
---|
[1856] | 24 | using namespace std; |
---|
[1853] | 25 | |
---|
[3437] | 26 | //! Definition of the Lights |
---|
| 27 | int lightsV[] = {GL_LIGHT0, GL_LIGHT1, GL_LIGHT2, GL_LIGHT3, GL_LIGHT4, GL_LIGHT5, GL_LIGHT6, GL_LIGHT7}; |
---|
[1856] | 28 | |
---|
[3598] | 29 | |
---|
| 30 | /** |
---|
| 31 | \param lightNumber the Light Number to initiate |
---|
| 32 | */ |
---|
[3597] | 33 | Light::Light(int lightNumber) |
---|
| 34 | { |
---|
| 35 | PRINTF(4)("initializing Light number %d.\n", lightNumber); |
---|
| 36 | // enable The light |
---|
| 37 | glEnable(lightsV[lightNumber]); // postSpawn |
---|
| 38 | |
---|
| 39 | // set values (defaults) |
---|
| 40 | this->lightNumber = lightNumber; |
---|
| 41 | this->setPosition(0.0, 0.0, 0.0); |
---|
| 42 | this->setDiffuseColor(1.0, 1.0, 1.0); |
---|
| 43 | this->setSpecularColor(1.0, 1.0, 1.0); |
---|
| 44 | } |
---|
[3437] | 45 | |
---|
[3598] | 46 | /** |
---|
| 47 | \brief destroys a Light |
---|
| 48 | */ |
---|
[3597] | 49 | Light::~Light(void) |
---|
| 50 | { |
---|
| 51 | glDisable(lightsV[this->lightNumber]); |
---|
| 52 | } |
---|
| 53 | |
---|
[3245] | 54 | /** |
---|
[3597] | 55 | \brief Sets a Position for the Light. |
---|
| 56 | \param position The new position of the Light. |
---|
| 57 | \todo patrick: is it ok to set a Light Position even if it is derived from p_node?? |
---|
| 58 | */ |
---|
| 59 | void Light::setPosition(Vector position) |
---|
| 60 | { |
---|
| 61 | this->lightPosition[0] = position.x; |
---|
| 62 | this->lightPosition[1] = position.y; |
---|
| 63 | this->lightPosition[2] = position.z; |
---|
| 64 | this->lightPosition[3] = 0.0; |
---|
| 65 | |
---|
[3598] | 66 | this->setAbsCoor(&position); |
---|
| 67 | |
---|
| 68 | glLightfv (lightsV[this->lightNumber], GL_POSITION, this->lightPosition); |
---|
[3597] | 69 | } |
---|
| 70 | |
---|
| 71 | /** |
---|
[3598] | 72 | \brief Sets a Position of this Light. |
---|
[3597] | 73 | \param x the x-coordinate |
---|
| 74 | \param y the y-coordinate |
---|
| 75 | \param z the z-coordinate |
---|
| 76 | */ |
---|
| 77 | void Light::setPosition(GLfloat x, GLfloat y, GLfloat z) |
---|
| 78 | { |
---|
[3598] | 79 | this->setPosition(Vector(x, y, z)); |
---|
[3597] | 80 | } |
---|
| 81 | |
---|
| 82 | /** |
---|
[3598] | 83 | \brief sets an emitting Diffuse color of this Light |
---|
[3597] | 84 | \param r red |
---|
| 85 | \param g green |
---|
| 86 | \param b blue |
---|
| 87 | */ |
---|
| 88 | void Light::setDiffuseColor(GLfloat r, GLfloat g, GLfloat b) |
---|
| 89 | { |
---|
| 90 | this->diffuseColor[0] = r; |
---|
| 91 | this->diffuseColor[1] = g; |
---|
| 92 | this->diffuseColor[2] = b; |
---|
| 93 | this->diffuseColor[3] = 1.0; |
---|
| 94 | |
---|
[3598] | 95 | glLightfv (lightsV[this->lightNumber], GL_DIFFUSE, this->diffuseColor); |
---|
[3597] | 96 | } |
---|
| 97 | |
---|
| 98 | /** |
---|
[3598] | 99 | \brief sets an emitting Specular color of this Light |
---|
[3597] | 100 | \param r red |
---|
| 101 | \param g green |
---|
| 102 | \param b blue |
---|
| 103 | */ |
---|
| 104 | void Light::setSpecularColor(GLfloat r, GLfloat g, GLfloat b) |
---|
| 105 | { |
---|
| 106 | this->specularColor[0] = r; |
---|
| 107 | this->specularColor[1] = g; |
---|
| 108 | this->specularColor[2] = b; |
---|
| 109 | this->specularColor[3] = 1.0; |
---|
| 110 | |
---|
[3598] | 111 | glLightfv (lightsV[this->lightNumber], GL_SPECULAR, this->specularColor); |
---|
[3597] | 112 | } |
---|
| 113 | |
---|
| 114 | /** |
---|
| 115 | \brief Sets the AttenuationType of this Light Source |
---|
[3598] | 116 | \param constantAttenuation The Constant Attenuation of the Light |
---|
| 117 | \param linearAttenuation The Linear Attenuation of the Light |
---|
| 118 | \param quadraticAttenuation The Quadratic Attenuation of the Light |
---|
[3597] | 119 | */ |
---|
| 120 | void Light::setAttenuation(float constantAttenuation, float linearAttenuation, float quadraticAttenuation) |
---|
| 121 | { |
---|
| 122 | this->constantAttenuation = constantAttenuation; |
---|
| 123 | this->linearAttenuation = linearAttenuation; |
---|
| 124 | this->quadraticAttenuation = quadraticAttenuation; |
---|
| 125 | |
---|
| 126 | glLightf(lightsV[this->lightNumber], GL_CONSTANT_ATTENUATION, constantAttenuation); |
---|
| 127 | glLightf(lightsV[this->lightNumber], GL_LINEAR_ATTENUATION, linearAttenuation); |
---|
| 128 | glLightf(lightsV[this->lightNumber], GL_QUADRATIC_ATTENUATION, quadraticAttenuation); |
---|
| 129 | } |
---|
| 130 | |
---|
| 131 | /** |
---|
| 132 | \brief stets the direction of the Spot Light. |
---|
| 133 | \param direction The direction of the Spot Light. |
---|
| 134 | */ |
---|
| 135 | void Light::setSpotDirection(Vector direction) |
---|
| 136 | { |
---|
| 137 | this->spotDirection[0] = direction.x; |
---|
| 138 | this->spotDirection[1] = direction.y; |
---|
| 139 | this->spotDirection[2] = direction.z; |
---|
| 140 | |
---|
| 141 | glLightfv(lightsV[this->lightNumber], GL_SPOT_DIRECTION, this->spotDirection); |
---|
| 142 | } |
---|
| 143 | |
---|
| 144 | /** |
---|
| 145 | \brief sets the cutoff angle of the Light. |
---|
| 146 | \param cutoff The cutoff angle. |
---|
| 147 | */ |
---|
| 148 | void Light::setSpotCutoff(GLfloat cutoff) |
---|
| 149 | { |
---|
| 150 | this->spotCutoff = cutoff; |
---|
| 151 | glLightf(lightsV[this->lightNumber], GL_SPOT_CUTOFF, cutoff); |
---|
| 152 | } |
---|
| 153 | |
---|
[3598] | 154 | /** |
---|
| 155 | \returns the Position of the Light |
---|
| 156 | */ |
---|
| 157 | Vector Light::getPosition() |
---|
| 158 | { |
---|
| 159 | return Vector(this->lightPosition[0], this->lightPosition[1], this->lightPosition[2]); |
---|
| 160 | } |
---|
| 161 | |
---|
| 162 | /** |
---|
| 163 | \brief draws this Light. Being a World-entity the possibility to do this lies at hand. |
---|
| 164 | */ |
---|
[3597] | 165 | void Light::draw() |
---|
| 166 | { |
---|
| 167 | float pos[3] = {this->getAbsCoor ().x, this->getAbsCoor().y, this->getAbsCoor().z}; |
---|
| 168 | glLightfv(lightsV[this->lightNumber], GL_POSITION, pos); |
---|
| 169 | } |
---|
| 170 | |
---|
[3598] | 171 | /** |
---|
| 172 | \brief Prints out some nice formated debug information about the Light |
---|
| 173 | */ |
---|
[3597] | 174 | void Light::debug(void) |
---|
| 175 | { |
---|
| 176 | PRINT(0)(":: %d :: -- reference %p\n", this->lightNumber, this); |
---|
| 177 | PRINT(0)(" GL-state: "); |
---|
| 178 | GLboolean param; |
---|
| 179 | glGetBooleanv(lightsV[this->lightNumber], ¶m); |
---|
| 180 | if (param) |
---|
| 181 | PRINT(0)("ON\n"); |
---|
| 182 | else |
---|
| 183 | PRINT(0)("OFF\n"); |
---|
| 184 | |
---|
| 185 | PRINT(0)(" Position: %f/%f/%f\n", this->lightPosition[0], this->lightPosition[1], this->lightPosition[2]); |
---|
| 186 | PRINT(0)(" DiffuseColor: %f/%f/%f\n", this->diffuseColor[0], this->diffuseColor[1], this->diffuseColor[2]); |
---|
| 187 | PRINT(0)(" SpecularColor: %f/%f/%f\n", this->specularColor[0], this->specularColor[1], this->specularColor[2]); |
---|
| 188 | PRINT(0)(" Attenuation: constant=%f linear=%f quadratic=%f\n", this->constantAttenuation, this->linearAttenuation, this->quadraticAttenuation); |
---|
| 189 | } |
---|
| 190 | |
---|
| 191 | |
---|
| 192 | /****************** |
---|
| 193 | ** LIGHT-MANAGER ** |
---|
| 194 | ******************/ |
---|
| 195 | /** |
---|
[3436] | 196 | \brief standard constructor for a Light |
---|
[3245] | 197 | */ |
---|
[3597] | 198 | LightManager::LightManager () |
---|
[3365] | 199 | { |
---|
[3597] | 200 | this->setClassName ("LightManager"); |
---|
[1853] | 201 | |
---|
[3437] | 202 | glEnable (GL_LIGHTING); |
---|
[3440] | 203 | this->setAmbientColor(.3, .3, .3); |
---|
[3597] | 204 | this->lights = new Light*[NUMBEROFLIGHTS]; |
---|
[3437] | 205 | for (int i = 0; i < NUMBEROFLIGHTS; i++) |
---|
| 206 | lights[i] = NULL; |
---|
[3438] | 207 | this->currentLight = NULL; |
---|
[3436] | 208 | } |
---|
[1853] | 209 | |
---|
[3245] | 210 | /** |
---|
| 211 | \brief standard deconstructor |
---|
[3446] | 212 | |
---|
| 213 | first disables Lighting |
---|
[3598] | 214 | |
---|
[3446] | 215 | then deletes the rest of the allocated memory |
---|
| 216 | and in the end sets the singleton Reference to zero. |
---|
[3245] | 217 | */ |
---|
[3597] | 218 | LightManager::~LightManager () |
---|
[3436] | 219 | { |
---|
| 220 | glDisable(GL_LIGHTING); |
---|
[3437] | 221 | |
---|
[3597] | 222 | // this will be done either by worldEntity, or by pNode as each light is one of them |
---|
| 223 | // for (int i = 0; i < NUMBEROFLIGHTS; i++) |
---|
| 224 | // this->deleteLight(i); |
---|
[3437] | 225 | delete lights; |
---|
[3597] | 226 | LightManager::singletonRef = NULL; |
---|
[3436] | 227 | } |
---|
[1853] | 228 | |
---|
[3438] | 229 | /** |
---|
| 230 | \brief singleton-Reference to the Light-class |
---|
| 231 | */ |
---|
[3597] | 232 | LightManager* LightManager::singletonRef = NULL; |
---|
[3437] | 233 | |
---|
[3436] | 234 | /** |
---|
[3437] | 235 | \returns The Instance of the Lights |
---|
| 236 | */ |
---|
[3597] | 237 | LightManager* LightManager::getInstance(void) |
---|
[3437] | 238 | { |
---|
[3597] | 239 | if (!singletonRef) |
---|
| 240 | LightManager::singletonRef = new LightManager(); |
---|
| 241 | return singletonRef; |
---|
[3437] | 242 | } |
---|
| 243 | |
---|
| 244 | /** |
---|
[3436] | 245 | \brief initializes a new Light with default values, and enables GL_LIGHTING |
---|
| 246 | */ |
---|
[3597] | 247 | void LightManager::initLight(int lightNumber) |
---|
[3436] | 248 | { |
---|
[3597] | 249 | lights[lightNumber] = new Light(lightNumber); |
---|
[3436] | 250 | } |
---|
[1853] | 251 | |
---|
[3437] | 252 | /** |
---|
| 253 | \brief Adds a new Light, by selecting the First free slot. |
---|
| 254 | |
---|
| 255 | if no slot is free error |
---|
| 256 | */ |
---|
[3597] | 257 | int LightManager::addLight(void) |
---|
[3437] | 258 | { |
---|
| 259 | for (int i = 0; i < NUMBEROFLIGHTS; i++) |
---|
| 260 | if (!this->lights[i]) |
---|
| 261 | return addLight(i); |
---|
| 262 | PRINTF(1)("no more light slots availiable. All %d already taken\n", NUMBEROFLIGHTS); |
---|
| 263 | return -1; |
---|
| 264 | } |
---|
| 265 | |
---|
| 266 | /** |
---|
| 267 | \brief Adds a new Light |
---|
| 268 | \param lightNumber The number of the light to add. |
---|
| 269 | |
---|
| 270 | if the Number is not free: warn, automatically choose another slot. |
---|
| 271 | */ |
---|
[3597] | 272 | int LightManager::addLight(int lightNumber) |
---|
[3437] | 273 | { |
---|
| 274 | if (this->lights[lightNumber]) |
---|
| 275 | { |
---|
| 276 | PRINTF(2)("Lightslot %d is allready taken, trying another one\n", lightNumber); |
---|
| 277 | return this->addLight(); |
---|
| 278 | } |
---|
[3597] | 279 | this->initLight(lightNumber); |
---|
[3437] | 280 | this->currentLight = this->lights[lightNumber]; |
---|
| 281 | return lightNumber; |
---|
| 282 | } |
---|
| 283 | |
---|
| 284 | /** |
---|
| 285 | \brief select the light to work with |
---|
| 286 | \param lightNumber the light to work with |
---|
| 287 | */ |
---|
[3597] | 288 | void LightManager::editLightNumber(int lightNumber) |
---|
[3437] | 289 | { |
---|
[3438] | 290 | if (!this->currentLight) |
---|
| 291 | { |
---|
[3597] | 292 | PRINTF(2)("no Light defined yet. Please define at least one light first befor editing.\n"); |
---|
[3438] | 293 | return; |
---|
| 294 | } |
---|
[3437] | 295 | this->currentLight = lights[lightNumber]; |
---|
| 296 | } |
---|
| 297 | |
---|
| 298 | /** |
---|
| 299 | \brief Delete the current Light |
---|
| 300 | */ |
---|
[3597] | 301 | void LightManager::deleteLight(void) |
---|
[3437] | 302 | { |
---|
[3438] | 303 | if (!this->currentLight) |
---|
| 304 | { |
---|
[3597] | 305 | PRINTF(1)("no Light defined yet. So you cannot delete any Light right now.\n"); |
---|
[3438] | 306 | return; |
---|
| 307 | } |
---|
| 308 | |
---|
[3598] | 309 | this->deleteLight(this->currentLight->getLightNumber()); |
---|
[3437] | 310 | } |
---|
| 311 | |
---|
| 312 | /** |
---|
| 313 | \brief delete light. |
---|
[3446] | 314 | \param lightNumber the number of the light to delete |
---|
[3437] | 315 | */ |
---|
[3597] | 316 | void LightManager::deleteLight(int lightNumber) |
---|
[3437] | 317 | { |
---|
| 318 | if (this->lights[lightNumber]) |
---|
| 319 | { |
---|
[3597] | 320 | PRINTF(4)("deleting Light number %d\n", lightNumber); |
---|
[3437] | 321 | delete this->lights[lightNumber]; |
---|
| 322 | this->lights[lightNumber] = NULL; |
---|
| 323 | } |
---|
| 324 | } |
---|
| 325 | |
---|
[3598] | 326 | /** |
---|
| 327 | \brief draws all the Lights in their appropriate position |
---|
| 328 | */ |
---|
| 329 | void LightManager::draw() |
---|
| 330 | { |
---|
| 331 | glMatrixMode(GL_MODELVIEW); |
---|
| 332 | glLoadIdentity(); |
---|
| 333 | for (int i; i < NUMBEROFLIGHTS; i++) |
---|
| 334 | if (this->lights[i]) |
---|
| 335 | lights[i]->draw(); |
---|
| 336 | } |
---|
| 337 | |
---|
| 338 | |
---|
| 339 | |
---|
[3436] | 340 | // set Attributes |
---|
[3245] | 341 | /** |
---|
[3597] | 342 | \brief sets the ambient Color of the Scene |
---|
| 343 | \param r red |
---|
| 344 | \param g green |
---|
| 345 | \param b blue |
---|
[3436] | 346 | */ |
---|
[3597] | 347 | void LightManager::setAmbientColor(GLfloat r, GLfloat g, GLfloat b) |
---|
[3436] | 348 | { |
---|
[3597] | 349 | this->ambientColor[0] = r; |
---|
| 350 | this->ambientColor[1] = g; |
---|
| 351 | this->ambientColor[2] = b; |
---|
| 352 | this->ambientColor[3] = 1.0; |
---|
[3245] | 353 | |
---|
[3597] | 354 | glLightfv (GL_LIGHT0, GL_AMBIENT, this->ambientColor); |
---|
[3437] | 355 | } |
---|
[3436] | 356 | |
---|
[3598] | 357 | /** |
---|
| 358 | \brief sets The Position of the currently selected Light |
---|
| 359 | \param position the new Position |
---|
| 360 | */ |
---|
[3597] | 361 | void LightManager::setPosition(Vector position) |
---|
[3437] | 362 | { |
---|
[3597] | 363 | this->currentLight->setPosition(position); |
---|
[3436] | 364 | } |
---|
[3598] | 365 | |
---|
| 366 | /** |
---|
| 367 | \brief Sets a Position for the currently selected Light. |
---|
| 368 | \param x the x-coordinate |
---|
| 369 | \param y the y-coordinate |
---|
| 370 | \param z the z-coordinate |
---|
| 371 | */ |
---|
[3597] | 372 | void LightManager::setPosition(GLfloat x, GLfloat y, GLfloat z) |
---|
[3436] | 373 | { |
---|
[3597] | 374 | this->currentLight->setPosition(x, y, z); |
---|
[3436] | 375 | } |
---|
[3598] | 376 | |
---|
| 377 | /** |
---|
| 378 | \brief sets an emitting Diffuse color of the currently selected Light |
---|
| 379 | \param r red |
---|
| 380 | \param g green |
---|
| 381 | \param b blue |
---|
| 382 | */ |
---|
[3597] | 383 | void LightManager::setDiffuseColor(GLfloat r, GLfloat g, GLfloat b) |
---|
[3436] | 384 | { |
---|
[3597] | 385 | this->currentLight->setDiffuseColor(r,g,b); |
---|
[3436] | 386 | } |
---|
[3598] | 387 | |
---|
| 388 | /** |
---|
| 389 | \brief sets an emitting Specular color of the currently selected Light |
---|
| 390 | \param r red |
---|
| 391 | \param g green |
---|
| 392 | \param b blue |
---|
| 393 | */ |
---|
[3597] | 394 | void LightManager::setSpecularColor(GLfloat r, GLfloat g, GLfloat b) |
---|
[3441] | 395 | { |
---|
[3597] | 396 | this->currentLight->setSpecularColor(r, g, b); |
---|
[3441] | 397 | } |
---|
[3598] | 398 | |
---|
| 399 | /** |
---|
| 400 | \brief Sets the AttenuationType of th currently selecte LightSource Light Source |
---|
| 401 | \param constantAttenuation The Constant Attenuation of the Light |
---|
| 402 | \param linearAttenuation The Linear Attenuation of the Light |
---|
| 403 | \param quadraticAttenuation The Quadratic Attenuation of the Light |
---|
| 404 | */ |
---|
[3597] | 405 | void LightManager::setAttenuation(float constantAttenuation, float linearAttenuation, float quadraticAttenuation) |
---|
[3440] | 406 | { |
---|
[3597] | 407 | this->currentLight->setAttenuation(constantAttenuation, linearAttenuation, quadraticAttenuation); |
---|
[3440] | 408 | } |
---|
[3598] | 409 | |
---|
| 410 | |
---|
| 411 | /** |
---|
| 412 | \brief stets the direction of the Spot Light. |
---|
| 413 | \param direction The direction of the Spot Light. |
---|
| 414 | */ |
---|
[3597] | 415 | void LightManager::setSpotDirection(Vector direction) |
---|
[3453] | 416 | { |
---|
[3597] | 417 | this->currentLight->setSpotDirection(direction); |
---|
[3453] | 418 | } |
---|
[3598] | 419 | |
---|
| 420 | /** |
---|
| 421 | \brief sets the cutoff angle of the Light. |
---|
| 422 | \param cutoff The cutoff angle. |
---|
| 423 | */ |
---|
[3597] | 424 | void LightManager::setSpotCutoff(GLfloat cutoff) |
---|
[3453] | 425 | { |
---|
[3597] | 426 | this->currentLight->setSpotCutoff(cutoff); |
---|
[3453] | 427 | } |
---|
| 428 | |
---|
[3436] | 429 | // get Attributes |
---|
| 430 | /** |
---|
| 431 | \returns the Position of the Light |
---|
| 432 | */ |
---|
[3597] | 433 | Vector LightManager::getPosition(void) |
---|
[3436] | 434 | { |
---|
[3438] | 435 | if (!this->currentLight) |
---|
| 436 | { |
---|
| 437 | PRINTF(1)("no Light defined yet\n"); |
---|
| 438 | return Vector(.0, .0, .0); |
---|
| 439 | } |
---|
| 440 | else |
---|
[3598] | 441 | return this->currentLight->getPosition(); |
---|
[3436] | 442 | } |
---|
[3442] | 443 | |
---|
| 444 | /** |
---|
[3598] | 445 | \returns the Position of Light |
---|
| 446 | \param lightNumber lightnumber |
---|
| 447 | */ |
---|
| 448 | Vector LightManager::getPosition(int lightNumber) |
---|
| 449 | { |
---|
| 450 | if (!this->lights[lightNumber]) |
---|
| 451 | return Vector(.0,.0,.0); |
---|
| 452 | else |
---|
| 453 | return this->lights[lightNumber]->getPosition(); |
---|
| 454 | } |
---|
| 455 | |
---|
| 456 | |
---|
| 457 | /** |
---|
[3442] | 458 | \brief outputs debug information about the Class and its lights |
---|
| 459 | */ |
---|
[3597] | 460 | void LightManager::debug(void) |
---|
[3442] | 461 | { |
---|
| 462 | PRINT(0)("=================================\n"); |
---|
| 463 | PRINT(0)("= DEBUG INFORMATION CLASS LIGHT =\n"); |
---|
| 464 | PRINT(0)("=================================\n"); |
---|
[3597] | 465 | PRINT(0)("Reference: %p\n", LightManager::singletonRef); |
---|
[3442] | 466 | if (this->currentLight) |
---|
[3598] | 467 | PRINT(0)("current Light Nr: %d\n", this->currentLight->getLightNumber()); |
---|
[3442] | 468 | PRINT(0)("Ambient Color: %f:%f:%f\n", this->ambientColor[0], this->ambientColor[0], this->ambientColor[0]); |
---|
| 469 | PRINT(0)("=== Lights ===\n"); |
---|
| 470 | for (int i = 0; i < NUMBEROFLIGHTS; i++) |
---|
| 471 | if (this->lights[i]) |
---|
| 472 | { |
---|
[3597] | 473 | this->lights[i]->debug(); |
---|
[3442] | 474 | } |
---|
| 475 | PRINT(0)("--------------------------------\n"); |
---|
| 476 | } |
---|