Home | History | Annotate | Download | only in functional

Lines Matching defs:gl

228 	const glw::Functions&	gl				= m_context.getRenderContext().getFunctions();
229 const int posLoc = gl.getAttribLocation(m_program->getProgram(), "a_position");
243 gl.viewport(0, 0, viewportW, viewportH);
244 gl.useProgram(m_program->getProgram());
245 gl.enableVertexAttribArray(posLoc);
246 gl.vertexAttribPointer(posLoc, 2, GL_FLOAT, GL_FALSE, 0, &s_positions[0]);
247 gl.enable(GL_BLEND);
248 gl.blendFunc(GL_ONE, GL_ONE);
249 gl.blendEquation(GL_FUNC_ADD);
250 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to set up render state");
255 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
256 gl.uniform1i(m_iterCountLoc, numIters);
261 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
265 gl.clear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT);
268 gl.drawElements(GL_TRIANGLES, DE_LENGTH_OF_ARRAY(indices), GL_UNSIGNED_BYTE, &indices[0]);
273 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
276 gl.readPixels(0, 0, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, &tmp);