Lines Matching defs:vertices
61 static struct vertex vertices[MESH_SZ * MESH_SZ];
159 vertices[i].position[0] = ((float)x)/MESH_SZ * 2.0 - 1.0;
160 vertices[i].position[1] = ((float)y)/MESH_SZ * 2.0 - 1.0;
161 vertices[i].position[2] = 0;
162 vertices[i].position[3] = 1.0;
164 vertices[i].color[0] = .5;
165 vertices[i].color[1] = (float)x / (float)MESH_SZ;
166 vertices[i].color[2] = (float)y / (float)MESH_SZ;
177 sizeof(vertices),
178 vertices);
229 util_draw_arrays(ctx, PIPE_PRIM_POINTS, 0, ARRAY_SIZE(vertices));