Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!newstop!sun!sally!plocher From: plocher@sally.Sun.COM (John Plocher) Newsgroups: comp.unix.microport Subject: Re: GFX Information Message-ID: <131765@sun.Eng.Sun.COM> Date: 13 Feb 90 21:11:25 GMT References: <1990Jan28.202254.4644@cocktrice.uucp> Sender: news@sun.Eng.Sun.COM Reply-To: plocher@sun.UUCP (John Plocher) Organization: Sun Microsystems, Mountain View Lines: 45 | 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 #include #include 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 ); }