Lines Matching refs:GLU_CHECK_CALL
196 GLU_CHECK_CALL(glGenVertexArrays(1, &m_vao)); in TextureRenderer()
198 GLU_CHECK_CALL(glGenBuffers(1, &m_coordBuffer)); in TextureRenderer()
199 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_coordBuffer)); in TextureRenderer()
200 GLU_CHECK_CALL(glBufferData(GL_ARRAY_BUFFER, sizeof(s_quadCoords), s_quadCoords, GL_STATIC_DRAW)); in TextureRenderer()
202 GLU_CHECK_CALL(glGenBuffers(1, &m_indexBuffer)); in TextureRenderer()
203 GLU_CHECK_CALL(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_indexBuffer)); in TextureRenderer()
204 …GLU_CHECK_CALL(glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(s_quadIndices), s_quadIndices, GL_STAT… in TextureRenderer()
225 GLU_CHECK_CALL(glUseProgram(m_program->getProgram())); in render()
232 GLU_CHECK_CALL(glBindVertexArray(m_vao)); in render()
234 GLU_CHECK_CALL(glEnableVertexAttribArray(coordLoc)); in render()
236 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_coordBuffer)); in render()
237 GLU_CHECK_CALL(glVertexAttribPointer(coordLoc, 2, GL_FLOAT, GL_FALSE, 0, NULL)); in render()
239 GLU_CHECK_CALL(glActiveTexture(GL_TEXTURE0)); in render()
240 GLU_CHECK_CALL(glBindTexture(GL_TEXTURE_2D, texture)); in render()
246 GLU_CHECK_CALL(glUniform1i(texLoc, 0)); in render()
248 GLU_CHECK_CALL(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_indexBuffer)); in render()
249 GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_BYTE, NULL)); in render()
251 GLU_CHECK_CALL(glDisableVertexAttribArray(coordLoc)); in render()
254 GLU_CHECK_CALL(glBindVertexArray(0)); in render()
358 GLU_CHECK_CALL(glGenVertexArrays(1, &m_vao)); in BufferRenderer()
360 GLU_CHECK_CALL(glGenBuffers(1, &m_coordBuffer)); in BufferRenderer()
361 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_coordBuffer)); in BufferRenderer()
362 GLU_CHECK_CALL(glBufferData(GL_ARRAY_BUFFER, sizeof(s_quadCoords), s_quadCoords, GL_STATIC_DRAW)); in BufferRenderer()
364 GLU_CHECK_CALL(glGenBuffers(1, &m_indexBuffer)); in BufferRenderer()
365 GLU_CHECK_CALL(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_indexBuffer)); in BufferRenderer()
366 …GLU_CHECK_CALL(glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(s_quadIndices), s_quadIndices, GL_STAT… in BufferRenderer()
386 GLU_CHECK_CALL(glUseProgram(m_program->getProgram())); in render()
395 GLU_CHECK_CALL(glBindVertexArray(m_vao)); in render()
397 GLU_CHECK_CALL(glEnableVertexAttribArray(bufferLoc)); in render()
398 GLU_CHECK_CALL(glEnableVertexAttribArray(coordLoc)); in render()
400 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, m_coordBuffer)); in render()
401 GLU_CHECK_CALL(glVertexAttribPointer(coordLoc, 2, GL_FLOAT, GL_FALSE, 0, NULL)); in render()
403 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, buffer)); in render()
404 GLU_CHECK_CALL(glVertexAttribPointer(bufferLoc, 4, GL_UNSIGNED_BYTE, GL_TRUE, 0, 0)); in render()
405 GLU_CHECK_CALL(glBindBuffer(GL_ARRAY_BUFFER, 0)); in render()
407 GLU_CHECK_CALL(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_indexBuffer)); in render()
408 GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_BYTE, NULL)); in render()
410 GLU_CHECK_CALL(glDisableVertexAttribArray(bufferLoc)); in render()
411 GLU_CHECK_CALL(glDisableVertexAttribArray(coordLoc)); in render()
414 GLU_CHECK_CALL(glBindVertexArray(0)); in render()
876 GLU_CHECK_CALL(glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT)); in iterate()
935 GLU_CHECK_CALL(glFinish()); in iterate()