dList := glGenLists(1);
glNewList(dList, GL_COMPILE);
glBegin(GL_QUADS);
PL is an array of 15 colors
Code:=4;
glColor4ubv(@PL
); //
glVertex3f(P.X, P.Y, height);
glVertex3f(P1.X, P1.Y, height);
glVertex3f(P3.X, P3.Y, height);
glVertex3f(P2.X, P2.Y, height);
Code := 5; //
glColor4ubv(@PL
); //
glVertex3f(P4.X, P4.Y, height);
glVertex3f(P5.X, P5.Y, height);
glVertex3f(P6.X, P6.Y, height);
glVertex3f(P7.X, P2.8, height);
glenable(GL_BLEND);
gldisable(GL_DEPTH_TEST);
glMatrixMode(GL_PROJECTION);
glLoadIdentity;
gluPerspective(230, 1, 1, 500);
each one of these is a GL_quads with one color, the next quad im gonna plotting might, or might not be the same color.
give you a little idea what im working with, perhaps some bells will ring, http://nexrad.cjb.net