Lines Matching refs:m_gl
109 glw::Functions m_gl; member in deqp::egl::__anonc49e99c00111::PartialUpdateTest
202 const glw::Functions& m_gl; member in deqp::egl::__anonc49e99c00111::GLES2Renderer
232 : m_gl (gl) in GLES2Renderer()
237 m_colorLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_color"); in GLES2Renderer()
238 m_coordLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_pos"); in GLES2Renderer()
239 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to get attribute locations"); in GLES2Renderer()
281 m_gl.useProgram(m_glProgram.getProgram()); in render()
282 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed"); in render()
284 m_gl.enableVertexAttribArray(m_coordLoc); in render()
285 m_gl.enableVertexAttribArray(m_colorLoc); in render()
286 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to enable attributes"); in render()
288 m_gl.vertexAttribPointer(m_coordLoc, 2, GL_FLOAT, GL_FALSE, 0, coords); in render()
289 m_gl.vertexAttribPointer(m_colorLoc, 4, GL_UNSIGNED_BYTE, GL_TRUE, 0, colors); in render()
290 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to set attribute pointers"); in render()
292 m_gl.drawArrays(GL_TRIANGLES, 0, DE_LENGTH_OF_ARRAY(coords)/2); in render()
293 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDrawArrays(), failed"); in render()
295 m_gl.disableVertexAttribArray(m_coordLoc); in render()
296 m_gl.disableVertexAttribArray(m_colorLoc); in render()
297 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to disable attributes"); in render()
299 m_gl.useProgram(0); in render()
300 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed"); in render()
304 m_gl.enable(GL_SCISSOR_TEST); in render()
305 m_gl.scissor(coloredRect.bottomLeft.x(), coloredRect.bottomLeft.y(), in render()
307 …m_gl.clearColor(coloredRect.color.x()/255.0f, coloredRect.color.y()/255.0f, coloredRect.color.z()/… in render()
308 m_gl.clear(GL_COLOR_BUFFER_BIT); in render()
309 m_gl.disable(GL_SCISSOR_TEST); in render()
392 m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0)); in init()
396 m_gles2Renderer = new GLES2Renderer(m_gl); in init()
561 clearColorScreen(m_gl, clearColor); in iterate()
579 readPixels(m_gl, ¤tBuffer); in iterate()
709 clearColorScreen(m_gl, clearColor); in iterate()
719 clearColorScreen(m_gl, clearColor); in iterate()
723 readPixels(m_gl, ¤tBuffer); in iterate()
780 clearColorScreen(m_gl, clearColor); in iterate()
784 readPixels(m_gl, ¤tBuffer); in iterate()