| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Non-PM Graphics |
KR> Is it possible to create a non-PM 32 bit OS/2 native
KR> program that uses graphics modes (such as mode 13h)?
Yes. Here is a mode 13 (320x200x8bit) sample.
#define INCL_NOPMAPI
#define INCL_VIO
#define INCL_DOS
#include
#include
#include
#include
#include
#include
#include
#include
//icc /G4 /Q /Smes /W3 /Kb+ /O /Oi20 /Gs /Gm circ_fs.c
#define SIZEX 320
#define SIZEY 200
#define ORIGINX (SIZEX/2)
#define ORIGINY (SIZEY/2)
#define squared(n) ((n) * (n))
#define point(x, y) pchScreen[ (unsigned) ((y) * SIZEX + x)]
// circle with origin (h,k) and radius r: r^2 = (x-h)^2 + (y-k)^2
void circles(UCHAR far *pchScreen) // NOTE16
{
int x, y, r;
for(x=0; x * Origin: Sol 3 * Toronto * V.32 * (905)858-8488 (1:259/414)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: 259/414 400 99 250/99 3615/50 396/1 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™.