www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/19/02:56:54

Date: Fri, 19 Dec 1997 08:56:07 +0100 (MET)
From: Theuzifan <uzi AT simauria DOT upv DOT es>
To: Fabrice ILPONSE <fabrice AT trash DOT lip6 DOT fr>
cc: djgpp AT delorie DOT com
Subject: Re: drawing methods
In-Reply-To: <3498FA02.1AEE@trash.lip6.fr>
Message-ID: <Pine.LNX.3.95.971219085238.5096A-100000@silvia.rec.upv.es>
MIME-Version: 1.0


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 <bit> 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
> 	  |	<fabrice AT asim DOT lip6 DOT fr>
> 	  |
> 	  |
> 	  -
> 

Theuzifan Sumachingun
Tema de refexion de la semana:
- Por que un ordenador tiene un led para turbo y no tiene boton de turbo?




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019