path tracing

i could not find any way by which a point can be moved in space and its path is traced as it moves, not one time path display but path generation on screen with time.
could you please tell me how can i do it?

Originally posted by rgk:
i could not find any way by which a point can be moved in space and its path is traced as it moves, not one time path display but path generation on screen with time.
could you please tell me how can i do it?

You could use an array to store a number of past positions, and then step through the array using GL_LINE_STRIP.