git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

gbdk-support/png2asset/process_arguments.h

      1 #pragma once
      2 
      3 
      4 #include <vector>
      5 #include <string>
      6 #include "vector2.h"
      7 #include "mttile.h"
      8 #include "tiles.h"
      9 #include "metasprites.h"
     10 #include "cmp_int_color.h"
     11 
     12 using namespace std;
     13 
     14 enum {
     15     BANK_NUM_UNSET = -1
     16 };
     17 
     18 
     19 struct PNG2AssetArguments {
     20 
     21     Vector2Size spriteSize;
     22     Vector2Size map_attributes_size;
     23     Vector2Size map_attributes_packed_size;
     24 
     25     Rectangle pivot;
     26 
     27     //default values for some params
     28 
     29     string output_filename_h;
     30     string output_filename_bin;
     31     string output_filename_attributes_bin;
     32     string output_filename_tiles_bin;
     33     string output_filename_palettes_bin;
     34     string data_name;
     35     string output_filename;
     36     string input_filename;
     37     vector<string> source_tilesets;
     38     string entity_tileset_filename;
     39 
     40     size_t max_palettes;
     41 
     42     bool keep_palette_order;
     43     bool repair_indexed_pal;
     44     bool output_binary;
     45     bool output_transposed;
     46     bool export_as_map;
     47     bool use_map_attributes;
     48     bool use_2x2_map_attributes;
     49     bool pack_map_attributes;
     50     bool convert_rgb_to_nes;
     51     bool includeTileData;
     52     bool includedMapOrMetaspriteData;
     53     bool keep_duplicate_tiles;
     54     bool keep_empty_sprite_tiles;
     55     bool include_palettes;
     56     bool use_structs;
     57     bool flip_tiles;
     58     bool relative_paths;
     59     bool use_metafile;
     60 
     61     int errorCode;
     62     int bank;
     63     string area_name;
     64     bool area_specified;
     65     int sprite_mode;
     66     int bpp;
     67     int props_default;  // Default Sprite props has no attributes enabled
     68 
     69     unsigned int tile_origin; // Default to no tile index offset
     70     size_t source_total_color_count;  // Total number of colors (palette_count x colors_per_palette)
     71     unsigned int source_tileset_size;
     72     bool has_source_tilesets;
     73     bool has_entity_tileset;
     74     int processing_mode;  // Whether the current image being processed is a source tileset (MODE_SOURCE_TILESET), entity_tileset (MODE_ENTITY_TILESET), or the main image (MODE_MAIN_IMAGE)
     75 
     76     string args_for_logging_to_output;
     77 
     78     Tile::PackMode pack_mode;
     79     int map_entry_size_bytes;
     80 
     81 };
     82 
     83 
     84 int processPNG2AssetArguments(int argc, char* argv[], PNG2AssetArguments* args);

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.