Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4072 in orxonox.OLD


Ignore:
Timestamp:
May 6, 2005, 12:17:24 AM (19 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: implemented some data formats used by the md2 loader, altered debug levels, and commented out all the debug() functions. This branche won't run on you computer unless you have the fonts and models installed i use temporary for testing purposes

Location:
orxonox/branches/md2_loader/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/md2_loader/src/defs/debug.h

    r3966 r4072  
    5656// DEFINE MODULES
    5757#define DEBUG_MODULE_ORXONOX            0
    58 #define DEBUG_MODULE_WORLD              1
    59 #define DEBUG_MODULE_PNODE              1
     58#define DEBUG_MODULE_WORLD              0
     59#define DEBUG_MODULE_PNODE              0
    6060#define DEBUG_MODULE_WORLD_ENTITY       0
    6161#define DEBUG_MODULE_COMMAND_NODE       0
     
    6363#define DEBUG_MODULE_LOAD               0
    6464
    65 #define DEBUG_MODULE_IMPORTER           3
     65#define DEBUG_MODULE_IMPORTER           2
    6666#define DEBUG_MODULE_TRACK_MANAGER      0
    6767#define DEBUG_MODULE_GARBAGE_COLLECTOR  0
    6868#define DEBUG_MODULE_LIGHT              0
    69 #define DEBUG_MODULE_PLAYER             1
    70 #define DEBUG_MODULE_WEAPON             3
     69#define DEBUG_MODULE_PLAYER             0
     70#define DEBUG_MODULE_WEAPON             0
    7171#define DEBUG_MODULE_MATH               0
    72 #define DEBUG_MODULE_FONT               1
    73 #define DEBUG_MODULE_ANIM               1
    74 #define DEBUG_MODULE_PARTICLE           4
     72#define DEBUG_MODULE_FONT               0
     73#define DEBUG_MODULE_ANIM               0
     74#define DEBUG_MODULE_PARTICLE           0
    7575
    7676#define DEBUG_MODULE_NULL_PARENT        0
  • orxonox/branches/md2_loader/src/lib/graphics/graphics_engine.cc

    r4070 r4072  
    279279          // temporary, only for showing how fast the text-engine is
    280280          char tmpChar1[20];
    281           sprintf(tmpChar1, "Current: %4.0f", this->currentFPS);
     281          sprintf(tmpChar1, "Current:  %5.0f", this->currentFPS);
    282282          this->geTextCFPS->setText(tmpChar1);
    283283          char tmpChar2[20];
    284           sprintf(tmpChar2, "Max: %4.0f", this->maxFPS);
     284          sprintf(tmpChar2, "MAX: %4.0f", this->maxFPS);
    285285          this->geTextMaxFPS->setText(tmpChar2);
    286286          char tmpChar3[20];
    287           sprintf(tmpChar3, "Min: %4.0f", this->minFPS);
     287          sprintf(tmpChar3, "MIN: %4.0f", this->minFPS);
    288288          this->geTextMinFPS->setText(tmpChar3);
    289289        }
     
    294294        if( display)
    295295        {
    296                 this->geTextCFPS = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);
     296                this->geTextCFPS = TextEngine::getInstance()->createText("fonts/courier.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);
    297297                this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT);
    298298                this->geTextCFPS->setPosition(0, 500);
    299                 this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);
     299                this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/quake.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);
    300300                this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT);
    301301                this->geTextMaxFPS->setPosition(0, 530);
    302                 this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);
     302                this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/quake.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);
    303303                this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT);
    304304                this->geTextMinFPS->setPosition(0, 560);       
  • orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.h

    r4070 r4072  
    9191
    9292
    93 
    94 
    9593//! A class for representating a MD2Model
    9694class MD2Model : public AbstractModel {
  • orxonox/branches/md2_loader/src/orxonox.cc

    r4063 r4072  
    313313  */
    314314
     315  printf("++INFO++++++++++++++++++++++++++++++++++++++++++++++++\n");
     316  printf("+ This version of orxonox is for testing purposes    +\n");
     317  printf("+ In order to run it, you will need some files for   +\n");
     318  printf("+ the data/fonts and data/models repository.         +\n");
     319  printf("+ If you don't have them, the app will terminate     +\n");
     320  printf("+ with a segfault...                                 +\n");
     321  printf("+                    ...bzzzzz... paede out...       +\n");
     322  printf("++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
     323
    315324
    316325  int i;
  • orxonox/branches/md2_loader/src/story_entities/world.cc

    r4066 r4072  
    196196  cn->reset();
    197197
    198   ResourceManager::getInstance()->debug();
     198  //ResourceManager::getInstance()->debug();
    199199  ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);
    200   ResourceManager::getInstance()->debug();
     200  //ResourceManager::getInstance()->debug();
    201201
    202202  delete WorldInterface::getInstance();
     
    208208  TextEngine::getInstance()->flush();
    209209
    210   AnimationPlayer::getInstance()->debug();
     210  //AnimationPlayer::getInstance()->debug();
    211211  delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence.
    212212  //delete garbagecollecor
     
    446446  //  lightMan->setPosition(20, 10, -20);
    447447  //  lightMan->setDiffuseColor(0,0,0);
    448   lightMan->debug();
     448  //lightMan->debug();
    449449  lightMan->setPosition(-5.0, 10.0, -40.0);
    450450 
     
    466466  glNewList (objectList, GL_COMPILE);
    467467 
    468   //  trackManager->drawGraph(.01);
    469   trackManager->debug(2);
     468  //trackManager->drawGraph(.01);
     469  //trackManager->debug(2);
    470470  glEndList();
    471471
Note: See TracChangeset for help on using the changeset viewer.