Lines Matching refs:GLU_CHECK_CALL
229 GLU_CHECK_CALL(glGenBuffers(1, &buffer));
232 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, buffer));
233 GLU_CHECK_CALL(glBufferData(GL_ARRAY_BUFFER, m_spec.buffers[bufferNdx].size, data, GL_DYNAMIC_DRAW));
234 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, 0));
260 GLU_CHECK_CALL(glDeleteBuffers((GLsizei)m_buffers.size(), &(m_buffers[0])));
548 GLU_CHECK_CALL(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_buffers[state.elementArrayBuffer]));
552 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_buffers[state.attributes[attribNdx].bufferNdx]));
554 GLU_CHECK_CALL(glEnableVertexAttribArray(attribNdx));
556 GLU_CHECK_CALL(glDisableVertexAttribArray(attribNdx));
559 GLU_CHECK_CALL(glVertexAttribIPointer(attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].stride, (const GLvoid*)((GLintptr)state.attributes[attribNdx].offset)));
561 GLU_CHECK_CALL(glVertexAttribPointer(attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].normalized, state.attributes[attribNdx].stride, (const GLvoid*)((GLintptr)state.attributes[attribNdx].offset)));
563 GLU_CHECK_CALL(glVertexAttribDivisor(attribNdx, state.attributes[attribNdx].divisor));
569 GLU_CHECK_CALL(glClearColor(0.7f, 0.7f, 0.7f, 1.0f));
570 GLU_CHECK_CALL(glClear(GL_COLOR_BUFFER_BIT));
585 GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices));
587 GLU_CHECK_CALL(glDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices, m_spec.instances));
592 GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_spec.indexOffset)));
594 GLU_CHECK_CALL(glDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_spec.indexOffset), m_spec.instances));
600 GLU_CHECK_CALL(glDrawArrays(GL_TRIANGLES, 0, m_spec.count));
602 GLU_CHECK_CALL(glDrawArraysInstanced(GL_TRIANGLES, 0, m_spec.count, m_spec.instances));
610 GLU_CHECK_CALL(glGenVertexArrays(1, &vao));
611 GLU_CHECK_CALL(glBindVertexArray(vao));
613 GLU_CHECK_CALL(glBindVertexArray(0));
617 GLU_CHECK_CALL(glBindVertexArray(vao));
618 GLU_CHECK_CALL(glUseProgram(m_vaoProgram->getProgram()));
622 GLU_CHECK_CALL(glBindVertexArray(0));
624 GLU_CHECK_CALL(glUseProgram(m_stateProgram->getProgram()));
632 GLU_CHECK_CALL(glUseProgram(m_vaoProgram->getProgram()));
637 GLU_CHECK_CALL(glUseProgram(m_stateProgram->getProgram()));
749 GLU_CHECK_CALL(glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &attribCount));
813 GLU_CHECK_CALL(glGenBuffers(1, &buffer));
816 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, buffer));
817 GLU_CHECK_CALL(glBufferData(GL_ARRAY_BUFFER, m_spec.buffers[bufferNdx].size, data, GL_DYNAMIC_DRAW));
818 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, 0));
844 GLU_CHECK_CALL(glDeleteBuffers((GLsizei)m_buffers.size(), &(m_buffers[0])));
1133 GLU_CHECK_CALL(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_buffers[state.elementArrayBuffer]));
1137 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_buffers[state.attributes[attribNdx].bufferNdx]));
1139 GLU_CHECK_CALL(glEnableVertexAttribArray(attribNdx));
1141 GLU_CHECK_CALL(glDisableVertexAttribArray(attribNdx));
1144 GLU_CHECK_CALL(glVertexAttribIPointer(attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].stride, (const GLvoid*)((GLintptr)state.attributes[attribNdx].offset)));
1146 GLU_CHECK_CALL(glVertexAttribPointer(attribNdx, state.attributes[attribNdx].size, state.attributes[attribNdx].type, state.attributes[attribNdx].normalized, state.attributes[attribNdx].stride, (const GLvoid*)((GLintptr)state.attributes[attribNdx].offset)));
1148 GLU_CHECK_CALL(glVertexAttribDivisor(attribNdx, state.attributes[attribNdx].divisor));
1154 GLU_CHECK_CALL(glClearColor(0.7f, 0.7f, 0.7f, 1.0f));
1155 GLU_CHECK_CALL(glClear(GL_COLOR_BUFFER_BIT));
1162 GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices));
1164 GLU_CHECK_CALL(glDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices, m_spec.instances));
1169 GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_spec.indexOffset)));
1171 GLU_CHECK_CALL(glDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, (GLvoid*)((GLintptr)m_spec.indexOffset), m_spec.instances));
1177 GLU_CHECK_CALL(glDrawArrays(GL_TRIANGLES, 0, m_spec.count));
1179 GLU_CHECK_CALL(glDrawArraysInstanced(GL_TRIANGLES, 0, m_spec.count, m_spec.instances));
1187 GLU_CHECK_CALL(glGenVertexArrays(1, &vao));
1188 GLU_CHECK_CALL(glBindVertexArray(vao));
1190 GLU_CHECK_CALL(glBindVertexArray(0));
1194 GLU_CHECK_CALL(glBindVertexArray(vao));
1195 GLU_CHECK_CALL(glUseProgram(m_vaoProgram->getProgram()));
1199 GLU_CHECK_CALL(glBindVertexArray(0));
1201 GLU_CHECK_CALL(glUseProgram(m_stateProgram->getProgram()));
1209 GLU_CHECK_CALL(glUseProgram(m_vaoProgram->getProgram()));
1214 GLU_CHECK_CALL(glUseProgram(m_stateProgram->getProgram()));