PDA

View Full Version : 2D motion



bubbaJr
02-11-2005, 08:37 AM
I need to have the capability to move symbols on a 2D window. I've created functions that 'remember' the current x-y coordinates of a drawn symbol. Then when the function receives new x-y coordinates for the symbol, it draws the background color to the previous x-y coordinates then draws the new x-y coordinates in the foreground color. This gives the impression of motion and works very well.

But I was wondering if there's a better way to do it. The symbols are simple - like stippled crosshairs, rectangles, line segments, etc.

Thankx in advance.
mYellow

bubbaJr
02-11-2005, 08:41 AM
Almost forgot to mention - the symbols need to move independently of one another. There may be as many as 9 symbols moving in totally different directions. Would attempt to use glTranslate but don't think that could be made to work, since all of the moving symbols would probably be moving in totally different directions.