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_GltfAccessorLayout_HeaderFile
0016 #define _RWGltf_GltfAccessorLayout_HeaderFile
0017
0018 #include <Standard_CString.hxx>
0019
0020
0021
0022 enum RWGltf_GltfAccessorLayout
0023 {
0024 RWGltf_GltfAccessorLayout_UNKNOWN,
0025 RWGltf_GltfAccessorLayout_Scalar,
0026 RWGltf_GltfAccessorLayout_Vec2,
0027 RWGltf_GltfAccessorLayout_Vec3,
0028 RWGltf_GltfAccessorLayout_Vec4,
0029 RWGltf_GltfAccessorLayout_Mat2,
0030 RWGltf_GltfAccessorLayout_Mat3,
0031 RWGltf_GltfAccessorLayout_Mat4,
0032 };
0033
0034
0035 inline RWGltf_GltfAccessorLayout RWGltf_GltfParseAccessorType (const char* theType)
0036 {
0037 if (IsEqual ("SCALAR", theType))
0038 {
0039 return RWGltf_GltfAccessorLayout_Scalar;
0040 }
0041 else if (IsEqual ("VEC2", theType))
0042 {
0043 return RWGltf_GltfAccessorLayout_Vec2;
0044 }
0045 else if (IsEqual ("VEC3", theType))
0046 {
0047 return RWGltf_GltfAccessorLayout_Vec3;
0048 }
0049 else if (IsEqual ("VEC4", theType))
0050 {
0051 return RWGltf_GltfAccessorLayout_Vec4;
0052 }
0053 else if (IsEqual ("MAT2", theType))
0054 {
0055 return RWGltf_GltfAccessorLayout_Mat2;
0056 }
0057 else if (IsEqual ("MAT3", theType))
0058 {
0059 return RWGltf_GltfAccessorLayout_Mat3;
0060 }
0061 else if (IsEqual ("MAT4", theType))
0062 {
0063 return RWGltf_GltfAccessorLayout_Mat4;
0064 }
0065 return RWGltf_GltfAccessorLayout_UNKNOWN;
0066 }
0067
0068 #endif