Original Post
Dear All,
I am learning graphics programming and try some simple animation technique using C, djgpp.
I have drawn some planets encircling the sun by blitz method.
Procedure:
1.clear virtual screen 2*800x600// 16-bit color
2.draw object on vscreen
3. wait for retrace
4. transfer vscreen to real screen thru bank switching steps
4.5) clear virtual screen
5. increment object position
6. go to (2).
But I want to put some background scene, not just the moving objects on the black background cause by clearing the whole screen. What are the steps, algorithm to create a background, clear only the old position of object and patch up the space with the background, put the object new position on top of the background.
Thank you.
Patrick
[edited by - patrick_chm on July 23, 2002 11:58:14 AM]