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/lib/util/loading/resource_manager.h

    r9835 r9836  
    11/*!
    2  * @file new_resource_manager.h
     2 * @file resource_manager.h
    33 */
    44
    5 #ifndef _NEW_RESOURCE_MANAGER_H
    6 #define _NEW_RESOURCE_MANAGER_H
     5#ifndef _RESOURCE_MANAGER_H
     6#define _RESOURCE_MANAGER_H
    77
    88#include "resource.h"
     
    1313{
    1414
    15   class NewResourceManager : public BaseObject
     15  class ResourceManager : public BaseObject
    1616  {
    17     ObjectListDeclaration(NewResourceManager);
     17    ObjectListDeclaration(ResourceManager);
    1818  public:
    1919    /** @returns a Pointer to the only object of this Class */
    20     inline static NewResourceManager* getInstance() { if (!_singletonRef) _singletonRef = new NewResourceManager();  return _singletonRef; };
     20    inline static ResourceManager* getInstance() { if (!_singletonRef) _singletonRef = new ResourceManager();  return _singletonRef; };
    2121    /** @brief deletes the Instance if it exists. */
    2222    inline static void deleteInstance() { if (_singletonRef) delete _singletonRef; };
     
    5454    static bool isInDataDir(const std::string& fileName);
    5555  private:
    56     NewResourceManager();
    57     virtual ~NewResourceManager();
     56    ResourceManager();
     57    virtual ~ResourceManager();
    5858
    5959  private:
    60     static NewResourceManager*         _singletonRef;       //!< singleton Reference
     60    static ResourceManager*         _singletonRef;       //!< singleton Reference
    6161
    6262    Directory                          _mainGlobalPath;     //!< The main include directory (default at "./")
Note: See TracChangeset for help on using the changeset viewer.