summaryrefslogtreecommitdiff
path: root/src/px.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/px.h')
-rw-r--r--src/px.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/px.h b/src/px.h
index 3d0db03..2d8f39b 100644
--- a/src/px.h
+++ b/src/px.h
@@ -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);