93 }
else if (name ==
"texture") {
95 }
else if (name ==
"shader") {
97 }
else if (name ==
"hjson") {
99 }
else if (name ==
"text") {
101 }
else if (name ==
"model") {
103 }
else if (name ==
"font") {
105 }
else if (name ==
"cubemap") {
107 }
else if (name ==
"directory") {
109 }
else if (name ==
"audio") {
111 }
else if (name ==
"shader_def") {
113 }
else if (name ==
"binary") {
The base class for assets.
Definition: asset.h:157
virtual AssetType GetAssetType()=0
std::string path
Definition: asset.h:162
int accessed
Definition: asset.h:163
std::string ToString(AssetType type)
Converts asset type to asset type names for display
Definition: asset.h:124
AssetType
Definition: asset.h:31
@ SHADER_DEFINITION
shader_def as the type parameter in resource.hjson
@ TEXT
text as the type parameter in resource.hjson
@ HJSON
hjson as the type parameter in resource.hjson
@ AUDIO
audio as the type parameter in resource.hjson
AssetType FromString(const std::string &name)
Converts asset type names to asset types
Definition: asset.h:90
@ FONT
Font prototype.
Definition: assetprototype.h:28
@ NONE
Definition: assetprototype.h:25
@ SHADER
shader prototype
Definition: assetprototype.h:27
@ TEXTURE
texture prototype
Definition: assetprototype.h:26
@ CUBEMAP
cubemap prototype
Definition: assetprototype.h:29
@ MODEL
Model prototype.
Definition: assetprototype.h:30
When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to ...
Definition: clientctx.h:21