Struct Resource

Struct Documentation

struct Resource

Representation of any type of resource within an asset pack.

Public Types

enum class Type : uint8_t

Enumeration of all resource types.

Values:

enumerator Blob
enumerator Shader
enumerator Material
enumerator Tex2D
enumerator Cubemap
enumerator Audio
enumerator Font
enumerator Model
enumerator Mesh

This type is used only for resource address validation mode selection; using it with other parts of this library will error!

enumerator World

This type is used only for resource address validation mode selection; using it with other parts of this library will error!

Public Members

std::string id

Asset ID or resource path (not valid address)

std::vector<unsigned char> bytes

Asset data encoded as bytes; use Decode* functions to parse.

Type type

Resource type.