Lines Matching refs:MESH_SZ
60 #define MESH_SZ 16
61 static struct vertex vertices[MESH_SZ * MESH_SZ];
156 for (x = 0; x < MESH_SZ; x++) {
157 for (y = 0; y < MESH_SZ; y++) {
158 int i = y * MESH_SZ + x;
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;
165 vertices[i].color[1] = (float)x / (float)MESH_SZ;
166 vertices[i].color[2] = (float)y / (float)MESH_SZ;