GFX Information

John Plocher plocher at sally.Sun.COM
Wed Feb 14 08:11:25 AEST 1990


| Does anyone have a copy of the GFX demos? The GFX device driver is included
| with the Microport V/AT Link Kit disk, however, there are no demos or librarys
| which would indicate how to use it.

The contents of the GFX Demo Disk from Ken Chapin at Microport
is (and always has been) avaliable without charge and
restriction.  It is avaliable from Microport Tech Support (Ha!);
from the Microport BBS (HaHa!); from anyone who already has it
(Getting warmer); or as part of the $20.00 Microport Best of the
BBS package.  You might even call Microport Sales and ask for
the GFX Demo disk - they may charge you for it (S&H), but they
*do* have it.

It has various demo programs on it (source, of course) to do
such things as Mandelbrodt sets, dragon curves,...  for
the 286 and 386.

Have Fun
   -John

Here's a quick example to get you going:


#include <stdio.h>
#include <sys/types.h>
#include <gfx.h>

Gfx_Bitmap bm;

main()
{
    if ( !(bm = gfx_open()) ) {
	fprintf(stderr, "Can not open graphics screen\n");
	exit(1);
    }

    gfx_mode ( bm, GRAPHIC );
    gfx_dot  ( bm, 0,0, BLACK, GFX_SRC);/* to set the "clear" mode to GFX_SRC */
    gfx_clear( bm, BLACK );
    gfx_vect ( bm, 100, 350 - 100,	/* (100,100) */
		    10, 350 -  10,	/* ( 10, 10) */
      		   GREEN,  GFX_OR);
    sleep(10);
    gfx_mode ( bm, ALPHA );
}



More information about the Comp.unix.microport mailing list