Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3443 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Mar 1, 2005, 10:13:16 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: nice check if Light is enabled

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/light.cc

    r3442 r3443  
    330330      {
    331331        PRINT(0)(":: %d ::  -- reference %p\n", i, lights[i]);
     332        PRINT(0)(" GL-state: ");
     333        GLboolean param;
     334        glGetBooleanv(lightsV[i], &param);
     335        if (param)
     336          PRINT(0)("ON\n");
     337        else
     338          PRINT(0)("OFF\n");
     339
    332340        if (i != lights[i]->lightNumber)
    333341          PRINTF(1)(" Lights are out of sync, this really should not happen,\n   %d % should be equal.\n", i, lights[i]->lightNumber);
  • orxonox/trunk/src/world.cc

    r3442 r3443  
    178178  light->setPosition(20.0, 10.0, 20.0);
    179179  light->setDiffuseColor(1,1,1);
    180   //  light->addLight(1);
    181   //  light->setPosition(20, 10, -20);
    182   //  light->setDiffuseColor(0,0,0);
     180  light->addLight(1);
     181  light->setPosition(20, 10, -20);
     182  light->setDiffuseColor(0,0,0);
    183183  light->debug();
    184184
Note: See TracChangeset for help on using the changeset viewer.