void FF_ID(fc6_f, FC6_F)(int *a, int *b, int *c, int *d) {int _la; int *_lb; int *_lc; int *_ld; _la = (int) *a; _lb = (int *) b; _lc = (int *) c; _ld = (int *) d; fc6(_la, _lb, _lc, _ld); return;}
void renderPolygons(void) { // set clearing color glClearColor(0.0, 0.0, 0.0, 0.0); glClear(GL_COLOR_BUFFER_BIT); // first polygon - triangle - yellow Point c1(100,50,0); Color fc1(1.0, 1.0, 0.0, 0.0); Polygon tri(40, c1, 3, 1, GL_LINE_LOOP, fc1); tri.draw(); // square - hollow - light blue(cyan) Point c2(100,150,0); Color fc2(0.0, 1.0, 1.0, 0.0); Polygon squ(40, c2, 4, 8, GL_LINE_LOOP, fc2); squ.draw(); // pentagon - hollow - gray Point c3(100,250,0); Color fc3(0.5, 0.5, 0.5, 0.0); Polygon pent(40, c3, 5, 3, GL_LINE_LOOP, fc3); pent.draw(); //hexagon - not hollow - red Point c4(200,50,0); Color fc4(1.0, 0.0, 0.0, 0.0); Polygon hex(40, c4, 6, 3, GL_POLYGON, fc4); hex.draw(); // nonagon - hollow - green Point c5(200,150,0); Color fc5(0.0, 1.0, 0.0, 0.0); Polygon nin(40, c5, 9, 5, GL_LINE_LOOP, fc5); nin.draw(); // tridecagon - hollow - purple Point c6(300,300,0); Color fc6(1.0, 0.0, 1.0, 0.0); Polygon thri(90, c6, 13, 3, GL_LINE_LOOP, fc6); thri.draw(); glutSwapBuffers(); }