Classes | Public Member Functions

gl7::resources::ResourceManager Class Reference

#include <ResourceManager.h>

Inheritance diagram for gl7::resources::ResourceManager:
cyber::world::ResourceManager

List of all members.

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::Texturecreate_texture (const cl7::string_type &identifier, const cl7::string_type &path, bool dynamic=true)
xl7::direct3d::textures::Texturecreate_texture (const cl7::string_type &identifier, const cl7::string_type &directory, const cl7::string_type &file, bool dynamic=true)
xl7::direct3d::textures::Texturefind_texture (const cl7::string_type &identifier) const
void release_all_resources ()
void release_dynamic_resources ()

Constructor & Destructor Documentation

gl7::resources::ResourceManager::ResourceManager ( void   ) 

Default constructor.

Reimplemented in cyber::world::ResourceManager.

gl7::resources::ResourceManager::~ResourceManager ( void   ) 

Destructor.

Reimplemented in cyber::world::ResourceManager.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines