32#define YAZE_VERSION_STRING "0.3.2"
35#define YAZE_VERSION_NUMBER 302
373 int palette_set,
int palette,
553#define YAZE_EXT_CAP_ROM_EDITING (1 << 0)
554#define YAZE_EXT_CAP_GRAPHICS (1 << 1)
555#define YAZE_EXT_CAP_AUDIO (1 << 2)
556#define YAZE_EXT_CAP_SCRIPTING (1 << 3)
557#define YAZE_EXT_CAP_IMPORT_EXPORT (1 << 4)
yaze_status yaze_library_init(void)
Initialize the YAZE library.
int yaze_app_main(int argc, char **argv)
Main entry point for the YAZE application.
int yaze_get_version_number(void)
Get the current YAZE version number.
const char * yaze_get_version_string(void)
Get the current YAZE version string.
yaze_status
Status codes returned by YAZE functions.
bool yaze_check_version_compatibility(const char *expected_version)
Check if the current YAZE version is compatible with the expected version.
yaze_status yaze_shutdown(yaze_editor_context *context)
Shutdown and clean up a YAZE editor context.
yaze_status yaze_init(yaze_editor_context *context, const char *rom_filename)
Initialize a YAZE editor context.
const char * yaze_status_to_string(yaze_status status)
Convert a status code to a human-readable string.
void yaze_library_shutdown(void)
Shutdown the YAZE library.
@ YAZE_ERROR_FILE_NOT_FOUND
@ YAZE_ERROR_NOT_INITIALIZED
void yaze_free_rooms(zelda3_dungeon_room *rooms, int room_count)
Free dungeon room data.
const zelda3_dungeon_room * yaze_load_room(const zelda3_rom *rom, int room_id)
Load a specific dungeon room.
zelda3_dungeon_room * yaze_load_all_rooms(const zelda3_rom *rom, int *room_count)
Load all dungeon rooms from ROM.
yaze_status yaze_unregister_extension(const char *name)
Unregister an extension.
yaze_status yaze_register_extension(const yaze_extension *extension)
Register an extension with YAZE.
snes_color yaze_rgb_to_snes_color(uint8_t r, uint8_t g, uint8_t b)
Convert RGB888 color to SNES color.
snes_palette * yaze_load_palette_from_rom(const zelda3_rom *rom, uint16_t palette_id)
Load palette from ROM.
yaze_bitmap yaze_load_bitmap(const char *filename)
Load a bitmap from file.
snes_tile8 yaze_load_tile_from_rom(const zelda3_rom *rom, uint32_t tile_id, uint8_t bpp)
Load tile data from ROM.
snes_palette * yaze_create_palette(uint16_t id, uint16_t size)
Create an empty palette.
snes_tile8 yaze_convert_tile_bpp(const snes_tile8 *tile, uint8_t from_bpp, uint8_t to_bpp)
Convert tile data between different bit depths.
yaze_bitmap yaze_create_bitmap(int width, int height, uint8_t bpp)
Create an empty bitmap.
void yaze_free_bitmap(yaze_bitmap *bitmap)
Free bitmap data.
void yaze_free_palette(snes_palette *palette)
Free palette memory.
void yaze_snes_color_to_rgb(snes_color color, uint8_t *r, uint8_t *g, uint8_t *b)
Convert SNES color to RGB888.
void yaze_free_messages(zelda3_message *messages, int message_count)
Free message data.
yaze_status yaze_load_messages(const zelda3_rom *rom, zelda3_message **messages, int *message_count)
Load all text messages from ROM.
const zelda3_message * yaze_get_message(const zelda3_rom *rom, int message_id)
Get a specific message by ID.
zelda3_overworld * yaze_load_overworld(const zelda3_rom *rom)
Load the overworld from ROM.
int yaze_get_overworld_map_count(const zelda3_overworld *overworld)
Get total number of overworld maps.
void yaze_free_overworld(zelda3_overworld *overworld)
Free overworld data.
const zelda3_overworld_map * yaze_get_overworld_map(const zelda3_overworld *overworld, int map_index)
Get overworld map by index.
zelda3_version
Different versions of the game supported by YAZE.
yaze_status yaze_validate_rom(const zelda3_rom *rom)
Validate ROM integrity.
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.
SNES color in 15-bit RGB format (BGR555)
const char * error_message
Extension interface for YAZE.
void(* cleanup)(void)
Clean up the extension.
uint32_t(* get_capabilities)(void)
Get extension capabilities.
yaze_status(* initialize)(yaze_editor_context *context)
Initialize the extension.
Complete dungeon room data.
In-game text message data.
void(* yaze_cleanup_func)(void)
void(* yaze_initialize_func)(yaze_editor_context *context)
Function pointer to initialize the extension.
The Legend of Zelda: A Link to the Past - Data Structures and Constants.