mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
API update
git-svn-id: svn://svn.cc65.org/cc65/trunk@851 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
2a57280a11
commit
229438fbf9
@ -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 */
|
/* Functions */
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
@ -97,6 +111,21 @@ void __fastcall__ setcolor (unsigned char color);
|
|||||||
unsigned char getcolor (void);
|
unsigned char getcolor (void);
|
||||||
/* Return the current drawing color */
|
/* 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);
|
unsigned char __fastcall__ getpixel (int x, int y);
|
||||||
/* Get the color value of a pixel */
|
/* Get the color value of a pixel */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user