From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: GRX 23 basic function usage? Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <3964bf07 DOT 365699 AT news> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 49 X-Trace: +rTuhsX8qUuv5patv6Kh6O9rwSc4vGduI+onoKc6Gt6QN/4Q4BOBhyqlHQDmJUAlTi/yZ2Ir38nQ!o0OBRYVwyW9zzhbFixTXlOTwbazmQuEt/EVFFLQsM/kEt7GFhzKXVHFya8hahipFOygnRX3OyQtO!Y00L X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Thu, 06 Jul 2000 19:13:31 GMT Distribution: world Date: Thu, 06 Jul 2000 19:13:31 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Thu, 06 Jul 2000 15:16:11 GMT, david DOT ah AT nospamhome DOT com (David Hamilton) wrote: >Can someone point me to a site or if possible post a sample code >snippet showing how to use GRX23 to: >Init the graphics card, create a circle and a square, and change the >font. Thanks in advance for the help. I know nothing about GRX23 (what advantages does it have over Allegro again?) but I know how to do it in Allegro: #include int main() { DATAFILE *dat; FONT *myfont; allegro_init(); install_timer(); if(set_gfx_mode(GFX_AUTODETECT, 320, 200, 0, 0) < 0) return 1; install_keyboard(); dat = load_datafile("myfont.dat"); if(dat == 0) return 1; myfont = find_datafile_object(dat, "comicsans"); clear(screen); rect(screen, 0, 0, 100, 100, 7); circle(screen, 100, 100, 50, 4); text_mode(-1); textout(screen, myfont, "hello world", 32, 160, 15); readkey(); unload_datafile(dat); return 0; } END_OF_MAIN(); -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/