Original Post
🔒 Locked
circle
Advertisement
I think what zedzeek meant is:
glBegin(GL_POLYGON);
for (a=0; a<2*M_PI; a+=2*M_PI/numOfEdges)
glVertex2f(cos(a), sin(a));
glEnd();
moreover, you can compile it (check for glCompile, I think)
glBegin(GL_POLYGON);
for (a=0; a<2*M_PI; a+=2*M_PI/numOfEdges)
glVertex2f(cos(a), sin(a));
glEnd();
moreover, you can compile it (check for glCompile, I think)
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement