I am trying to draw a 4 leaved rose using opengl and polar coordinates, I am able to draw a circle using sin and cos.
glPushMatrix();
glColor3f(0.0f, 1.0f, 1.0f);
glBegin(GL_POINTS);
float r = 10.0f;
for (float q = 0.0f; q <= 6.28f; q += 0.01f)
{
float r1 = r*cos(2 * q);
float r2 = r*sin(2 * q);
glVertex3f(r1, r2, 0.0f);
}
glEnd();
glPopMatrix();