gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-support/png2hicolorgb/src/options.h
1 // "options.h"
2
3 #ifndef OPTIONS_H
4 #define OPTIONS_H
5
6 #include <stdbool.h>
7 #include <stdint.h>
8
9 #define BANK_NUM_UNSET 0
10 #define BANK_NUM_MIN 1
11 #define BANK_NUM_MAX 511
12
13 #define OPTION_UNSET 0xFFFF
14
15 #define BGR555_MASK 0x7FFFu
16 #define APPEND_END_COLOR_COUNT (8 * 4); // Add 8 Palettes x 4 Colors each x 2 bytes per color to pal size
17
18 #define OPT_MAP_TILE_ORDER_BY_VRAM_ID false
19 #define OPT_MAP_TILE_SEQUENTIAL_ORDER true
20
21 void opt_set_map_tile_order(bool newval);
22 bool opt_get_map_tile_order(void);
23
24 void opt_set_tile_dedupe(bool newval);
25 bool opt_get_tile_dedupe(void);
26
27 void opt_set_c_file_output(bool newval);
28 bool opt_get_c_file_output(void);
29
30 void opt_set_precompiled_palette(bool newval);
31 bool opt_get_precompiled_palette(void);
32
33 void opt_set_pal_end_bit(bool newval);
34 bool opt_get_pal_end_bit(void);
35
36 void opt_set_enable_pal_end_color(uint16_t end_color_bgr555);
37 bool opt_get_enable_pal_end_color(void);
38 void opt_load_pal_end_color(uint16_t * p_end_color, int * pal_end_color_count);
39
40 void opt_set_bank_num(int newval);
41 int opt_get_bank_num(void);
42
43 #endif
44
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.