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/png2asset.h

      1 #pragma once
      2 
      3 
      4 #include <vector>
      5 #include <string>
      6 #include "vector2.h"
      7 #include "mttile.h"
      8 #include "metasprites.h"
      9 #include "cmp_int_color.h"
     10 #include "tiles.h"
     11 #include "png_image.h"
     12 #include "process_arguments.h"
     13 using namespace std;
     14 
     15 class PNG2AssetData {
     16 
     17 public:
     18 
     19     int Execute(PNG2AssetArguments* arguments, string  input_filename);
     20     int Export();
     21 
     22     int errorCode;
     23 
     24     PNG2AssetArguments* args;
     25 
     26     vector< SetPal > palettes;
     27     vector< Tile > tiles;
     28     vector< Tile > entity_tiles;
     29     vector< MetaSprite > sprites;
     30     vector< unsigned char > map;
     31     vector< unsigned char > map_attributes;
     32     PNGImage image;
     33 
     34 };
     35 
     36 
     37 bool FindTile(const Tile& t, size_t& idx, unsigned char& props, vector< Tile > & tiles, PNG2AssetData* assetData);

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