GRIM: Add VAO-rendering to irisAround.

This commit is contained in:
Einar Johan T. Sømåen 2011-07-28 02:13:02 +02:00
parent e529a0b4c5
commit 6c5a960298

View File

@ -1304,12 +1304,18 @@ void GfxOpenGL::irisAroundRegion(int x, int y)
0.0f, y,
x, y
};
#ifndef USE_VERTEX_ARRAYS
glBegin(GL_TRIANGLE_STRIP);
for (int i = 0 ;i < 13; i++) {
glVertex2fv(points+2*i);
}
glEnd();
#else
glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(2, GL_FLOAT, 0, points);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 14);
glDisableClientState(GL_VERTEX_ARRAY);
#endif
glColor3f(1.0f,1.0f,1.0f);
glEnable(GL_DEPTH_TEST);