moloza
03-18-2009, 12:40 PM
Hello there..
This is my first post, I'm studying OpenGL and working in my first project. I draw a circle using the formula: glVertex2f(cos(angle)*radius , sin(angle)*radius). I'm controlling the segment of the circle by using starting and ending number of the (2 * pi). The problem is that when I try to rotate the circle using glRotatef(), It is rotated not around its center but around something else I couldn't figure it out!
I hope the problem is cleared. Any idea?
Best wishes
This is my first post, I'm studying OpenGL and working in my first project. I draw a circle using the formula: glVertex2f(cos(angle)*radius , sin(angle)*radius). I'm controlling the segment of the circle by using starting and ending number of the (2 * pi). The problem is that when I try to rotate the circle using glRotatef(), It is rotated not around its center but around something else I couldn't figure it out!
I hope the problem is cleared. Any idea?
Best wishes