Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3443 in orxonox.OLD for orxonox/trunk/src/light.cc


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

orxonox/trunk: nice check if Light is enabled

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.