From: g DOT reed AT clear DOT net DOT nz (Glenn Reed) Newsgroups: comp.os.msdos.djgpp Subject: Proposal: Gif / Jpeg / or whatever decoder with callback Date: Sat, 14 Feb 1998 22:34:26 GMT Organization: CLEAR Net, http://www.clear.net.nz/ Lines: 27 Message-ID: <34e6164f.747913@news.clear.net.nz> NNTP-Posting-Host: d1-u4.acld.clear.net.nz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, Here is a proposal I have. Just posting it here to make sure it hasn't already been done. I have been thinking of writing a program (actually a C procedure) which will read in a bitmap file and using an appropriate callback function display it on the screen. In this way it can be written to be graphics card independent. I've thought of something similar to the following structure: LoadGraphicsFile (char *filename); DisplayGraphicsFile (char *filename, int x, int y, void (*PutPixel) (int x, int y, int PaletteEntry) ); Where PutPixel is defined by the user. These two functions should be desigined to be ANSI compatible. Comments? -------------------------------------------------------------- E-mail: g DOT reed AT clear DOT net DOT nz Home Page: http://home.clear.net.nz/pages/g.reed/index.htm Home Page of the freeware Chinese Checkers Game. Postal: 109 Burns St, Cambridge New Zealand. --------------------------------------------------------------