Home | History | Annotate | Download | only in bench

Lines Matching refs:GR_GL_CALL

203     GR_GL_CALL(gl, GenBuffers(1, &posVBO));
204 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, posVBO));
205 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(positions), positions, GR_GL_STATIC_DRAW));
206 GR_GL_CALL(gl, EnableVertexAttribArray(0));
207 GR_GL_CALL(gl, VertexAttribPointer(0, 2, GR_GL_FLOAT, GR_GL_FALSE, 2 * sizeof(GrGLfloat),
212 GR_GL_CALL(gl, GenBuffers(1, &instanceVBO));
213 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, instanceVBO));
214 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(colors), colors, GR_GL_STATIC_DRAW));
215 GR_GL_CALL(gl, EnableVertexAttribArray(1));
216 GR_GL_CALL(gl, VertexAttribPointer(1, 3, GR_GL_FLOAT, GR_GL_FALSE, 3 * sizeof(GrGLfloat),
218 GR_GL_CALL(gl, VertexAttribDivisor(1, 1));
245 GR_GL_CALL(gl, GenBuffers(1, &posVBO));
246 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, posVBO));
247 GR_GL_CALL(gl, EnableVertexAttribArray(0));
248 GR_GL_CALL(gl, VertexAttribPointer(0, 2, GR_GL_FLOAT, GR_GL_FALSE, 2 * sizeof(GrGLfloat),
250 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(positions), positions, GR_GL_STATIC_DRAW));
253 GR_GL_CALL(gl, GenBuffers(1, &colorVBO));
254 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, colorVBO));
255 GR_GL_CALL(gl, EnableVertexAttribArray(1));
256 GR_GL_CALL(gl, VertexAttribPointer(1, 3, GR_GL_FLOAT, GR_GL_FALSE, 3 * sizeof(GrGLfloat),
258 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(colors), colors, GR_GL_STATIC_DRAW));
293 GR_GL_CALL(gl, GenBuffers(1, &vbo));
294 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, vbo));
295 GR_GL_CALL(gl, EnableVertexAttribArray(0));
296 GR_GL_CALL(gl, EnableVertexAttribArray(1));
297 GR_GL_CALL(gl, VertexAttribPointer(0, 2, GR_GL_FLOAT, GR_GL_FALSE, sizeof(Vertex),
299 GR_GL_CALL(gl, VertexAttribPointer(1, 3, GR_GL_FLOAT, GR_GL_FALSE, sizeof(Vertex),
301 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(vertices), vertices, GR_GL_STATIC_DRAW));
319 GR_GL_CALL(gl, GenVertexArrays(1, &fVAO));
320 GR_GL_CALL(gl, BindVertexArray(fVAO));
335 GR_GL_CALL(gl, ClearColor(0.03f, 0.03f, 0.03f, 1.0f));
336 GR_GL_CALL(gl, Clear(GR_GL_COLOR_BUFFER_BIT));
339 GR_GL_CALL(gl, UseProgram(fProgram));
340 GR_GL_CALL(gl, BindVertexArray(fVAO));
353 GR_GL_CALL(gl, DrawArraysInstanced(GR_GL_TRIANGLES, 0, kVerticesPerTri, triangles));
359 GR_GL_CALL(gl, DrawArrays(GR_GL_TRIANGLES, 0, kVerticesPerTri * triangles));
373 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, 0));
374 GR_GL_CALL(gl, BindVertexArray(0));
375 GR_GL_CALL(gl, BindTexture(GR_GL_TEXTURE_2D, 0));
376 GR_GL_CALL(gl, BindFramebuffer(GR_GL_FRAMEBUFFER, 0));
377 GR_GL_CALL(gl, DeleteTextures(1, &fTexture));
378 GR_GL_CALL(gl, DeleteProgram(fProgram));
379 GR_GL_CALL(gl, DeleteBuffers(fBuffers.count(), fBuffers.begin()));
380 GR_GL_CALL(gl, DeleteVertexArrays(1, &fVAO));