24 GLIM_CHECK (Data.m_DataType == Type || Data.m_DataType ==
GLIM_ENUM::GLIM_NODATA,
"GLIM::glimAttribute1f: An attribute was used with different type than previously.");
26 Data.m_DataType = Type;
33 Data.m_CurrentValue[1].Float = a2;
41 GLIM_CHECK (Data.m_DataType == Type || Data.m_DataType ==
GLIM_ENUM::GLIM_NODATA,
"GLIM::glimAttribute2f: An attribute was used with different type than previously.");
43 Data.m_DataType = Type;
49 Data.m_CurrentValue[1].Float = a2;
50 Data.m_CurrentValue[2].Float = a3;
58 GLIM_CHECK (Data.m_DataType == Type || Data.m_DataType ==
GLIM_ENUM::GLIM_NODATA,
"GLIM::glimAttribute3f: An attribute was used with different type than previously.");
60 Data.m_DataType = Type;
66 Data.m_CurrentValue[1].Float = a2;
67 Data.m_CurrentValue[2].Float = a3;
68 Data.m_CurrentValue[3].Float = a4;
76 GLIM_CHECK (Data.m_DataType == Type || Data.m_DataType ==
GLIM_ENUM::GLIM_NODATA,
"GLIM::glimAttribute4f: An attribute was used with different type than previously.");
78 Data.m_DataType = Type;
92 GLIM_CHECK (Data.m_DataType == Type || Data.m_DataType ==
GLIM_ENUM::GLIM_NODATA,
"GLIM::glimAttribute1i: An attribute was used with different type than previously.");
94 Data.m_DataType = Type;
100 Data.m_CurrentValue[1].Int = a2;
108 GLIM_CHECK (Data.m_DataType == Type || Data.m_DataType ==
GLIM_ENUM::GLIM_NODATA,
"GLIM::glimAttribute2i: An attribute was used with different type than previously.");
110 Data.m_DataType = Type;
116 Data.m_CurrentValue[1].Int = a2;
117 Data.m_CurrentValue[2].Int = a3;
125 GLIM_CHECK (Data.m_DataType == Type || Data.m_DataType ==
GLIM_ENUM::GLIM_NODATA,
"GLIM::glimAttribute3i: An attribute was used with different type than previously.");
127 Data.m_DataType = Type;
133 Data.m_CurrentValue[1].Int = a2;
134 Data.m_CurrentValue[2].Int = a3;
135 Data.m_CurrentValue[3].Int = a4;
143 GLIM_CHECK (Data.m_DataType == Type || Data.m_DataType ==
GLIM_ENUM::GLIM_NODATA,
"GLIM::glimAttribute4i: An attribute was used with different type than previously.");
145 Data.m_DataType = Type;
152 Data.m_CurrentValue[0].Bytes[1] = a2;
153 Data.m_CurrentValue[0].Bytes[2] = a3;
154 Data.m_CurrentValue[0].Bytes[3] = a4;
162 GLIM_CHECK (Data.m_DataType == Type || Data.m_DataType ==
GLIM_ENUM::GLIM_NODATA,
"GLIM::glimAttribute4ub: An attribute was used with different type than previously.");
164 Data.m_DataType = Type;
GLIM_ATTRIBUTE Attribute4i(unsigned int attribLocation, int a1, int a2, int a3, int a4)
Specifies a new value for the attribute with the given name.
GLIM_ATTRIBUTE Attribute4ub(unsigned int attribLocation, unsigned char a1, unsigned char a2, unsigned char a3, unsigned char a4=255)
Specifies a new value for the attribute with the given name.
GLIM_ATTRIBUTE Attribute3i(unsigned int attribLocation, int a1, int a2, int a3)
Specifies a new value for the attribute with the given name.
GLIM_ATTRIBUTE Attribute1i(unsigned int attribLocation, int a1)
Specifies a new value for the attribute with the given location.
GLIM_ATTRIBUTE Attribute2i(unsigned int attribLocation, int a1, int a2)
Specifies a new value for the attribute with the given name.
GLIM_ATTRIBUTE Attribute1f(unsigned int attribLocation, float a1)
Specifies a new value for the attribute with the given name.
GLIM_ATTRIBUTE Attribute2f(unsigned int attribLocation, float a1, float a2)
Specifies a new value for the attribute with the given name.
GLIM_ATTRIBUTE Attribute3f(unsigned int attribLocation, float a1, float a2, float a3)
Specifies a new value for the attribute with the given name.
GLIM_ATTRIBUTE Attribute4f(unsigned int attribLocation, float a1, float a2, float a3, float a4)
Specifies a new value for the attribute with the given name.
void GLIM_CHECK(bool bCondition, const char *szErrorMsg) noexcept
Assert Macro used internally.
GLIM_ENUM
The enum holding all important GLIM configuration values.
Glim4ByteData m_CurrentValue[4]
Divide::hashMap< unsigned int, GlimArrayData > m_Attributes