diff options
Diffstat (limited to 'src/px.h')
-rw-r--r-- | src/px.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -13,6 +13,10 @@ typedef uint8_t PxCol; typedef struct { + uint8_t a[3]; +} PxRawCol; + +typedef struct { uint8_t r, g, b; bool t; /* tranparency */ int pal, spal; @@ -62,7 +66,7 @@ void pxDeinit(void); /* Return -1 on error. * Should be called between TZR_DrawBegin and TZR_DrawEnd. */ -int pxFlip(void); +int pxFlip(PxRawCol (*fs)(PxRawCol c, int x, int y)); /*** DRAW ***/ /* Fill and reset Z on the clipping region with color 'c'. */ @@ -116,6 +120,8 @@ void _pxPalt(const PxPaltArgs *args); /* Try to find a color in palette, return 255 on error. */ PxCol pxCol(uint8_t r, uint8_t g, uint8_t b); +PxRawCol pxRawCol(PxCol c); + /*** MATH ***/ int pxMin(int a, int b); int pxMax(int a, int b); |