]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/bitmap.h
pngwen help!!!!
[16.git] / src / lib / bitmap.h
index c11a5d6f667b645e4025bf8cf4e52424c95872d7..f1b126e5f28b9be9f8b67cba978fe3cd270359d6 100644 (file)
@@ -2,21 +2,24 @@
  * Functions and types for loading and manipulating bitmaps.\r
  */\r
 #ifndef BITMAP_H\r
-#define BITMAP_H\r
-#include "src\lib\types.h"\r
+#define BITMAP_H
+#include "src/lib/types.h"
+#include "src/lib/lib_head.h"
+\r
 typedef struct {\r
-    byte *data;\r
-    word width;\r
-    word height;\r
-    byte *palette;\r
+       byte *data;
+       word width;\r
+       word height;\r
+       byte *palette;
+       word offset;
 } bitmap_t;\r
 \r
 typedef struct {\r
-    byte **data;\r
-    word ntiles;   /* the number of tiles */\r
-    word twidth;   /* width of the tiles */\r
-    word theight;  /* height of the tiles */\r
-    byte *palette; /* palette for the tile set */\r
+       byte **data;\r
+       word ntiles;   /* the number of tiles */\r
+       word twidth;   /* width of the tiles */\r
+       word theight;  /* height of the tiles */\r
+       byte *palette; /* palette for the tile set */\r
 } tileset_t;\r
 \r
 bitmap_t bitmapLoadPcx(char *filename);\r