Home | History | Annotate | Download | only in functional

Lines Matching defs:gl

89 	const Functions& gl = m_renderCtx.getFunctions();
91 m_scaleLoc = gl.getUniformLocation(getProgram(), "scale");
92 m_posLoc = gl.getAttribLocation(getProgram(), "pos");
128 const Functions& gl = m_renderCtx.getFunctions();
133 gl.clearColor(0, 0, 0, 1);
134 gl.clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
136 gl.bindVertexArray(vao);
137 gl.enableVertexAttribArray(m_posLoc);
138 GLU_CHECK_CALL_ERROR(gl.useProgram(getProgram()),
139 gl.getError());
141 gl.uniform1f(m_scaleLoc, scale);
144 gl.beginTransformFeedback(GL_TRIANGLES);
145 GLU_CHECK_CALL_ERROR(gl.drawArrays(GL_TRIANGLES, 0, 3), gl.getError());
147 gl.endTransformFeedback();
152 gl.bindVertexArray(0);
157 const Functions& gl = m_renderCtx.getFunctions();
159 gl.bindBuffer(GL_ARRAY_BUFFER, buffer);
160 gl.bindVertexArray(vao);
162 gl.vertexAttribPointer(m_posLoc, NUM_COMPONENTS, GL_FLOAT, false, 0, DE_NULL),
163 gl.getError());
164 gl.bindVertexArray(0);
165 gl.bindBuffer(GL_ARRAY_BUFFER, 0);
166 GLU_CHECK_ERROR(gl.getError());
232 void initBuffer (const Functions& gl, GLuint seed, GLenum usage, GLuint buffer)
234 gl.bindBuffer(GL_ARRAY_BUFFER, buffer);
236 gl.bufferData(GL_ARRAY_BUFFER, sizeof(s_varrData), s_varrData, usage);
251 gl.bufferData(GL_ARRAY_BUFFER, sizeof(data), data, usage);
253 gl.bindBuffer(GL_ARRAY_BUFFER, 0);
254 GLU_CHECK_ERROR(gl.getError());
259 initBuffer(gl(), seed, GL_STATIC_DRAW, buffer);
281 gl().bindVertexArray(varr);
282 gl().getVertexAttribiv(0, GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, &name);
283 gl().bindVertexArray(0);
284 GLU_CHECK_ERROR(gl().getError());
321 initBuffer(gl(), seed, GL_DYNAMIC_READ, buffer);
331 GLU_CHECK_ERROR(gl().getError());
340 GLU_CHECK_ERROR(gl().getError());
346 gl().bindTransformFeedback(GL_TRANSFORM_FEEDBACK, tf);
347 gl().getIntegeri_v(GL_TRANSFORM_FEEDBACK_BUFFER_BINDING, 0, &ret);
348 gl().bindTransformFeedback(GL_TRANSFORM_FEEDBACK, 0);
349 GLU_CHECK_ERROR(gl().getError());
375 GLU_CHECK_ERROR(gl().getError());
383 initBuffer(gl(), seed, GL_STATIC_DRAW, *posBuf);
392 GLU_CHECK_ERROR(gl().getError());