#include <ResourceManager.h>
Classes | |
| struct | ResourceEntryInfo |
Public Member Functions | |
| ResourceManager (void) | |
| ~ResourceManager (void) | |
| bool | create_resources (const cl7::string_type &directory, bool dynamic=false) |
| bool | create_resources (const cl7::string_type &prefix, const cl7::string_type &directory, bool dynamic=false) |
| xl7::direct3d::textures::Texture * | create_texture (const cl7::string_type &identifier, const cl7::string_type &path, bool dynamic=true) |
| xl7::direct3d::textures::Texture * | create_texture (const cl7::string_type &identifier, const cl7::string_type &directory, const cl7::string_type &file, bool dynamic=true) |
| xl7::direct3d::textures::Texture * | find_texture (const cl7::string_type &identifier) const |
| void | release_all_resources () |
| void | release_dynamic_resources () |
| gl7::resources::ResourceManager::ResourceManager | ( | void | ) |
Default constructor.
Reimplemented in cyber::world::ResourceManager.
| gl7::resources::ResourceManager::~ResourceManager | ( | void | ) |
Destructor.
Reimplemented in cyber::world::ResourceManager.
| bool gl7::resources::ResourceManager::create_resources | ( | const cl7::string_type & | directory, | |
| bool | dynamic = false | |||
| ) |
Creates (typically non-dynamic) resources from files within the given directory. The identifiers are generated from the respective filenames (without any directory structure).
| bool gl7::resources::ResourceManager::create_resources | ( | const cl7::string_type & | prefix, | |
| const cl7::string_type & | directory, | |||
| bool | dynamic = false | |||
| ) |
Creates (typically non-dynamic) resources from files within the given directory. The identifiers are generated from the respective filenames (without any directory structure) and the given prefix.
| xl7::direct3d::textures::Texture * gl7::resources::ResourceManager::create_texture | ( | const cl7::string_type & | identifier, | |
| const cl7::string_type & | directory, | |||
| const cl7::string_type & | file, | |||
| bool | dynamic = true | |||
| ) |
Creates a texture (as a typically dynamic resource) from the given file within the given directory.
| xl7::direct3d::textures::Texture * gl7::resources::ResourceManager::create_texture | ( | const cl7::string_type & | identifier, | |
| const cl7::string_type & | path, | |||
| bool | dynamic = true | |||
| ) |
Creates a texture (as a typically dynamic resource) from the file specified by the given (full) path.
| xl7::direct3d::textures::Texture * gl7::resources::ResourceManager::find_texture | ( | const cl7::string_type & | identifier | ) | const |
Searches for the texture with the given identifier.
| void gl7::resources::ResourceManager::release_all_resources | ( | ) |
Releases all resources.
| void gl7::resources::ResourceManager::release_dynamic_resources | ( | ) |
Releases all "dynamic" resources.
1.7.1