Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2006, 5:16:10 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: Taken out the old ResourceManager.
On the way, i had to desintegrate the old MD3-model loading process (via ResourceManager) MD3 is untouched, but also not loaded anymore neither from ResourceMangers nor from the WorldEntity

@patrick: MD3-ModelLoading class must be implemented… this should be quite easy, with the way MD3 is, and the new Resource-paradigm
cheers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/world_entities/world_entity.cc

    r9832 r9836  
    2020#include "shell_command.h"
    2121
    22 #include "util/loading/new_resource_manager.h"
     22#include "util/loading/resource_manager.h"
    2323#include "resource_obj.h"
    2424#include "md2/md2Model.h"
     
    162162  std::string name = fileName;
    163163
    164   if (  name.find( Resources::NewResourceManager::getInstance()->mainGlobalPath().name() ) == 0 )
    165   {
    166     name.erase(Resources::NewResourceManager::getInstance()->mainGlobalPath().name().size());
     164  if (  name.find( Resources::ResourceManager::getInstance()->mainGlobalPath().name() ) == 0 )
     165  {
     166    name.erase(Resources::ResourceManager::getInstance()->mainGlobalPath().name().size());
    167167  }
    168168
     
    180180      {
    181181        lodFile[offset] = 48+(int)i;
    182         if (Resources::NewResourceManager::getInstance()->checkFileInMainPath( lodFile))
     182        if (Resources::ResourceManager::getInstance()->checkFileInMainPath( lodFile))
    183183          this->loadModel(lodFile, scaling, i);
    184184      }
     
    220220    {
    221221      PRINTF(4)("fetching MD3 file: %s\n", fileName.c_str());
    222       Model* m = new md3::MD3Model(fileName, this->scaling);
    223       this->setModel(m, 0);
     222//      Model* m = new md3::MD3Model(fileName, this->scaling);
     223//      this->setModel(m, 0);
    224224
    225225      //       if( m != NULL)
Note: See TracChangeset for help on using the changeset viewer.