void lingkaran(int x,int y,int jari,int r,int g,int b)
{
float rad =3.14/180;
glPointSize(2);
glColor3f(r,g,b);
glBegin(GL_POINTS);
for(int n=0; n<=jari; n++)
{
for(int a=0; a<=360; a++)
{
int x1=n *cos (a*rad);
int y1=n *sin (a*rad);
glVertex2i(x+x1,y+y1);
}
}
glEnd();
}
Comment Form under post in blogger/blogspot