X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplanar.h;h=6e5806651dae592f31e7859d9e669445f5b9a4a4;hb=734addea4c40d2e7fb6470bdf51ce96343a25e59;hp=4cd7365b36d48245d9b1f0df3f2c9875c73198e1;hpb=74929b07c8b45a20eb5079444f4df21c9898e605;p=16.git diff --git a/src/lib/planar.h b/src/lib/planar.h index 4cd7365b..6e580665 100755 --- a/src/lib/planar.h +++ b/src/lib/planar.h @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 * * This file is part of Project 16. * @@ -26,20 +26,7 @@ #ifndef PLANAR_H #define PLANAR_H -#include "src/lib/bitmap.h" -#include "src/lib/16_ca.h" -#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; +#include "src/lib/modex16.h" /* creates a planar buffer from the bitmap data. The planar buffer is dynamically allocated, and should @@ -54,7 +41,4 @@ 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