Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7238 in orxonox.OLD for branches


Ignore:
Timestamp:
Mar 22, 2006, 11:25:52 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/resources: compiles again

Location:
branches/resources/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/resources/src/lib/BuildLibs.am

    r7237 r7238  
    1717                $(LIB_PREFIX)/parser/ini_parser/libIniParser.a \
    1818                $(LIB_PREFIX)/shell/libORXshell.a \
    19                 $(LIB_PREFIX)/math/libORXmath.a \
    20                 $(LIB_PREFIX)/libORXlibs.a
     19                $(LIB_PREFIX)/libORXlibs.a \
     20                $(LIB_PREFIX)/math/libORXmath.a
  • branches/resources/src/lib/util/loading/resource.cc

    r7237 r7238  
    2121namespace Loading
    2222{
     23  Resource::SharedResource::SharedResource()
     24  {
     25    this->referenceCount = 1;
     26    this->type = CL_NULL;
     27    this->prio = RP_NO;
     28  }
     29
    2330
    2431  /**
     
    3542   * standard deconstructor
    3643   */
    37 //   Resource::~Resource ()
     44  //   Resource::~Resource ()
     45  //   {
     46  //   }
     47
     48
     49  bool Resource::load(std::string& fileName, ResourcePriority prio,
     50                      const MultiType& param0, const MultiType& param1, const MultiType& param2)
     51  {}
     52  bool Resource::cache(std::string& fileName, ResourcePriority prio,
     53                       const MultiType& param0, const MultiType& param1,  const MultiType& param2)
     54  {}
     55
     56
     57  // reloads the resource.
     58//  bool Resource::reload()
     59//  {}
     60  // unloads the sharedResource (from this Resource)
     61  bool Resource::unload()
     62  {}
     63
     64  // checks if a resource was already loaded.
     65  bool Resource::isLoaded(std::string& fileName,
     66                          const MultiType& param0, const MultiType& param1, const MultiType& param2)
     67  {}
     68
     69  // raises the priority can only be raised
     70  void Resource::raisePriority(ResourcePriority prio)
     71  {}
     72
     73//   const SharedResource* findResource(std::string& fileName,
     74//                                      const MultiType& param0, const MultiType& param1, const MultiType& param2)
    3875//   {
    3976//   }
    4077
    41   Resource::SharedResource::SharedResource()
    42   {
    43     this->referenceCount = 1;
    44     this->type = CL_NULL;
    45     this->prio = RP_NO;
    46   }
    47 
    48 
    4978
    5079}
  • branches/resources/src/lib/util/loading/resource_manager.h

    r7225 r7238  
    2121
    2222#include "base_object.h"
     23#include "resource.h"
     24
    2325#include "multi_type.h"
     26
    2427
    2528#include <vector>
     
    5053};
    5154
    52 //! An enumerator for different UNLOAD-types.
     55//! An enumerator for different (UN)LOAD-types.
    5356/**
    54    RP_NO:        will be unloaded on request
    55    RP_LEVEL:     will be unloaded at the end of a Level
    56    RP_CAMPAIGN:  will be unloaded at the end of a Campaign
    57    RP_GAME:      will be unloaded at the end of the whole Game (when closing orxonox)
    58 */
    59 typedef enum ResourcePriority
     57 * RP_NO:        will be unloaded on request
     58 * RP_LEVEL:     will be unloaded at the end of a Level
     59 * RP_CAMPAIGN:  will be unloaded at the end of a Campaign
     60 * RP_GAME:      will be unloaded at the end of the whole Game (when closing orxonox)
     61 */
     62  typedef enum ResourcePriority
    6063{
    6164  RP_NO        =   0,
    6265  RP_LEVEL     =   1,
    6366  RP_CAMPAIGN  =   2,
    64   RP_GAME      =   4
     67  RP_GAME      =   3
    6568};
     69
    6670
    6771//! A Struct that keeps track about a resource its name its Type, and so on
Note: See TracChangeset for help on using the changeset viewer.