]> git.sur5r.net Git - cc65/commitdiff
API update
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 20 Aug 2001 12:16:53 +0000 (12:16 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 20 Aug 2001 12:16:53 +0000 (12:16 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@851 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/graphics.h

index 21b1126d7e0b7907cf717c7ba497dbaf5f5e5091..cb5c9d68708d52f287ad8aeb7d65c34b91c12a89 100644 (file)
@@ -39,7 +39,7 @@
 
 
 /*****************************************************************************/
-/*                                Constants                                 */
+/*                                Constants                                 */
 /*****************************************************************************/
 
 
 
 
 
+/*****************************************************************************/
+/*                                  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 */