SpiecsEngine
 
Loading...
Searching...
No Matches

◆ GetDimensions()

int Spices::GltfHelper::GetDimensions ( const std::string & str)
static

Get Variable Type dimensions.

Parameters
[in]strVariable Type string.
Returns
Returns dimensions.

Definition at line 129 of file GltfHelper.cpp.

130 {
132
133 if (str == "SCALAR") return 1;
134 else if (str == "VEC2") return 2;
135 else if (str == "VEC3") return 3;
136 else if (str == "VEC4") return 4;
137 else if (str == "MAT4") return 4 * 4;
138 else return -1;
139 }
#define SPICES_PROFILE_ZONE