🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1805

Re: how to do vga mode 0x13 in os2?

#1805
From: Robert Gammon
Date: Tue, 05 Jan 1993 12:40
40 lines
2109 bytes
In article <1993Jan4.213021.16158@dms.agames.com> kuan@dms.agames.com (Frank Kuan) writes:

 >> 
 >> I have been writing a graphics program that uses vga mode 0x13 (320x200x256)
 >> as a dos application with borland C.  The difficulties I'm having are
 >> all related to 16 bit limitations.
 >> 
 >> I want to use 32 bits, statically allocate more than 64k, and still be
 >> able to use a source debugger and not have it crash. 
 >> 
 >> I think the way to go is to develop this as a 32 bit flat model application
 >> under os/2, and when it is stable, port it to a 32 bit dos extender since
 >> the masses use dos. 
 >> 
 >> I have a few questions concerning this:
 >> 
 >> 1. Is watcom the way to go, gcc, or Zortech? (C++ would be nice, but not
 >>         essential, so that's not a consideration) 
 >> 2. I have four of the .inf redbooks for os2, but I could not find info
 >>         on how to talk to the video card to pop it into mode 0x13, or
 >>         even how to bring up an os2 full screen. What address is vram
 >>         mapped to?
 >> 3. I've never seen an os/2 app written to use vga mode 0x13. Are there
 >>         any available with source?
 >> 
 >> Any advice, answers, hints would be greatly appreciated.
 >> 
 >> - Frank  
 >> 
 >> 

Get VGALIB.ZIP from ftp-os2.nmsu.edu.  The author has implemented a library 
for 320x200 graphics under OS/2.  It may have just the info you are looking 
for.

--
Regards,
Robert Gammon
(713)-274-3299       (voice)
(713)-274-2324       (fax)
Technical Details
Message-ID: <930105074024@rgam.sc.ti.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!pan.mc.ti.com!rgam.sc.ti.com!rgammon
References: <1993Jan4.213021.16158@dms.agames.com>

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer,comp.os.os2.programmer,comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!pan.mc.ti.com!rgam.sc.ti.com!rgammon
From: 5692330@mcimail.com  (Robert Gammon)
Subject: Re: how to do vga mode 0x13 in os2?
Message-ID: <930105074024@rgam.sc.ti.com>
Nntp-Software: PC/TCP NNTP
Lines: 40        
Sender: usenet@pan.mc.ti.com (USENET News System)
Organization: Texas Instruments Materials and Controls Group
References: <1993Jan4.213021.16158@dms.agames.com>
Date: Tue, 5 Jan 1993 12:40:24 GMT