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/graphics/importer/resource_texture.h

    r9800 r9823  
    1616public:
    1717  ResourceTexture(const std::string& imageName, GLenum target = GL_TEXTURE_2D);
    18 
     18  static ResourceTexture createFromString(const std::string& loadString);
    1919
    2020private:
     
    2424    TextureResourcePointer(const std::string& loadString, const Resources::KeepLevel& keepLevel, const TextureData::Pointer& data);
    2525    inline const TextureData::Pointer& ptr() const { return pointer; }
    26   private:
     26private:
    2727    TextureData::Pointer pointer;
    2828  };
    2929
    3030private:
    31   static Resources::Type type;
     31  static Resources::tType<ResourceTexture> type;
    3232};
    3333
Note: See TracChangeset for help on using the changeset viewer.