surya24
08-12-2003, 11:21 PM
Hi,
I'm a newbie to opengl, trying to write a code,
where i've 2 objects circle and a point. as the circle moves, the point traces a curve. when i use a function to move the circle, i've to always give
glClear (GL_COLOR_BUFFER_BIT) , which erases the current scene in on the window, and draws the scene completely again. but when i want to trace a curve, with respect to the movement of the circle, i cannot use glClear, as it will erase, the curve, drawn in the previous iteration. how can i avoid this. I want to trace the curve, along with the movement of circle.
Thanks in advance,
Surya
I'm a newbie to opengl, trying to write a code,
where i've 2 objects circle and a point. as the circle moves, the point traces a curve. when i use a function to move the circle, i've to always give
glClear (GL_COLOR_BUFFER_BIT) , which erases the current scene in on the window, and draws the scene completely again. but when i want to trace a curve, with respect to the movement of the circle, i cannot use glClear, as it will erase, the curve, drawn in the previous iteration. how can i avoid this. I want to trace the curve, along with the movement of circle.
Thanks in advance,
Surya