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

      1 #pragma once
      2 #include <vector>
      3 #include "process_arguments.h"
      4 #include "cmp_int_color.h"
      5 using namespace std;
      6 unsigned char GetMapAttribute(size_t x, size_t y);
      7 void ReduceMapAttributes2x2(PNG2AssetData* assetData);
      8 void AlignMapAttributes(PNG2AssetData* assetData);
      9 void PackMapAttributes(PNG2AssetData* assetData);
     10 void HandleMapAttributes( PNG2AssetData* assetData);
     11 
     12 
     13  enum {
     14     CGB_BKGF_PRI      = 0b10000000,  /**< Background CGB BG and Window over Sprite priority Enabled */
     15     CGB_BKGF_YFLIP    = 0b01000000,  /**< Background CGB Y axis flip: Vertically mirrored */
     16     CGB_BKGF_XFLIP    = 0b00100000,  /**< Background CGB X axis flip: Horizontally mirrored */
     17     CGB_BKGF_BANK0    = 0b00000000,  /**< Background CGB Tile VRAM-Bank: Use Bank 0 (CGB Mode Only) */
     18     CGB_BKGF_BANK1    = 0b00001000,  /**< Background CGB Tile VRAM-Bank: Use Bank 1 (CGB Mode Only) */
     19 
     20     CGB_BKGF_CGB_PAL0 = 0b00000000,  /**< Background CGB Palette number (CGB Mode Only) */
     21     CGB_BKGF_CGB_PAL1 = 0b00000001,  /**< Background CGB Palette number (CGB Mode Only) */
     22     CGB_BKGF_CGB_PAL2 = 0b00000010,  /**< Background CGB Palette number (CGB Mode Only) */
     23     CGB_BKGF_CGB_PAL3 = 0b00000011,  /**< Background CGB Palette number (CGB Mode Only) */
     24     CGB_BKGF_CGB_PAL4 = 0b00000100,  /**< Background CGB Palette number (CGB Mode Only) */
     25     CGB_BKGF_CGB_PAL5 = 0b00000101,  /**< Background CGB Palette number (CGB Mode Only) */
     26     CGB_BKGF_CGB_PAL6 = 0b00000110,  /**< Background CGB Palette number (CGB Mode Only) */
     27     CGB_BKGF_CGB_PAL7 = 0b00000111,  /**< Background CGB Palette number (CGB Mode Only) */
     28 };

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