Date: Fri, 19 Dec 1997 08:56:07 +0100 (MET) From: Theuzifan To: Fabrice ILPONSE cc: djgpp AT delorie DOT com Subject: Re: drawing methods In-Reply-To: <3498FA02.1AEE@trash.lip6.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 18 Dec 1997, Fabrice ILPONSE wrote: > Ionicis wrote: > > > > What's the fastest, best looking (meaning no "flicker" when redrawing > > screen) animation method for use with mode 13h? I made a beginner's > > (which I am) graphics program, which moves a box around according to > > your keystrokes. However, everytime the box moves it flickers. The > > "method" I'm using is to first clear the screen (totally black) and then > > draw the box. I know this method probably sucks, but I was just > > wondering what's the best method for flicker-less animation. > > Thanks! > > > > Ionicis > > - Bank swapping. Not possible in normal 13h mode. You can try mode X but > you've got to manage some bit plans. Hey, man! he's a beginner! And XMode is a complicated for anyone who's starting. Even for anyone who has started :) Just create a data array with malloc, 64000 bytes long, and made the modifications here. Then copy the whole buffer to the screen. It will reduce the flicker. You may also wait for vertical retrace on VGA, which I don't remeber the code... > > - Blitting. Easy but slower than swapping!! > > -- > ^ ^ ^ > | | | > +-+-+ Fabrice ILPONSE > | > | > | > - > Theuzifan Sumachingun Tema de refexion de la semana: - Por que un ordenador tiene un led para turbo y no tiene boton de turbo?