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

#include <AssetManager.h>

Public Types

enum  State { kLoading, kLoaded, kNotLoaded, kFailed }
 Current loading state. More...
 

Public Member Functions

Use (unsigned int lodLevel=0)
 Initiate loading if necessary and return underlying object. More...
 
void SetState (unsigned int lodLevel, State state)
 
T & GetAsset ()
 Get the underlying object. More...
 
const Location & GetLocation ()
 

Friends

class AssetManager
 

Member Enumeration Documentation

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

Current loading state.

Enumerator
kLoading 
kLoaded 
kNotLoaded 
kFailed 

Member Function Documentation

template<class T, int lodLevels, bool mipmapStyle, class Location = std::string>
T& molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Asset::GetAsset ( )
inline

Get the underlying object.

Does not initiate loading. Used by Loader classes.

template<class T, int lodLevels, bool mipmapStyle, class Location = std::string>
const Location& molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Asset::GetLocation ( )
inline

Used by Loader classes.

template<class T, int lodLevels, bool mipmapStyle, class Location = std::string>
void molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Asset::SetState ( unsigned int  lodLevel,
State  state 
)
inline

Used by Loader classes.

template<class T , int lodLevels, bool mipmapStyle, class Location >
T molecular::gfx::AssetManager< T, lodLevels, mipmapStyle, Location >::Asset::Use ( unsigned int  lodLevel = 0)

Initiate loading if necessary and return underlying object.

Using specific texture LOD levels is not supported on GLES.

Friends And Related Function Documentation

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

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