X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbitmap.h;h=06570a9a4851cfdb6918e3b8bbe5876e89bb2ecb;hb=c4938b26e71facac986fcccc2334223273293d86;hp=4b31c4b481f6d15fdd960f4dff17214dba2f01c0;hpb=74929b07c8b45a20eb5079444f4df21c9898e605;p=16.git diff --git a/src/lib/bitmap.h b/src/lib/bitmap.h index 4b31c4b4..06570a9a 100755 --- a/src/lib/bitmap.h +++ b/src/lib/bitmap.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. * @@ -25,27 +25,8 @@ #ifndef BITMAP_H #define BITMAP_H -#include "src/lib/types.h" -#include "src/lib/16_head.h" -#define PALSIZE 768 - -typedef struct { - byte huge *data; - word width; - word height; - byte *palette; - word offset; -// byte far *font; -} bitmap_t; - -typedef struct { - byte **data; - word ntiles; /* the number of tiles */ - word twidth; /* width of the tiles */ - word theight; /* height of the tiles */ - byte *palette; /* palette for the tile set */ -} tileset_t; +#include "src/lib/modex16.h" bitmap_t bitmapLoadPcx(char *filename); tileset_t bitmapLoadPcxTiles(char *filename, word twidth, word theight);