TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Doug Shields
from: Rob Basler
date: 1995-10-26 10:21:04
subject: VioGetPhysBuf 1/

DS> RB> Here's some code I wrote based on someone else's code for doing full
DS> RB> screen 320x200 graphics, it is loosely modeled after the Borland

DS>Thanks Rob.  My own code is geared to 1024x768x256 at the moment simply
DS>because of the ease of determining the banks with a 1024
DS>byte scanline.

You might want to check out DIVE.ZIP, it has a nice little example that
shows how to work bank switch boundaries in different resolutions.

DS>If it looks useful enough in its finished
DS>state I will likely extend it to include other modes.
DS>Since it is just the video buffer that is giving me trouble
DS>I zeroed in on your VioGetPhysBuf.  With the exception of
DS>forming the pointer manually rather than through a macro it
DS>is essentially the same.  So I now have 4 essentially
DS>identical pieces of code... yours, mine, the SVGA lib for
DS>EMX, and the mode X library.  Mine is the only one I have
DS>tried using lately, but I will try building the others to
DS>test if they work.

Ya gotta love C, I'm sorry, but mixed model programming is just UGLY, I
can hardly wait for a time when everything is 32 bit FLAT.

DS>BTW: Were you able to actually try building and running the
DS>little text version I posted in my original message ?

I didn't try compiling it.  My programming time is in pretty high demand
at the moment, it's trade show season and when I'm not on a plane, new
product development is paramount.

Rob.
___
 X SLMR 2.1a X Trust no one.

--- Maximus/2 2.01wb
* Origin: The Idle Task... (604)275-0835 Richmond BC. (1:153/905)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 517 628 704 713/888 800/1 7877/2809
@PATH: 153/905 828 800 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.