Changeset 3455 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Mar 3, 2005, 7:57:26 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.am
r3436 r3455 38 38 glmenu_imagescreen.cc \ 39 39 skysphere.cc \ 40 light.cc 40 light.cc \ 41 sfont/cone3dfont.cc 41 42 42 43 noinst_HEADERS = ability.h \ -
orxonox/trunk/src/Makefile.in
r3436 r3455 64 64 helper_parent.$(OBJEXT) track_manager.$(OBJEXT) \ 65 65 matrix.$(OBJEXT) curve.$(OBJEXT) glmenu_imagescreen.$(OBJEXT) \ 66 skysphere.$(OBJEXT) light.$(OBJEXT) 66 skysphere.$(OBJEXT) light.$(OBJEXT) cone3dfont.$(OBJEXT) 67 67 orxonox_OBJECTS = $(am_orxonox_OBJECTS) 68 68 orxonox_LDADD = $(LDADD) … … 74 74 @AMDEP_TRUE@ ./$(DEPDIR)/base_object.Po ./$(DEPDIR)/camera.Po \ 75 75 @AMDEP_TRUE@ ./$(DEPDIR)/campaign.Po ./$(DEPDIR)/collision.Po \ 76 @AMDEP_TRUE@ ./$(DEPDIR)/command_node.Po ./$(DEPDIR)/curve.Po \ 76 @AMDEP_TRUE@ ./$(DEPDIR)/command_node.Po \ 77 @AMDEP_TRUE@ ./$(DEPDIR)/cone3dfont.Po ./$(DEPDIR)/curve.Po \ 77 78 @AMDEP_TRUE@ ./$(DEPDIR)/data_tank.Po \ 78 79 @AMDEP_TRUE@ ./$(DEPDIR)/environment.Po \ … … 248 249 glmenu_imagescreen.cc \ 249 250 skysphere.cc \ 250 light.cc 251 light.cc \ 252 sfont/cone3dfont.cc 251 253 252 254 noinst_HEADERS = ability.h \ … … 379 381 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/collision.Po@am__quote@ 380 382 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/command_node.Po@am__quote@ 383 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cone3dfont.Po@am__quote@ 381 384 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/curve.Po@am__quote@ 382 385 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/data_tank.Po@am__quote@ … … 500 503 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 501 504 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o texture.obj `if test -f 'importer/texture.cc'; then $(CYGPATH_W) 'importer/texture.cc'; else $(CYGPATH_W) '$(srcdir)/importer/texture.cc'; fi` 505 506 cone3dfont.o: sfont/cone3dfont.cc 507 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT cone3dfont.o -MD -MP -MF "$(DEPDIR)/cone3dfont.Tpo" -c -o cone3dfont.o `test -f 'sfont/cone3dfont.cc' || echo '$(srcdir)/'`sfont/cone3dfont.cc; \ 508 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/cone3dfont.Tpo" "$(DEPDIR)/cone3dfont.Po"; else rm -f "$(DEPDIR)/cone3dfont.Tpo"; exit 1; fi 509 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='sfont/cone3dfont.cc' object='cone3dfont.o' libtool=no @AMDEPBACKSLASH@ 510 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/cone3dfont.Po' tmpdepfile='$(DEPDIR)/cone3dfont.TPo' @AMDEPBACKSLASH@ 511 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 512 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o cone3dfont.o `test -f 'sfont/cone3dfont.cc' || echo '$(srcdir)/'`sfont/cone3dfont.cc 513 514 cone3dfont.obj: sfont/cone3dfont.cc 515 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT cone3dfont.obj -MD -MP -MF "$(DEPDIR)/cone3dfont.Tpo" -c -o cone3dfont.obj `if test -f 'sfont/cone3dfont.cc'; then $(CYGPATH_W) 'sfont/cone3dfont.cc'; else $(CYGPATH_W) '$(srcdir)/sfont/cone3dfont.cc'; fi`; \ 516 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/cone3dfont.Tpo" "$(DEPDIR)/cone3dfont.Po"; else rm -f "$(DEPDIR)/cone3dfont.Tpo"; exit 1; fi 517 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='sfont/cone3dfont.cc' object='cone3dfont.obj' libtool=no @AMDEPBACKSLASH@ 518 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/cone3dfont.Po' tmpdepfile='$(DEPDIR)/cone3dfont.TPo' @AMDEPBACKSLASH@ 519 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 520 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o cone3dfont.obj `if test -f 'sfont/cone3dfont.cc'; then $(CYGPATH_W) 'sfont/cone3dfont.cc'; else $(CYGPATH_W) '$(srcdir)/sfont/cone3dfont.cc'; fi` 502 521 uninstall-info-am: 503 522 -
orxonox/trunk/src/world.cc
r3449 r3455 29 29 #include "skysphere.h" 30 30 #include "light.h" 31 #include "sfont/cone3dfont.h" 31 32 32 33 using namespace std; … … 200 201 void World::load() 201 202 { 202 // LIGHT initialisation203 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 213 203 // BezierCurve* tmpCurve = new BezierCurve(); 214 204 if(this->debugWorldNr != -1) 215 205 { 206 // initializing Font 207 testFont = new Cone3DFont(); 208 testFont->BuildFont("../data/pictures/font.tga"); 209 210 // initializing the TrackManager 216 211 trackManager = TrackManager::getInstance(); 217 212 trackManager->addPoint(Vector(0,-5,0)); … … 583 578 */ 584 579 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 585 594 } 586 595 … … 648 657 // draw debug coord system 649 658 glCallList (objectList); 650 651 659 //! \todo skysphere is a WorldEntity and should be inside of the world-entity-list. 652 660 skySphere->draw(); 661 662 testFont->PrintText(10, 10, 1, "orxonox_" PACKAGE_VERSION); 653 663 654 664 } -
orxonox/trunk/src/world.h
r3449 r3455 18 18 class Skysphere; 19 19 class Light; 20 class Cone3DFont; 20 21 21 22 //! The game world … … 72 73 bool bPause; //!< pause mode 73 74 75 Cone3DFont* testFont; //!< A test Font. \todo fix this, so it is for real. 74 76 GLMenuImageScreen* glmis; //!< The Level-Loader Display 75 77
Note: See TracChangeset
for help on using the changeset viewer.