EASy68K
http://www.easy68k.com/EASy68Kforum/

graphics
http://www.easy68k.com/EASy68Kforum/viewtopic.php?f=6&t=1155
Page 1 of 1

Author:  simon11 [ Mon Dec 31, 2012 2:57 am ]
Post subject:  graphics

Hello

if I want to make a ''slide_show'' of a falling square, what's the easiest way of doing it?

I thought something like:first draw a white square, store RX,LX,UY,LY,then add some constant value to LY and UY(RX and LX sty same all of the time),then draw a black sqaure with the parameters I stored (to erase first sqaure) then again draw white square with the new parameters which I store again,then black one and so on....

My question is there another way of doing this, maybe something like painting all screen or just a part of it,because maybe there would be some parts on the screen that I wouldn't like to be erased...

Thanks

Simon

Author:  lee [ Tue Jan 01, 2013 2:41 am ]
Post subject:  Re: graphics

Look at using double buffered mode, that way any drawing you do is hidden. The updated screen is not visible until you swap it with the displayed screen.

Otherwise you can redraw the whole screen or just redraw parts of it, whatever is easier. I've used both methods to great effect, see here for examples.

Lee.

Author:  simon11 [ Thu Jan 03, 2013 9:56 pm ]
Post subject:  Re: graphics

Quote:
Look at using double buffered mode, that way any drawing you do is hidden. The updated screen is not visible until you swap it with the displayed screen.


Yes, about that after swaping it with the displayed screen does the updated screen gets clear?

And what else can I do with Your program ''maze'' except generating? I'm asking nicely, realy nicely :D

Author:  lee [ Thu Jan 03, 2013 11:17 pm ]
Post subject:  Re: graphics

Quote:
Yes, about that after swaping it with the displayed screen does the updated screen gets clear?
No, the screens remain unchanged. If you want to start with a clear screen you have to clear it yourself. My lightsout game relies on the image not being cleared.
Quote:
And what else can I do with Your program ''maze'' except generating? I'm asking nicely, realy nicely
As it is, nothing. If you want some feature you have to ask for that realy nicely and then I may think about it. 8^)=

Lee.

Author:  simon11 [ Sat Jan 05, 2013 6:24 pm ]
Post subject:  Re: graphics

Quote:
No, the screens remain unchanged. If you want to start with a clear screen you have to clear it yourself. My lightsout game relies on the image not being cleared.


Ok,thanks :)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/