yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
snes.h
Go to the documentation of this file.
1#ifndef YAZE_INCL_SNES_TILE_H
2#define YAZE_INCL_SNES_TILE_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <stdbool.h>
9#include <stdint.h>
10
14typedef struct snes_color {
15 uint16_t red;
16 uint16_t blue;
17 uint16_t green;
19
23typedef struct snes_palette {
24 unsigned int id;
25 unsigned int size;
28
29typedef struct snes_tile8 {
30 uint32_t id;
31 uint32_t palette_id;
32 uint8_t data[64];
34
42
46
47typedef struct snes_tile32 {
48 uint16_t t0;
49 uint16_t t1;
50 uint16_t t2;
51 uint16_t t3;
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif
Primitive of 16-bit RGB SNES color.
Definition snes.h:14
uint16_t green
Definition snes.h:17
uint16_t red
Definition snes.h:15
uint16_t blue
Definition snes.h:16
Primitive of a SNES color palette.
Definition snes.h:23
unsigned int id
Definition snes.h:24
snes_color * colors
Definition snes.h:26
unsigned int size
Definition snes.h:25
snes_tile_info tiles[4]
Definition snes.h:44
uint16_t t1
Definition snes.h:49
uint16_t t0
Definition snes.h:48
uint16_t t2
Definition snes.h:50
uint16_t t3
Definition snes.h:51
uint32_t id
Definition snes.h:30
uint8_t data[64]
Definition snes.h:32
uint32_t palette_id
Definition snes.h:31
uint8_t palette
Definition snes.h:37
bool priority
Definition snes.h:38
bool vertical_mirror
Definition snes.h:39
uint16_t id
Definition snes.h:36
bool horizontal_mirror
Definition snes.h:40