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