mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
With permission from the main authors [1], most of the code has been relicensed under the MIT license. SPDX license identifiers are used so that the license headers in source code files aren't too large. Add CONTRIBUTORS.rst file. [1] https://github.com/rednex/rgbds/issues/128 Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
68 lines
924 B
C
68 lines
924 B
C
/*
|
|
* This file is part of RGBDS.
|
|
*
|
|
* Copyright (c) 2013-2018, stag019 and RGBDS contributors.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef RGBDS_GFX_MAIN_H
|
|
#define RGBDS_GFX_MAIN_H
|
|
|
|
#include <png.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "extern/err.h"
|
|
|
|
struct Options {
|
|
bool debug;
|
|
bool verbose;
|
|
bool hardfix;
|
|
bool fix;
|
|
bool horizontal;
|
|
bool unique;
|
|
int trim;
|
|
char *mapfile;
|
|
bool mapout;
|
|
char *palfile;
|
|
bool palout;
|
|
char *outfile;
|
|
char *infile;
|
|
};
|
|
|
|
struct PNGImage {
|
|
png_struct *png;
|
|
png_info *info;
|
|
png_byte **data;
|
|
int width;
|
|
int height;
|
|
png_byte depth;
|
|
png_byte type;
|
|
bool horizontal;
|
|
int trim;
|
|
char *mapfile;
|
|
bool mapout;
|
|
char *palfile;
|
|
bool palout;
|
|
};
|
|
|
|
struct GBImage {
|
|
uint8_t *data;
|
|
int size;
|
|
bool horizontal;
|
|
int trim;
|
|
};
|
|
|
|
struct Tilemap {
|
|
uint8_t *data;
|
|
int size;
|
|
};
|
|
|
|
int depth, colors;
|
|
|
|
#include "gfx/makepng.h"
|
|
#include "gfx/gb.h"
|
|
|
|
#endif /* RGBDS_GFX_MAIN_H */
|