1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00

API update

git-svn-id: svn://svn.cc65.org/cc65/trunk@851 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-08-20 12:16:53 +00:00
parent 2a57280a11
commit 229438fbf9

View File

@ -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 */