So I'm working on this OpanGL animation program for school, and I am curious about glTranslate function. Does this function is able to move a circle that I have drawn to a different part of screen?
Also, I have circle to move around screen, what is the best way to make circle move in a straight line at an angle from origin?
Thank you, [ßpoiler]/prog/[/spoiler]
Name:
Anonymous2008-09-11 18:08
[quote]ßpoiler[/quote]
What the fuck
Anyways, yes. Since it takes a matrix, you call it on the matrix with the desired co-ordinate change.
Name:
Anonymous2008-09-11 18:22
>>1
No, it does not is able to move a circle that you have drawn to a different part of the screen. What's drawn is drawn.
i have a circle at location (x,y) and a vector (-3,4) and i want to move the circle in that direction of the vector do i just divide (-3,4) by its length and then keep adding this value to (x,y) or is there a smoother way to do this in opengl also does opengl work in pixel or float coordinates thanks