git.y1.nz

gbdk-2020

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

gbdk-lib/examples/gb/sgb_border/sgb_border.h

      1 #ifndef __SGB_BORDER_H_INCLUDE
      2 #define __SGB_BORDER_H_INCLUDE
      3 
      4 #include <gb/gb.h>
      5 #include <stdint.h>
      6 
      7 #define SNES_RGB(R,G,B) (uint16_t)((B) << 10 | (G) << 5 | (R))
      8 
      9 /** sets SGB border
     10 
     11     The display must be turned on before calling this function
     12     (with @ref DISPLAY_ON).
     13 
     14     When using the SGB with a PAL SNES, a delay should be added
     15     just after program startup such as:
     16 
     17     \code{.c}
     18     // Wait 4 frames
     19     // For PAL SNES this delay is required on startup
     20     for (uint8_t i = 4; i != 0; i--) vsync();
     21     \endcode
     22 */
     23 void set_sgb_border(unsigned char * tiledata, size_t tiledata_size,
     24                     unsigned char * tilemap, size_t tilemap_size,
     25                     unsigned char * palette, size_t palette_size);
     26 
     27 #endif

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