456 glPushAttrib(GL_POLYGON_BIT);
457 glShadeModel(GL_SMOOTH);
466 glColor3f(
rr[0],
gg[0],
bb[0]);
467 glVertex2f(oneX, oneY);
468 glVertex2f(twoX, oneY);
469 glColor3f(
rr[1],
gg[1],
bb[1]);
470 glVertex2f(twoX, twoY);
471 glVertex2f(oneX, twoY);
473 glVertex2f(oneX, twoY);
474 glVertex2f(twoX, twoY);
475 glColor3f(
rr[2],
gg[2],
bb[2]);
476 glVertex2f(twoX, threeY);
477 glVertex2f(oneX, threeY);
479 glVertex2f(oneX, threeY);
480 glVertex2f(twoX, threeY);
481 glColor3f(
rr[3],
gg[3],
bb[3]);
482 glVertex2f(twoX, fourY);
483 glVertex2f(oneX, fourY);
485 glVertex2f(oneX, fourY);
486 glVertex2f(twoX, fourY);
487 glColor3f(
rr[4],
gg[4],
bb[4]);
488 glVertex2f(twoX, fiveY);
489 glVertex2f(oneX, fiveY);
493 glVertex2f(zeroX, fiveY);
494 glVertex2f(oneX, fiveY);
495 glVertex2f(oneX, zeroY);
496 glVertex2f(zeroX, zeroY);
498 glVertex2f(zeroX, -fiveY);
499 glVertex2f(oneX, -fiveY);
500 glVertex2f(oneX, -zeroY);
501 glVertex2f(zeroX, -zeroY);
503 glTranslatef(0,0,0.1f);
506 glColor3f(0.f,0.f,0.f);
509 for (
int i=1;
i<10;
i++)
514 value = (float)(
i)/10.f;
516 glVertex2f(oneX, yy);
517 glVertex2f(twoX, yy);
GLfloat tooLowValueCoulour[3]
GLfloat tooHighValueCoulour[3]