Home | History | Annotate | Download | only in bench

Lines Matching full:colors

35      * kUseOne_VboSetup      - one vertex buffer with colors and positions interleaved
36 * kUseTwo_VboSetup - two vertex buffers, one for colors, one for positions
38 * instance colors
191 // setup colors so we can detect we are actually drawing instances(the last triangle will be
193 GrGLfloat colors[kVerticesPerTri * kNumTri];
195 // set colors
198 colors[offset++] = color; colors[offset++] = 0.0f; colors[offset++] = 0.0f;
214 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(colors), colors, GR_GL_STATIC_DRAW));
227 GrGLfloat colors[kVerticesPerTri * kNumTri * 3];
235 // set colors
239 colors[offset++] = color; colors[offset++] = 0.0f; colors[offset++] = 0.0f;
258 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(colors), colors, GR_GL_STATIC_DRAW));
282 // set colors