Enums.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <ionCore.h>
5 
6 
7 namespace ion
8 {
9  namespace Graphics
10  {
11 
14  enum class EValueType
15  {
16  Error = 0,
17  Float = 1,
18  Float2 = 2,
19  Float3 = 3,
20  Float4 = 4,
21  Matrix4x4 = 5,
22  Double = 6,
23  SignedInt8 = 7,
24  SignedInt16 = 8,
25  SignedInt32 = 9,
26  UnsignedInt8 = 10,
27  UnsignedInt16 = 11,
28  UnsignedInt32 = 12,
29  };
30 
33  enum class EScalarType
34  {
35  Error = 0,
36  Float = 1,
37  Double = 2,
38  SignedInt8 = 3,
39  SignedInt16 = 4,
40  SignedInt32 = 5,
41  UnsignedInt8 = 6,
42  UnsignedInt16 = 7,
43  UnsignedInt32 = 8,
44  };
45 
49  {
50  Float = 0,
51  Int = 1,
53  Double = 3,
54  };
55 
58  size_t GetValueTypeSize(EValueType const ValueType);
59 
62  string GetValueTypeString(EValueType const ValueType);
63 
66  size_t GetAttributeTypeSize(EAttributeType const AttributeType);
67 
70  string GetAttributeTypeString(EAttributeType const AttributeType);
71 
72  }
73 }
Definition: Enums.h:52
string GetAttributeTypeString(EAttributeType const AttributeType)
Gets the string equivalent of the given enum.
Definition: Enums.cpp:93
size_t GetValueTypeSize(EValueType const ValueType)
Gets the sizeof() for a given type.
Definition: Enums.cpp:10
EValueType
Standard type enum used through module.
Definition: Enums.h:14
size_t GetAttributeTypeSize(EAttributeType const AttributeType)
Gets the sizeof() for a given attribute type.
Definition: Enums.cpp:76
string GetValueTypeString(EValueType const ValueType)
Gets the string equivalent of the given enum.
Definition: Enums.cpp:43
Definition: CCatmullRomAdvancedSplineInterpolator.h:7
EAttributeType
Possible types for attributes i.e. vertex buffer contents.
Definition: Enums.h:48
EScalarType
Value types that exclude vector types.
Definition: Enums.h:33
Definition: Enums.h:53