v1.1.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
List of all members
Sifteo::ScopedAssetLoader Class Reference

An AssetLoader subclass which automatically calls init() and finish() in the constructor and destructor, respectively. More...

#include <sifteo/asset/loader.h>

Inherits Sifteo::AssetLoader.

Additional Inherited Members

- Public Member Functions inherited from Sifteo::AssetLoader
unsigned averageProgress (unsigned max) const
 Measures total progress on all cubes, as an integer. More...
 
float averageProgress () const
 Measures total progress on all cubes, as a floating point value. More...
 
_SYSCubeIDVector busyCubes () const
 Which cubes are still busy loading?
 
void cancel (_SYSCubeIDVector cubes=-1)
 End any in-progress asset loading operations without finishing them. More...
 
unsigned cubeProgress (_SYSCubeID cubeID, unsigned max) const
 Measures progress on a single cube, as an integer. More...
 
float cubeProgress (_SYSCubeID cubeID) const
 Measures progress on a single cube, as a floating point value. More...
 
void finish ()
 Ensure that the system is no longer using this AssetLoader object. More...
 
void init ()
 Initialize this object. More...
 
bool isComplete (_SYSCubeIDVector vec) const
 Is the asset install finished for all cubes in the specified vector? More...
 
bool isComplete (_SYSCubeID cubeID) const
 Is the asset install for "cubeID" finished? More...
 
bool isComplete () const
 Are all asset installations from this asset loading session complete?
 
 operator const _SYSAssetLoader & () const
 Implicit conversion to system object.
 
template<typename T >
void start (T &configuration, _SYSCubeIDVector cubes=-1)
 Start installing an AssetConfiguration. More...
 

Detailed Description

An AssetLoader subclass which automatically calls init() and finish() in the constructor and destructor, respectively.

The base AssetLoader class does not do this, so that it can be a POD type compatible with unions. But if you're creating an AssetLoader on the stack or in another object without using unions, this class may be easier to use.


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