I have draw a line which can have any orientation in 2D. When I have moved it how can I redraw the line without redrawing a large proportion of the screen.

Currently I am using CRect (left top right bottom), by finding the center of the line using differences in x and y, and then from the center point I am using the x and y differences to redraw a large rectangle :sad:.

Also I am trying to stop flickering but haven't found code to do as it says it should.

Any help is much appreciated. Thanks.

CGTalk Moderation

08-06-2007, 10:21 AM

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com