TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: John Poltorak
date: 1995-12-26 19:24:06
subject: Non-PM Graphics

Sunday December 17 1995, Peter Fitzsimmons writes to Kevin Ring:

 KR>> Is it possible to create a non-PM 32 bit OS/2 native
 KR>> program that uses graphics modes (such as mode 13h)?

 PF> Yes.  Here is a mode 13 (320x200x8bit) sample.

Interesting to see this... Can you suggest a source for lots of non-PM
graphics? BTW where can I get any info on these modes? I've never heard of
mode 13.

 PF>  //icc /G4 /Q /Smes /W3 /Kb+ /O /Oi20 /Gs /Gm circ_fs.c

I got an error using /Oi120 :-

CIRC_FS.C(0:0) : warning EDC0463: Option /Oi20 is not valid.

This is using IBM C Set/2 v1.0.

 PF>      setmode();
 PF>      viopb.pBuf = (PBYTE) 0xA0000L;
 PF>      viopb.cb = 64000L;
 PF>      VioScrLock(LOCKIO_WAIT, (PBYTE) &fStatus, 0);
 PF>      VioGetPhysBuf(&viopb, 0);
 PF>  #if 0
 PF>      pchScreen = MAKEP(viopb.asel[0], 0);

What is MAKEP ?

Your sample code is useful but difficult to follow since I don't have any
references on what's going on. I can't even work out which instruction is
outputting to the screen. Are there any books which you would consider
useful wrt graphics?

BTW I got a Trap E IPE when I tried running the program after compiling it.
This is with an IBM XGA card, and the C Set/2 compiler. I was using the
headers from C++ Beta v3 (pre-VAC) - would that have caused the problem?

John
----------------------------------
mailto://jpolt{at}bradnet.demon.co.uk

---
* Origin: (2:250/313)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 808 809 934 955 712/407 515
SEEN-BY: 712/517 628 713/888 800/1 7877/2809
@PATH: 250/313 440/4 141/209 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™.