diff options
Diffstat (limited to 'tools/gbagfx/gfx.h')
-rw-r--r-- | tools/gbagfx/gfx.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tools/gbagfx/gfx.h b/tools/gbagfx/gfx.h deleted file mode 100644 index ecd436652..000000000 --- a/tools/gbagfx/gfx.h +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2015 YamaArashi - -#ifndef GFX_H -#define GFX_H - -#include <stdint.h> -#include <stdbool.h> - -struct Color { - unsigned char red; - unsigned char green; - unsigned char blue; -}; - -struct Palette { - struct Color colors[256]; - int numColors; -}; - -struct Image { - int width; - int height; - int bitDepth; - unsigned char *pixels; - bool hasPalette; - struct Palette palette; - bool hasTransparency; -}; - -void ReadImage(char *path, int tilesWidth, int bitDepth, struct Image *image, bool invertColors); -void WriteImage(char *path, int numTiles, int bitDepth, struct Image *image, bool invertColors); -void FreeImage(struct Image *image); -void ReadGbaPalette(char *path, struct Palette *palette); -void WriteGbaPalette(char *path, struct Palette *palette); - -#endif // GFX_H |