I am trying to draw an image at 45 degree increments in the shape of a circle. I am getting the image from a txt file. I am trying to translate the matrix by 45 degrees but its not working.
This is what I tried but it's not working:
glBegin(GL_LINE_STRIP);
glColor3f(0, 0,0);
for(int ii=0; ii<8; ii++){
float theta = 2*PI * float(ii)/8;
glVertex2f(cx+r*cos(theta), cy+r*sin(theta));
}
glEnd();