SpiecsEngine
 
Loading...
Searching...
No Matches

◆ decode()

static bool YAML::convert< Spices::TextureParam >::decode ( const Node & node,
Spices::TextureParam & param )
inlinestatic

Definition at line 108 of file YamlUtils.h.

109 {
110 if (!node.IsSequence() || node.size() != 2)
111 {
112 return false;
113 }
114
115 param.textureType = node[0].as<std::string>();
116 param.texturePath = node[1].as<std::string>();
117
118 return true;
119 }
std::string texturePath
Definition Material.h:29
std::string textureType
Definition Material.h:28