yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze_rom.h
Go to the documentation of this file.
1#ifndef YAZE_ROM_H
2#define YAZE_ROM_H
3
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#include <stdint.h>
14
15#include "yaze_errors.h"
16#include "yaze_graphics.h"
17#include "zelda.h"
18
29zelda3_rom* yaze_load_rom_file(const char* filename);
30
40
49yaze_status yaze_get_rom_info(const zelda3_rom* rom, zelda3_version* version, uint64_t* size);
50
58snes_palette* yaze_load_palette_from_rom(const zelda3_rom* rom, uint16_t palette_id);
59
68snes_tile8 yaze_load_tile_from_rom(const zelda3_rom* rom, uint32_t tile_id, uint8_t bpp);
69
82 int palette_set, int palette,
83 int color);
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif // YAZE_ROM_H
zelda3_version
Different versions of the game supported by YAZE.
Definition zelda.h:33
SNES color in 15-bit RGB format (BGR555)
SNES color palette.
8x8 SNES tile data
ROM data structure.
Definition zelda.h:210
Status codes and error helpers for the YAZE public API.
yaze_status
Status codes returned by YAZE functions.
Definition yaze_errors.h:19
Bitmap, palette, and tile helpers for the YAZE public API.
yaze_status yaze_validate_rom(const zelda3_rom *rom)
Validate ROM integrity.
snes_palette * yaze_load_palette_from_rom(const zelda3_rom *rom, uint16_t palette_id)
Load palette from ROM.
snes_tile8 yaze_load_tile_from_rom(const zelda3_rom *rom, uint32_t tile_id, uint8_t bpp)
Load tile data from ROM.
zelda3_rom * yaze_load_rom_file(const char *filename)
Load a ROM file.
yaze_status yaze_get_rom_info(const zelda3_rom *rom, zelda3_version *version, uint64_t *size)
Get ROM information.
snes_color yaze_get_color_from_paletteset(const zelda3_rom *rom, int palette_set, int palette, int color)
Get a color from a palette set.
Definition yaze.cc:191
The Legend of Zelda: A Link to the Past - Data Structures and Constants.