Hi, I’m stuck with yet another problem in Opengl.
Here we go-
I need to use rubberbanding in my graphics package that is more or less similar to the Paint Brush app in Windows.
Right now, i’ve implemented it somewhat like this:
1)Enter XOR mode.
2)Draw the line to display it.
3)And redraw the old line(to erase it) and redraw it(to draw the new line) whenever the mouse motion callback function is invoked.
The code works just fine, but for the flicker when I move the mouse rapidly.
It gets worse for the rectangle, worser for the circle( and ellipse) and worst for the bezier curve (for the bezier I cant just see the curve at certain times.)
The code is similar to F.S. hill Jr’ code for rubberbanding.
Ya, I cant afford a SGI workstation until I get a solution for this prob!!
My comp has a TNT2 (AGP) as the graphics accelerator (decelerator!!).