Re: [cc65] Graphics library

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2001-08-19 13:04:26


On Fri, Aug 17, 2001 at 05:38:39PM +0200, Maciej Witkowiak wrote:
> I think about something like in C128 Basic, where drawing functions take color
> number not color value. E.g. for 160x200x4 there is palette of 4 colors from
> 16 available.
>
> And what should getmaxcolor return for 160x200x4 on C64: 4 or 16?

getmaxcolor() should return 4. For the number of palette colors, the BGI
library has a special function getpalettesize() - I will add it to the API.

There are some more BGI functions that would make sense:

    unsigned char getbkcolor (void);
    /* Return the current background color */

    void setbkcolor (unsigned char color);
    /* Set the background color */

    void setpalette (unsigned num, const struct palettetype* palette);
    /* Set one palette entry */

    void getpalette (unsigned num, struct palettetype* palette);
    /* Get one palette entry */

    void setallpalette (const struct palettetype* allpalette);
    /* Set all palette entries */

Anything else missing?

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.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:41 CET