Lines Matching refs:m_gl

96 	glw::Functions				m_gl;
114 const glw::Functions& m_gl;
146 : m_gl (gl)
151 m_colorLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_color");
152 m_coordLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_pos");
153 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to get attribute locations");
186 m_gl.useProgram(m_glProgram.getProgram());
187 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed");
189 m_gl.enableVertexAttribArray(m_coordLoc);
190 m_gl.enableVertexAttribArray(m_colorLoc);
191 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to enable attributes");
193 m_gl.vertexAttribPointer(m_coordLoc, 4, GL_FLOAT, GL_FALSE, 0, coords);
194 m_gl.vertexAttribPointer(m_colorLoc, 4, GL_UNSIGNED_BYTE, GL_TRUE, 0, colors);
195 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to set attribute pointers");
197 m_gl.drawArrays(GL_TRIANGLES, 0, 6);
198 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDrawArrays() failed");
200 m_gl.disableVertexAttribArray(m_coordLoc);
201 m_gl.disableVertexAttribArray(m_colorLoc);
202 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to disable attributes");
204 m_gl.useProgram(0);
205 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed");
221 m_gl.enable(GL_SCISSOR_TEST);
222 m_gl.scissor(x1i, y1i, x2i-x1i, y2i-y1i);
223 m_gl.clearColor(0.5f, 0.5f, 0.5f, 1.0f);
224 m_gl.clear(GL_COLOR_BUFFER_BIT);
225 m_gl.disable(GL_SCISSOR_TEST);
366 m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0));
368 m_gles2Program = new GLES2Program(m_gl);
453 clearColorScreen(m_gl, clearRed, clearGreen, clearBlue, clearAlpha);
471 readPixels(m_gl, &preSwapFramebuffer);
482 readPixels(m_gl, &postSwapFramebuffer);