Assets.h
131 static AssetID Load(const std::string & fileType, const std::string & file, bool nameOnly=true);
141 static AssetID LoadFromBuffer(const std::string & filetype, const std::string & name, const std::vector<uint8_t> & data);
185 static bool Write(AssetID id, const std::string & encoderExtension, const std::string & outputName);
233 static AssetID storePixels(std::vector<uint32_t*> &, std::string ID, int w, int h, bool hidden);
308 void Init(); void InitAfter(); void RunBefore(); void RunAfter(); void DrawBefore(); void DrawAfter();
An AudioBlock.
Not an action Type.
An Image.
A Particle.
static std::string Name(AssetID type)
Returns the name associated with the Asset.
Definition: AssetID.h:37
static std::vector< std::string > SupportedWriteExtensions(Assets::Type type)
Returns a vector of strings containing the currently supported types that can be written to...
static AssetID LoadFromBuffer(const std::string &filetype, const std::string &name, const std::vector< uint8_t > &data)
Loads the specified asset from memory into, err, memory.
A FontAsset.
Assets are referred to by an AssetID. The AssetID uniquely refers to an Asset stored within memory...
Definition: AssetID.h:42
static bool Write(AssetID id, const std::string &encoderExtension, const std::string &outputName)
Attempts to dump the asset to a file.
A Sequence.
static AssetID New(Assets::Type type, const std::string &name="")
Generates a new instance of the specified Asset type and returns its ID.
A data buffer.
static AssetID Query(Assets::Type type, const std::string &name)
Returns the AssetID associated with the name and type.
Collection of meshes, animations, and/or materials.
static std::vector< std::string > SupportedLoadExtensions(Assets::Type type)
Returns a list of supported file types that Dynacoe can load.
static T & Get(AssetID id)
Returns the Asset reference associated with the given ID.
Definition: Assets.h:315
static AssetID Load(const std::string &fileType, const std::string &file, bool nameOnly=true)
Loads the specifed asset into memory.