SpiecsEngine
 
Loading...
Searching...
No Matches

◆ SplitGltfAttribute()

void Spices::GltfHelper::SplitGltfAttribute ( std::string attribute,
std::string * semanticName,
uint32_t * semanticIndex )
static

Split digital number in attribute.

Parameters
[in]attribute.
[out]semanticNameout attribute.
[out]semanticIndexsplit location.

Definition at line 141 of file GltfHelper.cpp.

142 {
144
145 *semanticIndex = 0;
146
147 if (isdigit(attribute.back()))
148 {
149 *semanticIndex = attribute.back() - '0';
150
151 attribute.pop_back();
152 if (attribute.back() == '_')
153 {
154 attribute.pop_back();
155 }
156 }
157
158 *semanticName = attribute;
159 }
#define SPICES_PROFILE_ZONE