Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 3, 2005, 7:57:26 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: cone3D-fonts added, but they will still need some work till they totally adapted to orxonox.

File:
1 edited

Legend:

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

    r3449 r3455  
    2929#include "skysphere.h"
    3030#include "light.h"
     31#include "sfont/cone3dfont.h"
    3132
    3233using namespace std;
     
    200201void World::load()
    201202{
    202   // LIGHT initialisation
    203   light = Light::getInstance();
    204   light->addLight(0);
    205   light->setAttenuation(QUADRATIC, 1.0);
    206   light->setPosition(20.0, 10.0, 20.0);
    207   light->setDiffuseColor(1,1,1);
    208   //  light->addLight(1);
    209   //  light->setPosition(20, 10, -20);
    210   //  light->setDiffuseColor(0,0,0);
    211   light->debug();
    212 
    213203  //  BezierCurve* tmpCurve = new BezierCurve();
    214204  if(this->debugWorldNr != -1)
    215205    {
     206      // initializing Font
     207      testFont = new Cone3DFont();
     208      testFont->BuildFont("../data/pictures/font.tga");
     209
     210      // initializing the TrackManager
    216211      trackManager = TrackManager::getInstance();
    217212      trackManager->addPoint(Vector(0,-5,0));
     
    583578  */
    584579  glEndList();
     580  // LIGHT initialisation
     581  light = Light::getInstance();
     582  light->addLight(0);
     583  light->setAttenuation(QUADRATIC, 1.0);
     584  light->setAttenuation(CONSTANT, 2.0);
     585  light->setAttenuation(QUADRATIC, 1.0);
     586  light->setPosition(10.0, 1.0, 0.0);
     587  light->setDiffuseColor(1,1,1);
     588  //  light->addLight(1);
     589  //  light->setPosition(20, 10, -20);
     590  //  light->setDiffuseColor(0,0,0);
     591  light->debug();
     592
     593
    585594}
    586595
     
    648657  // draw debug coord system
    649658  glCallList (objectList);
    650 
    651659  //! \todo skysphere is a WorldEntity and should be inside of the world-entity-list.
    652660  skySphere->draw();
     661
     662  testFont->PrintText(10, 10, 1, "orxonox_" PACKAGE_VERSION);
    653663
    654664}
Note: See TracChangeset for help on using the changeset viewer.