Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 25, 2006, 11:28:28 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: now it should also be possible, to cache the resources, by suppling a LoadString.
This is vital to loading Resources, when you only know the TypeName and a LoadString, but not the c++-type and the LoadParameters as is the case when loading over the internet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/sound/resource_sound_buffer.h

    r9811 r9823  
    1818  public:
    1919    ResourceSoundBuffer(const std::string& soundName);
     20    static ResourceSoundBuffer createFromString(const std::string& loadString) { return ResourceSoundBuffer(loadString); };
    2021
    2122  private:
     
    3031
    3132  private:
    32     static Resources::Type type;
     33    static Resources::tType<ResourceSoundBuffer> type;
    3334  };
    3435}
Note: See TracChangeset for help on using the changeset viewer.