Searched refs:MESH_SZ (Results 1 - 2 of 2) sorted by relevance

/xsrc/external/mit/MesaLib.old/dist/src/gallium/tests/graw/
H A Dvs-test.c60 #define MESH_SZ 16 macro
61 static struct vertex vertices[MESH_SZ * MESH_SZ];
151 for (x = 0; x < MESH_SZ; x++) {
152 for (y = 0; y < MESH_SZ; y++) {
153 int i = y * MESH_SZ + x;
154 vertices[i].position[0] = ((float)x)/MESH_SZ * 2.0 - 1.0;
155 vertices[i].position[1] = ((float)y)/MESH_SZ * 2.0 - 1.0;
160 vertices[i].color[1] = (float)x / (float)MESH_SZ;
161 vertices[i].color[2] = (float)y / (float)MESH_SZ;
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/tests/graw/
H A Dvs-test.c60 #define MESH_SZ 16 macro
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;
[all...]

Completed in 4 milliseconds