Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3437 in orxonox.OLD for orxonox/trunk/src/world.cc


Ignore:
Timestamp:
Mar 1, 2005, 8:11:31 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: light is now more like a lightManager. It is a Class, that handles many lights, and as such also glEnable(GL_LIGHTING)…
Until now It is not possible to initialize more than the first Light, but this will be fixed soon :)

File:
1 edited

Legend:

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

    r3436 r3437  
    172172void World::load()
    173173{
    174   light0 = new Light(Vector(10.0, 10.0, 19.0));
     174  light = Light::getInstance();
     175  light->addLight(1);
     176  light->setPosition(10.0, 10.0, 19.0);
    175177
    176178  //  BezierCurve* tmpCurve = new BezierCurve();
Note: See TracChangeset for help on using the changeset viewer.