SpiecsEngine
 
Loading...
Searching...
No Matches

◆ GetFormatSize()

int Spices::GltfHelper::GetFormatSize ( int id)
static

Get Variable Type bytes.

Parameters
[in]idType identify.
Returns
Returns bytes.

Definition at line 111 of file GltfHelper.cpp.

112 {
114
115 switch (id)
116 {
117 case 5120: return 1; //(BYTE)
118 case 5121: return 1; //(UNSIGNED_BYTE)1
119 case 5122: return 2; //(SHORT)2
120 case 5123: return 2; //(UNSIGNED_SHORT)2
121 case 5124: return 4; //(SIGNED_INT)4
122 case 5125: return 4; //(UNSIGNED_INT)4
123 case 5126: return 4; //(FLOAT)
124 }
125
126 return -1;
127 }
#define SPICES_PROFILE_ZONE