17 VertexBindingElement(GLuint attribIndex, GLint numOfFields, GLenum dataType, GLboolean normalized, GLsizei stride, GLint offset)
18 : m_attribIndex(attribIndex)
19 , m_numOfFields(numOfFields)
20 , m_dataType(dataType)
23 , m_normalized(normalized)
29 Eegeo_GL(glEnableVertexAttribArray(m_attribIndex));
30 Eegeo_GL(glVertexAttribPointer(m_attribIndex,
35 static_cast<char*>(
nullptr) + m_offset
41 Eegeo_GL(glDisableVertexAttribArray(m_attribIndex));
48 (m_attribIndex == other.m_attribIndex)
49 && (m_numOfFields == other.m_numOfFields)
50 && (m_dataType == other.m_dataType)
51 && (m_stride == other.m_stride)
52 && (m_offset == other.m_offset)
53 && (m_normalized == other.m_normalized)
61 (m_attribIndex != other.m_attribIndex)
62 || (m_numOfFields != other.m_numOfFields)
63 || (m_dataType != other.m_dataType)
64 || (m_stride != other.m_stride)
65 || (m_offset != other.m_offset)
66 || (m_normalized != other.m_normalized)
72 if(m_attribIndex == other.m_attribIndex)
74 if(m_numOfFields == other.m_numOfFields)
76 if(m_dataType == other.m_dataType)
78 if(m_stride == other.m_stride)
80 if (m_offset == other.m_offset)
82 return m_normalized < other.m_normalized;
86 return m_offset < other.m_offset;
91 return m_stride < other.m_stride;
96 return m_dataType < other.m_dataType;
101 return m_numOfFields < other.m_numOfFields;
106 return m_attribIndex < other.m_attribIndex;
111 GLuint m_attribIndex;
116 GLboolean m_normalized;