X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplanar.h;h=4cd7365b36d48245d9b1f0df3f2c9875c73198e1;hb=74929b07c8b45a20eb5079444f4df21c9898e605;hp=af8c5bf427e9a4bbbaea84c1719bfce9de755075;hpb=1170e45860266537729a5a54eaafdf50511f5315;p=16.git diff --git a/src/lib/planar.h b/src/lib/planar.h index af8c5bf4..4cd7365b 100755 --- a/src/lib/planar.h +++ b/src/lib/planar.h @@ -31,11 +31,14 @@ #include "src/lib/16_mm.h" #include "src/lib/16_hc.h" +extern byte *modexNewPal(); + typedef struct { byte huge *plane[4]; /* 4 planes of image data */ word width; /* width of the image (spread across 4 planes) */ word height; /* height of the image (spread across 4 planes) */ word pwidth; /* the number of bytes in each plane */ + byte *palette; } planar_buf_t; /* creates a planar buffer from the bitmap data. @@ -43,11 +46,15 @@ typedef struct { be destroyed with the planar_buf_free function when no longer needed. */ -planar_buf_t *planar_buf_from_bitmap(bitmap_t *b); +planar_buf_t huge *planar_buf_from_bitmap(bitmap_t *b); /* allocates a planar buffer with specified dimensions */ -planar_buf_t *planar_buf_alloc(word width, word height); +planar_buf_t huge *planar_buf_alloc(word width, word height); /* deallocates a planar buffer */ void planar_buf_free(planar_buf_t *p); + +/* non pointer version~ */ +planar_buf_t planar_buf_from_bitmap0(bitmap_t *b); + #endif