delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/22/21:19:22

To: djgpp AT delorie DOT com
Subject: Re: X-mode
Message-ID: <19970122.180301.4975.4.chambersb@juno.com>
References: <01bc07f9$fa24d420$a3f80f82 AT default>
From: chambersb AT juno DOT com (Benjamin D Chambers)
Date: Wed, 22 Jan 1997 21:04:07 EST

On 22 Jan 1997 00:22:06 GMT "Don" <6dcb AT qlink DOT queensu DOT ca> writes:
>	I'm writing my first game in Djgpp and I'm trying to use 
>Mode-X because of
>the many advantages.  The only thing I don't like is the non-linear
>addressing.  Whenever you plot a pixel you have to select the 
>bit-plane
>right?!  Okay I wrote a function to do that, but obviously it is 
>somewhat
>slower than say a 13h function.  My biggest problem is blitting.  How 
>can I
>blit in mode X without plotting one pixel at a time (as apposed to a 
>say
>memcpy command to blit whole lines).  Basically I want a fast and easy 
>way
>to copy a buffer containing an image to the video buffer in mode-X.  
>Maybe
>that's not possible, maybe I should try VESA programming??  Any help 
>would
>be appreciated.  
Keep your off-screen buffer in planar format, then just blit the whole
plane at a time.
Then, just make sure you draw to the correct planes when using the
buffer.
Or, you could just use Allegro - which does this transparantly for you.

...Chambers

- Raw text -


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