AssetGroup Class Reference

Represents a collection of assets (meshes, textures, etc). More...

Inheritance diagram for AssetGroup:

Inheritance graph
[legend]
Collaboration diagram for AssetGroup:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AssetGroup (const std::string &name, const std::string &dirName)
 Constructor.
 ~AssetGroup ()
 Deconstructor.
void init ()
 Initialises the AssetGroup.
void clear ()
 Clears the AssetGroup.
u32 getID () const
 Gets the ID of the AssetGroup.
const std::string & getName () const
 Gets the name of the AssetGroup.
const std::string & getBaseDir () const
 Gets the base directory of the AssetGroup.
AssetProcessorgetAssetProcessor (const std::string &baseName)
 Gets the AssetProcessor with the given base name.
bool reloadAsset (const std::string &name)
 Reloads the asset with the given name.
void reloadAssets ()
 Reloads all assets in this asset group.
bool removeAsset (const std::string &name)
 Removes the asset with the given name.
void removeAssets ()
 Removes all assets.


Detailed Description

Represents a collection of assets (meshes, textures, etc).

Definition at line 32 of file AssetGroup.h.


Constructor & Destructor Documentation

AssetGroup::AssetGroup ( const std::string &  name,
const std::string &  dirName 
)

Constructor.

Parameters:
name Name of the asset group.
dirName Name of the base directory of the asset group.

Definition at line 26 of file AssetGroup.cpp.

AssetGroup::~AssetGroup (  ) 

Deconstructor.

Definition at line 37 of file AssetGroup.cpp.


Member Function Documentation

void AssetGroup::clear (  ) 

Clears the AssetGroup.

Definition at line 50 of file AssetGroup.cpp.

AssetProcessor * AssetGroup::getAssetProcessor ( const std::string &  baseName  ) 

Gets the AssetProcessor with the given base name.

Parameters:
baseName Basename of the AssetProcessor.
Returns:
Pointer to the AssetProcessor if found, else NULL.

Definition at line 74 of file AssetGroup.cpp.

const std::string & AssetGroup::getBaseDir (  )  const

Gets the base directory of the AssetGroup.

Definition at line 68 of file AssetGroup.cpp.

u32 AssetGroup::getID (  )  const

Gets the ID of the AssetGroup.

Definition at line 56 of file AssetGroup.cpp.

const std::string & AssetGroup::getName (  )  const

Gets the name of the AssetGroup.

Definition at line 62 of file AssetGroup.cpp.

void AssetGroup::init (  ) 

Initialises the AssetGroup.

Definition at line 43 of file AssetGroup.cpp.

bool AssetGroup::reloadAsset ( const std::string &  name  ) 

Reloads the asset with the given name.

Parameters:
name Directory and name (dir/file.*) of the asset.

Definition at line 101 of file AssetGroup.cpp.

void AssetGroup::reloadAssets (  ) 

Reloads all assets in this asset group.

Definition at line 141 of file AssetGroup.cpp.

bool AssetGroup::removeAsset ( const std::string &  name  ) 

Removes the asset with the given name.

Parameters:
name Directory and name (dir/file.*) of the asset.

Definition at line 150 of file AssetGroup.cpp.

void AssetGroup::removeAssets (  ) 

Removes all assets.

Definition at line 190 of file AssetGroup.cpp.


The documentation for this class was generated from the following files:

Generated on Fri Aug 21 23:55:11 2009 for Sirrf - Simple Irrlicht Framework by  doxygen 1.5.8