Help regarding rubberbanding...

I have implemented basic rubberband drawing but at the moment I am refreshing the complete drawing whenever a new item is added or mouse is moved. however it will not be possible to do so when application get bigger…
how to remove only the trails of mouse motion and eradicate the need of refreshing the entire diagram…since not expereinced in graphics programming need you help urgently


Copy your drawing to texture before starting the rubberband : you can use glCopyTexSubImage (basic and simple, but does not work if window is partially covered by another for instance), pbuffers (old and clumsy) or FBO .

Then simply draw a textured quad with this texture when doing interactive rubberbanding.

Thanks for the reply.
What about using XOR operation?

forget it.

Please explain…I have seen tutorials that suggesty it
thanks for the help