Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9836 in orxonox.OLD for branches/new_class_id/src/world_entities


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

Location:
branches/new_class_id/src/world_entities
Files:
3 edited

Legend:

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

    r9833 r9836  
    1717
    1818#include "debug.h"
    19 #include "loading/new_resource_manager.h"
     19#include "loading/resource_manager.h"
    2020
    2121#include "class_id_DEPRECATED.h"
     
    7171
    7272  // Check wether file exists....
    73   if ( File(Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(name)).exists()  ) {
     73  if ( File(Resources::ResourceManager::getInstance()->prependAbsoluteMainPath(name)).exists()  ) {
    7474
    7575    this->bspManager = new BspManager(this);
  • branches/new_class_id/src/world_entities/terrain.cc

    r9833 r9836  
    1818#include "terrain.h"
    1919
    20 #include "util/loading/new_resource_manager.h"
     20#include "util/loading/resource_manager.h"
    2121#include "util/loading/load_param.h"
    2222#include "util/loading/factory.h"
     
    144144  this->heightMap = NULL;
    145145
    146   std::string hmName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(heightMapFile);
    147   std::string hmColorName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(colorMap);
     146  std::string hmName = Resources::ResourceManager::getInstance()->prependAbsoluteMainPath(heightMapFile);
     147  std::string hmColorName = Resources::ResourceManager::getInstance()->prependAbsoluteMainPath(colorMap);
    148148
    149149
  • 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.