From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2001-08-13 21:11:00
On Mon, Aug 13, 2001 at 01:39:02PM -0500, David M. Lloyd wrote: > One other function to include would probably be a function that gives you > a list of all available video modes. Then the program could choose a mode > that is closest to what they need. This could be solved without such a function by calling initgraph() with one graphics mode after the other (most preferred one first) until the function does not return an error. On the other side, with some clever encoding, the list could go into static storage, so the function size is only a few bytes. Since text mode should be zero, we could use a character string for the list of possible graphics modes. Or use a #define for the number of graphics modes somewhere in the header file... To be honest, I don't expect too many programs that are able to adjust to different graphics modes at runtime, since the overhead for such a program (different maxx, maxy, color count, aspect ratio) will usually be too high for a 6502 machine. The C64 (and maybe some other machines) has additional limitations, for example in the 4 color mode, one of the four colors cannot change within a 8x8 character cell. It is quite difficult to write portable programs with these limitations. I'm currently writing a first version of the graphics.h header file. If you have any more suggestions, please keep them coming. I will leave for a few days tomorrow and finish the API when I'm back, using your comments. Thanks a lot for the help! Regards Uz -- Ullrich von Bassewitz uz_at_musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:41 CET