TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: David Van Hoose
from: Jonathan de Boyne Pollard
date: 1998-10-04 16:53:34
subject: Pixels

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

If you are thinking about "consoles", then you must be writing a
text-mode application.  When the display hardware is in text mode, you
cannot access individual pixels.

If you want to write a graphical application, then there will no doubt be
many here who will tell you how to use OS/2's VIO subsystem to switch a
full-screen session into graphics mode, and how to access the video buffer
to alter individual pixels.  

However, I do *not* recommend going down that route.  I think that it is
bad style, unnecessary, and locks you in to some of the undocumented
innards of the VIO subsystem that only a few specialised types of programs
should need to concern themselves with.  If you want to write a graphical
program, do the Right Thing and make it a Presentation Manager program, and
let PM do all of the hard work of hitting the graphics hardware for you. 
Borland C++ for OS/2 has some examples of trivial PM programs that you can
look at in the \BCOS2\EXAMPLES directory.

 ¯ JdeBP ®

--- FleetStreet 1.19 NR
* Origin: JdeBP's point, using Squish (2:440/4.3)
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™.