molecular
Classes | Public Member Functions | List of all members
molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location > Class Template Reference

Loads assets when they are needed, and unloads them when they are not needed anymore. More...

#include <AssetManager.h>

Inheritance diagram for molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >:
molecular::util::NonCopyable

Classes

class  Asset
 
class  Loader
 Interface to an asset loader. More...
 

Public Member Functions

 AssetManager (Loader &loader)
 
virtual ~AssetManager ()
 
void Update (int framecounter)
 
AssetGetAsset (const Location &location)
 Get Asset object for given location. More...
 

Detailed Description

template<class T, int lodLevels, bool mipmapStyle, class Location = std::string>
class molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >

Loads assets when they are needed, and unloads them when they are not needed anymore.

Constructor & Destructor Documentation

template<class T, int lodLevels, bool mipmapStyle, class Location = std::string>
molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::AssetManager ( Loader loader)
inline
template<class T , int lodLevels, bool mipmapStyle, class Location >
molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::~AssetManager ( )
virtual

Member Function Documentation

template<class T , int lodLevels, bool mipmapStyle, class Location>
AssetManager< T, lodLevels, mipmapStyle, Location >::Asset * molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::GetAsset ( const Location &  location)

Get Asset object for given location.

Loading is not initiated. Use Asset::Use for that.

template<class T , int lodLevels, bool mipmapStyle, class Location >
void molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Update ( int  framecounter)

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