TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: David Van Hoose
from: David Noon
date: 1998-10-07 20:58:06
subject: Pixels

In a message dated 10-04-98, Tom Torfs said to David Van Hoose about
"Pixels"

Hi Tom & Dave,

 DVH> How do you write a pixel to the console using BCOS2???

TT>Mmh, PRCP.INF says the following:

TT>Note: Although graphics mode support is provided in 
TT>VioSetMode, this support is not provided by the Base Video 
TT>Handlers provided with OS/2.

TT>Does anybody know how to do graphics in console mode ?

There is a an API called VioGetPhysBuf() that will allow you to access the
physical video memory. This is a 16-bit API, it requires full-screen mode
and is totally device dependent. Not a recommended approach.

Moreover, it requires one to write the video data in bulk, not just a single
pixel. This is sensible for performance reasons, but does not answer the
original question.

TT>If not, you may have to resort to making a PM program (=GUI).

The Gpi...() family of API calls make this a much preferred approach. All
the adapter handling is done by the video drivers. It also avoids the
problems BCOS/2 has with 16-bit addressing, as the Gpi...() calls are
32-bit.

Regards

Dave

___
 * MR/2 2.25 #353 * Nothing is so smiple that it can't get screwed up.

--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-717904) (2:440/4)
SEEN-BY: 396/1 632/0 371 633/210 260 267 270 371 635/506 728 639/252 670/218
@PATH: 440/4 255/1 251/25 396/1 633/260 635/506 728 633/267

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™.