From: cuz Date: Mon, 20 Aug 2001 12:16:53 +0000 (+0000) Subject: API update X-Git-Tag: V2.12.0~2728 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=229438fbf99f66f198c6711e742e3e9ab213485a;p=cc65 API update git-svn-id: svn://svn.cc65.org/cc65/trunk@851 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/graphics.h b/include/graphics.h index 21b1126d7..cb5c9d687 100644 --- a/include/graphics.h +++ b/include/graphics.h @@ -39,7 +39,7 @@ /*****************************************************************************/ -/* Constants */ +/* Constants */ /*****************************************************************************/ @@ -50,6 +50,20 @@ +/*****************************************************************************/ +/* Data */ +/*****************************************************************************/ + + + +struct palettetype { + unsigned char r; /* Red component */ + unsigned char g; /* Green component */ + unsigned char b; /* Blue component */ +}; + + + /*****************************************************************************/ /* Functions */ /*****************************************************************************/ @@ -97,6 +111,21 @@ void __fastcall__ setcolor (unsigned char color); unsigned char getcolor (void); /* Return the current drawing color */ +unsigned char getbkcolor (void); +/* Return the current background color */ + +void __fastcall__ setbkcolor (unsigned char color); +/* Set the background color */ + +void __fastcall__ setpalette (unsigned num, const struct palettetype* palette); +/* Set one palette entry */ + +void __fastcall__ getpalette (unsigned num, struct palettetype* palette); +/* Get one palette entry */ + +void __fastcall__ setallpalette (const struct palettetype* allpalette); +/* Set all palette entries */ + unsigned char __fastcall__ getpixel (int x, int y); /* Get the color value of a pixel */