Lines Matching refs:vertex
54 struct Vertex vertex[VERTEXNUM];
82 vertex[p].x = (GLfloat) (x - GRIDW / 2) / (GLfloat) (GRIDW / 2);
83 vertex[p].y = (GLfloat) (y - GRIDH / 2) / (GLfloat) (GRIDH / 2);
84 vertex[p].z = 0;
87 vertex[p].r = 0.0;
89 vertex[p].r = 1.0;
91 vertex[p].g = (GLfloat) y / (GLfloat) GRIDH;
92 vertex[p].b = 1.f - ((GLfloat) x / (GLfloat) GRIDW + (GLfloat) y / (GLfloat) GRIDH) / 2.f;
185 glVertexPointer(3, GL_FLOAT, sizeof(struct Vertex), vertex);
186 glColorPointer(3, GL_FLOAT, sizeof(struct Vertex), &vertex[0].r); // Pointer to the first color
196 // Modify the height of each vertex according to the pressure
209 vertex[pos].z = (float) (p[x][y] * (1.0 / 50.0));
451 // Compute height of each vertex