Original Post
IM using the fllowing code to create a simple circle, which i intend to turn into a sphere. I knwo i could useing gluSphere however i fancy trying to do it this way. When i use the following code it gives me a syntax error on the '=', any idea why?? thanks, kelvin void cyclinder(void) { glBegin(GL_LINE_LOOP); for(int i=0;i<360;i++) { float xcoord = 1 * cos(i*2*PI/360); float ycoord = 1 * sin(i*2*PI/360); glVertex2f(xcoord,ycoord); } glEnd(); }