Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4245 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
May 20, 2005, 11:28:43 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: merged back the md2_loader branche manualy (a full merge was impossible).

Location:
orxonox/trunk/src
Files:
9 added
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/Makefile.am

    r4220 r4245  
    4545                 util/animation/animation3d.cc \
    4646                 util/animation/animation_player.cc \
     47                 util/object_manager.cc \
    4748                 garbage_collector.cc \
    4849                 story_entities/story_entity.cc \
     
    6162                 world_entities/test_gun.cc \
    6263                 world_entities/test_bullet.cc \
     64                 world_entities/test_entity.cc \
    6365                 ai/ai.cc \
    6466                 lib/coord/p_node.cc \
     
    7173                 lib/graphics/importer/array.cc \
    7274                 lib/graphics/importer/objModel.cc \
     75                 lib/graphics/importer/md2Model.cc \
    7376                 lib/graphics/importer/primitive_model.cc \
    7477                 lib/graphics/importer/model.cc \
     
    107110                 util/animation/animation3d.h \
    108111                 util/animation/animation_player.h \
     112                 util/object_manager.h \
    109113                 garbage_collector.h \
    110114                 story_entities/story_entity.h \
     
    126130                 world_entities/test_gun.h \
    127131                 world_entities/test_bullet.h \
     132                 world_entities/test_entity.h \
    128133                 ai/ai.h \
    129134                 network/synchronisable.h \
     
    141146                 lib/graphics/light.h \
    142147                 lib/graphics/text_engine.h \
     148                 lib/graphics/importer/array.h \
     149                 lib/graphics/importer/abstract_model.h \
     150                 lib/graphics/importer/objModel.h \
     151                 lib/graphics/importer/md2Model.h \
     152                 lib/graphics/importer/primitive_model.h \
     153                 lib/graphics/importer/model.h \
     154                 lib/graphics/importer/material.h \
     155                 lib/graphics/importer/texture.h \
    143156                 lib/graphics/particles/particle_engine.h \
    144157                 lib/graphics/particles/particle_system.h \
  • orxonox/trunk/src/Makefile.in

    r4220 r4245  
    7373        track_manager.$(OBJEXT) track_node.$(OBJEXT) factory.$(OBJEXT) \
    7474        animation.$(OBJEXT) animation3d.$(OBJEXT) \
    75         animation_player.$(OBJEXT) garbage_collector.$(OBJEXT) \
    76         story_entity.$(OBJEXT) campaign.$(OBJEXT) world.$(OBJEXT) \
    77         world_entity.$(OBJEXT) player.$(OBJEXT) environment.$(OBJEXT) \
    78         skysphere.$(OBJEXT) skybox.$(OBJEXT) terrain.$(OBJEXT) \
    79         weapon.$(OBJEXT) projectile.$(OBJEXT) satellite.$(OBJEXT) \
     75        animation_player.$(OBJEXT) object_manager.$(OBJEXT) \
     76        garbage_collector.$(OBJEXT) story_entity.$(OBJEXT) \
     77        campaign.$(OBJEXT) world.$(OBJEXT) world_entity.$(OBJEXT) \
     78        player.$(OBJEXT) environment.$(OBJEXT) skysphere.$(OBJEXT) \
     79        skybox.$(OBJEXT) terrain.$(OBJEXT) weapon.$(OBJEXT) \
     80        projectile.$(OBJEXT) satellite.$(OBJEXT) \
    8081        character_attributes.$(OBJEXT) test_gun.$(OBJEXT) \
    81         test_bullet.$(OBJEXT) ai.$(OBJEXT) p_node.$(OBJEXT) \
    82         null_parent.$(OBJEXT) helper_parent.$(OBJEXT) \
     82        test_bullet.$(OBJEXT) test_entity.$(OBJEXT) ai.$(OBJEXT) \
     83        p_node.$(OBJEXT) null_parent.$(OBJEXT) helper_parent.$(OBJEXT) \
    8384        data_tank.$(OBJEXT) graphics_engine.$(OBJEXT) light.$(OBJEXT) \
    8485        text_engine.$(OBJEXT) array.$(OBJEXT) objModel.$(OBJEXT) \
    85         primitive_model.$(OBJEXT) model.$(OBJEXT) material.$(OBJEXT) \
    86         texture.$(OBJEXT) particle_engine.$(OBJEXT) \
     86        md2Model.$(OBJEXT) primitive_model.$(OBJEXT) model.$(OBJEXT) \
     87        material.$(OBJEXT) texture.$(OBJEXT) particle_engine.$(OBJEXT) \
    8788        particle_system.$(OBJEXT) particle_emitter.$(OBJEXT) \
    8889        base_entity.$(OBJEXT) base_object.$(OBJEXT) \
     
    125126@AMDEP_TRUE@    ./$(DEPDIR)/libORXgui_a-gui_video.Po \
    126127@AMDEP_TRUE@    ./$(DEPDIR)/light.Po ./$(DEPDIR)/list.Po \
    127 @AMDEP_TRUE@    ./$(DEPDIR)/material.Po ./$(DEPDIR)/model.Po \
    128 @AMDEP_TRUE@    ./$(DEPDIR)/null_parent.Po ./$(DEPDIR)/objModel.Po \
     128@AMDEP_TRUE@    ./$(DEPDIR)/material.Po ./$(DEPDIR)/md2Model.Po \
     129@AMDEP_TRUE@    ./$(DEPDIR)/model.Po ./$(DEPDIR)/null_parent.Po \
     130@AMDEP_TRUE@    ./$(DEPDIR)/objModel.Po \
     131@AMDEP_TRUE@    ./$(DEPDIR)/object_manager.Po \
    129132@AMDEP_TRUE@    ./$(DEPDIR)/orxonox.Po ./$(DEPDIR)/p_node.Po \
    130133@AMDEP_TRUE@    ./$(DEPDIR)/particle_emitter.Po \
     
    139142@AMDEP_TRUE@    ./$(DEPDIR)/story_entity.Po \
    140143@AMDEP_TRUE@    ./$(DEPDIR)/substring.Po ./$(DEPDIR)/terrain.Po \
    141 @AMDEP_TRUE@    ./$(DEPDIR)/test_bullet.Po ./$(DEPDIR)/test_gun.Po \
     144@AMDEP_TRUE@    ./$(DEPDIR)/test_bullet.Po \
     145@AMDEP_TRUE@    ./$(DEPDIR)/test_entity.Po ./$(DEPDIR)/test_gun.Po \
    142146@AMDEP_TRUE@    ./$(DEPDIR)/text_engine.Po ./$(DEPDIR)/texture.Po \
    143147@AMDEP_TRUE@    ./$(DEPDIR)/tinystr.Po ./$(DEPDIR)/tinyxml.Po \
     
    290294                 util/animation/animation3d.cc \
    291295                 util/animation/animation_player.cc \
     296                 util/object_manager.cc \
    292297                 garbage_collector.cc \
    293298                 story_entities/story_entity.cc \
     
    306311                 world_entities/test_gun.cc \
    307312                 world_entities/test_bullet.cc \
     313                 world_entities/test_entity.cc \
    308314                 ai/ai.cc \
    309315                 lib/coord/p_node.cc \
     
    316322                 lib/graphics/importer/array.cc \
    317323                 lib/graphics/importer/objModel.cc \
     324                 lib/graphics/importer/md2Model.cc \
    318325                 lib/graphics/importer/primitive_model.cc \
    319326                 lib/graphics/importer/model.cc \
     
    352359                 util/animation/animation3d.h \
    353360                 util/animation/animation_player.h \
     361                 util/object_manager.h \
    354362                 garbage_collector.h \
    355363                 story_entities/story_entity.h \
     
    371379                 world_entities/test_gun.h \
    372380                 world_entities/test_bullet.h \
     381                 world_entities/test_entity.h \
    373382                 ai/ai.h \
    374383                 network/synchronisable.h \
     
    386395                 lib/graphics/light.h \
    387396                 lib/graphics/text_engine.h \
     397                 lib/graphics/importer/array.h \
     398                 lib/graphics/importer/abstract_model.h \
     399                 lib/graphics/importer/objModel.h \
     400                 lib/graphics/importer/md2Model.h \
     401                 lib/graphics/importer/primitive_model.h \
     402                 lib/graphics/importer/model.h \
     403                 lib/graphics/importer/material.h \
     404                 lib/graphics/importer/texture.h \
    388405                 lib/graphics/particles/particle_engine.h \
    389406                 lib/graphics/particles/particle_system.h \
     
    546563@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list.Po@am__quote@
    547564@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/material.Po@am__quote@
     565@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md2Model.Po@am__quote@
    548566@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/model.Po@am__quote@
    549567@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/null_parent.Po@am__quote@
    550568@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/objModel.Po@am__quote@
     569@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/object_manager.Po@am__quote@
    551570@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox.Po@am__quote@
    552571@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/p_node.Po@am__quote@
     
    565584@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/terrain.Po@am__quote@
    566585@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_bullet.Po@am__quote@
     586@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_entity.Po@am__quote@
    567587@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_gun.Po@am__quote@
    568588@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text_engine.Po@am__quote@
     
    819839@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o animation_player.obj `if test -f 'util/animation/animation_player.cc'; then $(CYGPATH_W) 'util/animation/animation_player.cc'; else $(CYGPATH_W) '$(srcdir)/util/animation/animation_player.cc'; fi`
    820840
     841object_manager.o: util/object_manager.cc
     842@am__fastdepCXX_TRUE@   if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT object_manager.o -MD -MP -MF "$(DEPDIR)/object_manager.Tpo" -c -o object_manager.o `test -f 'util/object_manager.cc' || echo '$(srcdir)/'`util/object_manager.cc; \
     843@am__fastdepCXX_TRUE@   then mv -f "$(DEPDIR)/object_manager.Tpo" "$(DEPDIR)/object_manager.Po"; else rm -f "$(DEPDIR)/object_manager.Tpo"; exit 1; fi
     844@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='util/object_manager.cc' object='object_manager.o' libtool=no @AMDEPBACKSLASH@
     845@AMDEP_TRUE@@am__fastdepCXX_FALSE@      depfile='$(DEPDIR)/object_manager.Po' tmpdepfile='$(DEPDIR)/object_manager.TPo' @AMDEPBACKSLASH@
     846@AMDEP_TRUE@@am__fastdepCXX_FALSE@      $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     847@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o object_manager.o `test -f 'util/object_manager.cc' || echo '$(srcdir)/'`util/object_manager.cc
     848
     849object_manager.obj: util/object_manager.cc
     850@am__fastdepCXX_TRUE@   if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT object_manager.obj -MD -MP -MF "$(DEPDIR)/object_manager.Tpo" -c -o object_manager.obj `if test -f 'util/object_manager.cc'; then $(CYGPATH_W) 'util/object_manager.cc'; else $(CYGPATH_W) '$(srcdir)/util/object_manager.cc'; fi`; \
     851@am__fastdepCXX_TRUE@   then mv -f "$(DEPDIR)/object_manager.Tpo" "$(DEPDIR)/object_manager.Po"; else rm -f "$(DEPDIR)/object_manager.Tpo"; exit 1; fi
     852@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='util/object_manager.cc' object='object_manager.obj' libtool=no @AMDEPBACKSLASH@
     853@AMDEP_TRUE@@am__fastdepCXX_FALSE@      depfile='$(DEPDIR)/object_manager.Po' tmpdepfile='$(DEPDIR)/object_manager.TPo' @AMDEPBACKSLASH@
     854@AMDEP_TRUE@@am__fastdepCXX_FALSE@      $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     855@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o object_manager.obj `if test -f 'util/object_manager.cc'; then $(CYGPATH_W) 'util/object_manager.cc'; else $(CYGPATH_W) '$(srcdir)/util/object_manager.cc'; fi`
     856
    821857story_entity.o: story_entities/story_entity.cc
    822858@am__fastdepCXX_TRUE@   if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT story_entity.o -MD -MP -MF "$(DEPDIR)/story_entity.Tpo" -c -o story_entity.o `test -f 'story_entities/story_entity.cc' || echo '$(srcdir)/'`story_entities/story_entity.cc; \
     
    10591095@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_bullet.obj `if test -f 'world_entities/test_bullet.cc'; then $(CYGPATH_W) 'world_entities/test_bullet.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/test_bullet.cc'; fi`
    10601096
     1097test_entity.o: world_entities/test_entity.cc
     1098@am__fastdepCXX_TRUE@   if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_entity.o -MD -MP -MF "$(DEPDIR)/test_entity.Tpo" -c -o test_entity.o `test -f 'world_entities/test_entity.cc' || echo '$(srcdir)/'`world_entities/test_entity.cc; \
     1099@am__fastdepCXX_TRUE@   then mv -f "$(DEPDIR)/test_entity.Tpo" "$(DEPDIR)/test_entity.Po"; else rm -f "$(DEPDIR)/test_entity.Tpo"; exit 1; fi
     1100@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='world_entities/test_entity.cc' object='test_entity.o' libtool=no @AMDEPBACKSLASH@
     1101@AMDEP_TRUE@@am__fastdepCXX_FALSE@      depfile='$(DEPDIR)/test_entity.Po' tmpdepfile='$(DEPDIR)/test_entity.TPo' @AMDEPBACKSLASH@
     1102@AMDEP_TRUE@@am__fastdepCXX_FALSE@      $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     1103@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_entity.o `test -f 'world_entities/test_entity.cc' || echo '$(srcdir)/'`world_entities/test_entity.cc
     1104
     1105test_entity.obj: world_entities/test_entity.cc
     1106@am__fastdepCXX_TRUE@   if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_entity.obj -MD -MP -MF "$(DEPDIR)/test_entity.Tpo" -c -o test_entity.obj `if test -f 'world_entities/test_entity.cc'; then $(CYGPATH_W) 'world_entities/test_entity.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/test_entity.cc'; fi`; \
     1107@am__fastdepCXX_TRUE@   then mv -f "$(DEPDIR)/test_entity.Tpo" "$(DEPDIR)/test_entity.Po"; else rm -f "$(DEPDIR)/test_entity.Tpo"; exit 1; fi
     1108@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='world_entities/test_entity.cc' object='test_entity.obj' libtool=no @AMDEPBACKSLASH@
     1109@AMDEP_TRUE@@am__fastdepCXX_FALSE@      depfile='$(DEPDIR)/test_entity.Po' tmpdepfile='$(DEPDIR)/test_entity.TPo' @AMDEPBACKSLASH@
     1110@AMDEP_TRUE@@am__fastdepCXX_FALSE@      $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     1111@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_entity.obj `if test -f 'world_entities/test_entity.cc'; then $(CYGPATH_W) 'world_entities/test_entity.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/test_entity.cc'; fi`
     1112
    10611113ai.o: ai/ai.cc
    10621114@am__fastdepCXX_TRUE@   if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ai.o -MD -MP -MF "$(DEPDIR)/ai.Tpo" -c -o ai.o `test -f 'ai/ai.cc' || echo '$(srcdir)/'`ai/ai.cc; \
     
    12181270@AMDEP_TRUE@@am__fastdepCXX_FALSE@      $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    12191271@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o objModel.obj `if test -f 'lib/graphics/importer/objModel.cc'; then $(CYGPATH_W) 'lib/graphics/importer/objModel.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/importer/objModel.cc'; fi`
     1272
     1273md2Model.o: lib/graphics/importer/md2Model.cc
     1274@am__fastdepCXX_TRUE@   if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT md2Model.o -MD -MP -MF "$(DEPDIR)/md2Model.Tpo" -c -o md2Model.o `test -f 'lib/graphics/importer/md2Model.cc' || echo '$(srcdir)/'`lib/graphics/importer/md2Model.cc; \
     1275@am__fastdepCXX_TRUE@   then mv -f "$(DEPDIR)/md2Model.Tpo" "$(DEPDIR)/md2Model.Po"; else rm -f "$(DEPDIR)/md2Model.Tpo"; exit 1; fi
     1276@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='lib/graphics/importer/md2Model.cc' object='md2Model.o' libtool=no @AMDEPBACKSLASH@
     1277@AMDEP_TRUE@@am__fastdepCXX_FALSE@      depfile='$(DEPDIR)/md2Model.Po' tmpdepfile='$(DEPDIR)/md2Model.TPo' @AMDEPBACKSLASH@
     1278@AMDEP_TRUE@@am__fastdepCXX_FALSE@      $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     1279@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o md2Model.o `test -f 'lib/graphics/importer/md2Model.cc' || echo '$(srcdir)/'`lib/graphics/importer/md2Model.cc
     1280
     1281md2Model.obj: lib/graphics/importer/md2Model.cc
     1282@am__fastdepCXX_TRUE@   if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT md2Model.obj -MD -MP -MF "$(DEPDIR)/md2Model.Tpo" -c -o md2Model.obj `if test -f 'lib/graphics/importer/md2Model.cc'; then $(CYGPATH_W) 'lib/graphics/importer/md2Model.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/importer/md2Model.cc'; fi`; \
     1283@am__fastdepCXX_TRUE@   then mv -f "$(DEPDIR)/md2Model.Tpo" "$(DEPDIR)/md2Model.Po"; else rm -f "$(DEPDIR)/md2Model.Tpo"; exit 1; fi
     1284@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='lib/graphics/importer/md2Model.cc' object='md2Model.obj' libtool=no @AMDEPBACKSLASH@
     1285@AMDEP_TRUE@@am__fastdepCXX_FALSE@      depfile='$(DEPDIR)/md2Model.Po' tmpdepfile='$(DEPDIR)/md2Model.TPo' @AMDEPBACKSLASH@
     1286@AMDEP_TRUE@@am__fastdepCXX_FALSE@      $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     1287@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o md2Model.obj `if test -f 'lib/graphics/importer/md2Model.cc'; then $(CYGPATH_W) 'lib/graphics/importer/md2Model.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/importer/md2Model.cc'; fi`
    12201288
    12211289primitive_model.o: lib/graphics/importer/primitive_model.cc
     
    16771745
    16781746distdir: $(DISTFILES)
    1679         $(mkdir_p) $(distdir)/ai $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/data $(distdir)/lib/graphics $(distdir)/lib/graphics/particles $(distdir)/lib/gui/gui $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/network $(distdir)/proto $(distdir)/story_entities $(distdir)/subprojects $(distdir)/util $(distdir)/util/animation $(distdir)/util/common $(distdir)/world_entities
     1747        $(mkdir_p) $(distdir)/ai $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/data $(distdir)/lib/graphics $(distdir)/lib/graphics/importer $(distdir)/lib/graphics/particles $(distdir)/lib/gui/gui $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/network $(distdir)/proto $(distdir)/story_entities $(distdir)/subprojects $(distdir)/util $(distdir)/util/animation $(distdir)/util/common $(distdir)/world_entities
    16801748        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    16811749        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  • orxonox/trunk/src/lib/graphics/graphics_engine.cc

    r4135 r4245  
    2020
    2121#include "debug.h"
     22#include "text_engine.h"
    2223
    2324using namespace std;
     
    3031GraphicsEngine::GraphicsEngine ()
    3132{
     33  this->bDisplayFPS = false;
     34  this->minFPS = 9999;
     35  this->maxFPS = 0;
    3236  this->setClassName ("GraphicsEngine");
    3337
     
    278282      PRINT(4)(" |  %d x %d\n", this->videoModes[i]->w, this->videoModes[i]->h);
    279283  }
    280  
    281 }
     284}
     285
     286
     287void GraphicsEngine::tick(float dt)
     288{
     289        if( unlikely(this->bDisplayFPS))
     290        {
     291          this->currentFPS = 1.0/dt;
     292      if( unlikely(this->currentFPS > this->maxFPS)) this->maxFPS = this->currentFPS;
     293          if( unlikely(this->currentFPS < this->minFPS)) this->minFPS = this->currentFPS;
     294         
     295          char tmpChar1[20];
     296          sprintf(tmpChar1, "Current:  %4.0f", this->currentFPS);
     297          this->geTextCFPS->setText(tmpChar1);
     298          char tmpChar2[20];
     299          sprintf(tmpChar2, "Max:    %4.0f", this->maxFPS);
     300          this->geTextMaxFPS->setText(tmpChar2);
     301          char tmpChar3[20];
     302          sprintf(tmpChar3, "Min:    %4.0f", this->minFPS);
     303          this->geTextMinFPS->setText(tmpChar3);
     304        }
     305}
     306 
     307void GraphicsEngine::displayFPS(bool display)
     308{
     309        if( display)
     310        {
     311                this->geTextCFPS = TextEngine::getInstance()->createText("fonts/druid.ttf", 35, TEXT_DYNAMIC, 0, 255, 0);
     312                this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT);
     313                this->geTextCFPS->setPosition(5, 500);
     314                this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/druid.ttf", 35, TEXT_DYNAMIC, 0, 255, 0);
     315                this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT);
     316                this->geTextMaxFPS->setPosition(5, 530);
     317                this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/druid.ttf", 35, TEXT_DYNAMIC, 0, 255, 0);
     318                this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT);
     319                this->geTextMinFPS->setPosition(5, 560);       
     320        }
     321        this->bDisplayFPS = display;
     322}
     323
     324 
  • orxonox/trunk/src/lib/graphics/graphics_engine.h

    r4135 r4245  
    1111
    1212#include "glincl.h"
    13 
    1413#include "base_object.h"
    1514
    16 // FORWARD DEFINITION \\
     15
     16class Text;
    1717
    1818
     
    4545  static GLdouble projMat[16];
    4646  static GLint viewPort[4];
    47 
     47 
     48  void tick(float dt);
     49  void displayFPS(bool display);
    4850
    4951
     
    5961  bool fullscreen;
    6062  Uint32 videoFlags;
     63 
     64  bool bDisplayFPS;  //!< is true if the fps should be displayed
     65  float currentFPS;  //!< the current frame rate: frames per seconds
     66  float maxFPS;      //!< maximal frame rate we ever got since start of the game
     67  float minFPS;      //!< minimal frame rate we ever got since start
     68
     69  Text* geTextCFPS;
     70  Text* geTextMaxFPS;
     71  Text* geTextMinFPS;
    6172
    6273  SDL_Rect **videoModes;
  • orxonox/trunk/src/story_entities/world.cc

    r4228 r4245  
    3333#include "skybox.h"
    3434#include "satellite.h"
     35#include "test_entity.h"
    3536#include "terrain.h"
    3637#include "light.h"
     
    4142#include "animation_player.h"
    4243#include "particle_engine.h"
     44#include "graphics_engine.h"
    4345
    4446#include "command_node.h"
     
    5052
    5153#include "substring.h"
     54
     55
    5256
    5357using namespace std;
     
    199203
    200204  delete WorldInterface::getInstance();
    201 
    202205  delete this->nullParent;
    203206  delete this->entities;
     
    206209  delete this->particleEngine;
    207210  TextEngine::getInstance()->flush();
    208 
    209211  delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence.
    210212  //delete garbagecollecor
     
    258260  this->localCamera = new Camera();
    259261  this->localCamera->setName ("camera");
     262 
     263  GraphicsEngine::getInstance()->displayFPS(true);
    260264}
    261265
     
    388392  this->localPlayer->addChild (this->localCamera);
    389393     
     394
    390395  lightMan->setAmbientColor(.1,.1,.1);
    391396  lightMan->addLight();
     
    395400  //  lightMan->setPosition(20, 10, -20);
    396401  //  lightMan->setDiffuseColor(0,0,0);
    397   lightMan->debug();
     402  //lightMan->debug();
    398403  lightMan->setPosition(-5.0, 10.0, -40.0);
    399404 
     
    416421  glNewList (objectList, GL_COMPILE);
    417422 
    418   trackManager->drawGraph(.01);
    419   trackManager->debug(2);
     423
     424  //trackManager->drawGraph(.01);
     425  //trackManager->debug(2);
    420426  glEndList();
    421427
     
    423429  terrain->setRelCoor(Vector(0,-10,0));
    424430  this->spawn(terrain);
     431
    425432
    426433
     
    434441 
    435442  particleEngine->addConnection(emitter, system);
    436 }
     443
     444  WorldEntity* testEntity = new TestEntity();
     445  //testEntity->setRelCoor(Vector(570, 10, -15));
     446  testEntity->setRelCoor(Vector(25, -10, -20));
     447  testEntity->setRelDir(Quaternion(M_PI, Vector(0, 1, 0)));
     448  this->spawn(testEntity);
     449  this->localPlayer->addChild(testEntity);
     450}
     451
    437452
    438453void World::loadDebugWorld(int worldID)
     
    11361151      this->trackManager->tick(this->dt);
    11371152      this->localCamera->tick(this->dt);
     1153      AnimationPlayer::getInstance()->tick(this->dtS);
     1154
     1155      particleEngine->tick(this->dtS);
    11381156      this->garbageCollector->tick(this->dtS);
    1139 
    1140       AnimationPlayer::getInstance()->tick(this->dtS);
    1141       particleEngine->tick(this->dtS);
     1157         
     1158      /* actualy the Graphics Engine should tick the world not the other way around...
     1159         but since we like the things not too complicated we got it this way around
     1160         until there is need or time to do it the other way around.
     1161         \todo: GraphicsEngine ticks world: separation of processes and data...
     1162      */
     1163      GraphicsEngine::getInstance()->tick(this->dtS);
    11421164    }
    11431165  this->lastFrame = currentFrame;
Note: See TracChangeset for help on using the changeset viewer.