molecular
Public Member Functions | Static Protected Attributes | List of all members
molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Loader Class Referenceabstract

Interface to an asset loader. More...

#include <AssetManager.h>

Inheritance diagram for molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Loader:
molecular::gfx::MeshLoader< molecular::gfx::RenderManagerT > molecular::gfx::MeshLoader< TRenderManager > molecular::gfx::TextureLoader< TRenderManager > molecular::gfx::TextureLoader< molecular::gfx::RenderManagerT >

Public Member Functions

virtual T Create ()=0
 
virtual void Destroy (T &asset)=0
 
virtual void StartLoad (Asset &asset, unsigned int minLevel, unsigned int maxLevel)=0
 
virtual void Unload (T &asset, unsigned int minLevel, unsigned int maxLevel)=0
 

Static Protected Attributes

static const unsigned int kLodLevels = lodLevels
 

Detailed Description

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

Interface to an asset loader.

This has to be implemented for each new AssetManager class.

Member Function Documentation

template<class T, int lodLevels, bool mipmapStyle, class Location = std::string>
virtual T molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Loader::Create ( )
pure virtual
template<class T, int lodLevels, bool mipmapStyle, class Location = std::string>
virtual void molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Loader::Destroy ( T &  asset)
pure virtual
template<class T, int lodLevels, bool mipmapStyle, class Location = std::string>
virtual void molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Loader::StartLoad ( Asset asset,
unsigned int  minLevel,
unsigned int  maxLevel 
)
pure virtual
template<class T, int lodLevels, bool mipmapStyle, class Location = std::string>
virtual void molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Loader::Unload ( T &  asset,
unsigned int  minLevel,
unsigned int  maxLevel 
)
pure virtual

Member Data Documentation

template<class T, int lodLevels, bool mipmapStyle, class Location = std::string>
const unsigned int molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Loader::kLodLevels = lodLevels
staticprotected

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