Class Asset

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class Asset : public Cacao::Resource

Base class for asset types.

Subclassed by Cacao::Cubemap, Cacao::Mesh, Cacao::Shader, Cacao::Sound, Cacao::Tex2D

Public Functions

virtual void Bake() = 0

Convert the loaded data into a form suitable for use.

Throws:

BadBakeStateException – If the asset is already baked

virtual void Discard() = 0

Destroy the baked representation of the asset.

Throws:

BadBakeStateException – If the asset is not baked

inline virtual bool IsBaked() const

Check if the asset is baked.

Returns:

Whether the asset is baked

inline virtual ~Asset()

Protected Functions

inline Asset(const std::string &addr)

Protected Attributes

bool baked