#include #include #include #include #include #include "hsv.h" using namespace std; struct point{ GLfloat x,y,z; }; struct color{ GLfloat r,g,b; }; point * Points; color * Colors; GLfloat XRot, YRot, ZRot; int TotalPoints = 100; float dtheta = 2*M_PI/ float(TotalPoints/2); void display() { int i; glLoadIdentity(); glRotatef(XRot, 1,0,0); glRotatef(YRot, 0,1,0); glRotatef(ZRot, 0,0,1); glClear(GL_COLOR_BUFFER_BIT); glColor3f(0,0,0); glBegin(GL_LINE_LOOP); for (i=0; i