• Home
  • Raw
  • Download

Lines Matching refs:m_gl

126 	glw::Functions		m_gl;  member in deqp::egl::__anon9858808f0111::TestContext
512 m_testCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0), DE_LENGTH_OF_ARRAY(reqExts), reqExts); in TestContext()
519 vector<string> glExts = de::splitString((const char*)m_gl.getString(GL_EXTENSIONS), ' '); in TestContext()
524 TCU_CHECK(m_gl.eglImageTargetTexture2DOES); in TestContext()
528 m_coordBuffer = createCoordBuffer(m_gl, m_config); in TestContext()
535 m_indexBuffer = createIndexBuffer(m_gl, m_config); in TestContext()
544 m_texture = createTexture(m_gl, m_config); in TestContext()
550 m_texture = createTexture(m_gl, m_config); in TestContext()
579 m_program = createProgram(m_gl, m_config); in TestContext()
583 m_coordLoc = m_gl.getAttribLocation(m_program, "a_coord"); in TestContext()
586 m_textureLoc = m_gl.getUniformLocation(m_program, "u_sampler"); in TestContext()
593 GLuint sourceTexture = createTexture(m_gl, m_config); in createEGLImage()
607 m_gl.deleteTextures(1, &sourceTexture); in createEGLImage()
608 GLU_EXPECT_NO_ERROR(m_gl.getError(), "eglCreateImageKHR()"); in createEGLImage()
614 m_gl.deleteTextures(1, &sourceTexture); in createEGLImage()
625 m_gl.genTextures(1, &texture); in createTextureFromImage()
626 m_gl.bindTexture(GL_TEXTURE_2D, texture); in createTextureFromImage()
627 m_gl.eglImageTargetTexture2DOES(GL_TEXTURE_2D, image); in createTextureFromImage()
628 m_gl.bindTexture(GL_TEXTURE_2D, 0); in createTextureFromImage()
629 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Creating texture from image"); in createTextureFromImage()
635 m_gl.deleteTextures(1, &texture); in createTextureFromImage()
663 m_gl.clearColor(0.75f, 0.6f, 0.5f, 1.0f); in render()
664 m_gl.clear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); in render()
668 m_gl.useProgram(m_program); in render()
669 m_gl.enableVertexAttribArray(m_coordLoc); in render()
673 m_gl.bindBuffer(GL_ARRAY_BUFFER, m_coordBuffer); in render()
674 m_gl.vertexAttribPointer(m_coordLoc, 2, GL_FLOAT, GL_FALSE, 0, 0); in render()
675 m_gl.bindBuffer(GL_ARRAY_BUFFER, 0); in render()
678 m_gl.vertexAttribPointer(m_coordLoc, 2, GL_FLOAT, GL_FALSE, 0, &(m_coordData[0])); in render()
682 m_gl.bindTexture(GL_TEXTURE_2D, m_texture); in render()
683 m_gl.uniform1i(m_textureLoc, 0); in render()
690 m_gl.bindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_indexBuffer); in render()
691 m_gl.drawElements(GL_TRIANGLES, m_config.triangleCount, GL_UNSIGNED_SHORT, 0); in render()
694 m_gl.drawElements(GL_TRIANGLES, m_config.triangleCount, GL_UNSIGNED_SHORT, &(m_indexData[0])); in render()
697 m_gl.drawArrays(GL_TRIANGLES, 0, m_config.triangleCount); in render()
701 m_gl.bindTexture(GL_TEXTURE_2D, 0); in render()
703 m_gl.disableVertexAttribArray(m_coordLoc); in render()
705 m_gl.useProgram(0); in render()
712 m_gl.finish(); in render()
713 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glFinish()"); in render()