Lines Matching defs:m_gl
144 const glw::Functions& m_gl;
174 : m_gl (gl)
179 m_colorLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_color");
180 m_coordLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_pos");
181 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to get attribute locations");
223 m_gl.useProgram(m_glProgram.getProgram());
224 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed");
226 m_gl.enableVertexAttribArray(m_coordLoc);
227 m_gl.enableVertexAttribArray(m_colorLoc);
228 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to enable attributes");
230 m_gl.vertexAttribPointer(m_coordLoc, 2, GL_FLOAT, GL_FALSE, 0, coords);
231 m_gl.vertexAttribPointer(m_colorLoc, 4, GL_UNSIGNED_BYTE, GL_TRUE, 0, colors);
232 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to set attribute pointers");
234 m_gl.drawArrays(GL_TRIANGLES, 0, DE_LENGTH_OF_ARRAY(coords)/2);
235 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDrawArrays(), failed");
237 m_gl.disableVertexAttribArray(m_coordLoc);
238 m_gl.disableVertexAttribArray(m_colorLoc);
239 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to disable attributes");
241 m_gl.useProgram(0);
242 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed");
246 m_gl.enable(GL_SCISSOR_TEST);
247 m_gl.scissor(coloredRect.bottomLeft.x(), coloredRect.bottomLeft.y(),
249 m_gl.clearColor(coloredRect.color.x()/255.0f, coloredRect.color.y()/255.0f, coloredRect.color.z()/255.0f, 1.0f);
250 m_gl.clear(GL_COLOR_BUFFER_BIT);
251 m_gl.disable(GL_SCISSOR_TEST);
289 glw::Functions m_gl;
335 m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0));
336 m_gles2Renderer = new GLES2Renderer(m_gl);
419 clearColorScreen(m_gl, clearColor);
495 clearColorScreen(m_gl, clearColor);
583 clearColorScreen(m_gl, clearColor);
605 clearColorScreen(m_gl, clearColor);