File indexing completed on 2025-01-18 10:04:42
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _RWGltf_GltfArrayType_HeaderFile
0016 #define _RWGltf_GltfArrayType_HeaderFile
0017
0018 #include <Standard_CString.hxx>
0019
0020
0021 enum RWGltf_GltfArrayType
0022 {
0023 RWGltf_GltfArrayType_UNKNOWN,
0024 RWGltf_GltfArrayType_Indices,
0025 RWGltf_GltfArrayType_Position,
0026 RWGltf_GltfArrayType_Normal,
0027 RWGltf_GltfArrayType_Color,
0028 RWGltf_GltfArrayType_TCoord0,
0029 RWGltf_GltfArrayType_TCoord1,
0030 RWGltf_GltfArrayType_Joint,
0031 RWGltf_GltfArrayType_Weight,
0032 };
0033
0034
0035 inline RWGltf_GltfArrayType RWGltf_GltfParseAttribType (const char* theType)
0036 {
0037 if (IsEqual ("POSITION", theType))
0038 {
0039 return RWGltf_GltfArrayType_Position;
0040 }
0041 else if (IsEqual ("NORMAL", theType))
0042 {
0043 return RWGltf_GltfArrayType_Normal;
0044 }
0045 else if (IsEqual ("COLOR", theType))
0046 {
0047 return RWGltf_GltfArrayType_Color;
0048 }
0049 else if (IsEqual ("TEXCOORD_0", theType))
0050 {
0051 return RWGltf_GltfArrayType_TCoord0;
0052 }
0053 else if (IsEqual ("TEXCOORD_1", theType))
0054 {
0055 return RWGltf_GltfArrayType_TCoord1;
0056 }
0057 else if (IsEqual ("JOINT", theType))
0058 {
0059 return RWGltf_GltfArrayType_Joint;
0060 }
0061 else if (IsEqual ("WEIGHT", theType))
0062 {
0063 return RWGltf_GltfArrayType_Weight;
0064 }
0065 return RWGltf_GltfArrayType_UNKNOWN;
0066 }
0067
0068 #endif