#include <stddef.h>
#include <stdint.h>
#include "dungeon.h"
#include "overworld.h"
#include "snes_color.h"
#include "sprite.h"
Go to the source code of this file.
Classes | |
struct | yaze_editor_context |
Extension editor context. More... | |
struct | yaze_project |
Primitive of a Yaze project. More... | |
struct | z3_rom |
Primitive of a Zelda3 ROM. More... | |
struct | yaze_bitmap |
Primitive of a Bitmap. More... | |
struct | yaze_command_registry |
Command registry. More... | |
struct | yaze_event_dispatcher |
Event dispatcher. More... | |
Typedefs | |
typedef struct z3_rom | z3_rom |
typedef struct yaze_project | yaze_project |
typedef struct yaze_command_registry | yaze_command_registry |
typedef struct yaze_event_dispatcher | yaze_event_dispatcher |
typedef struct yaze_editor_context | yaze_editor_context |
Extension editor context. | |
typedef struct yaze_bitmap | yaze_bitmap |
Primitive of a Bitmap. | |
Functions | |
int | yaze_init (yaze_editor_context *) |
Initialize the Yaze library. | |
void | yaze_cleanup (yaze_editor_context *) |
Clean up the Yaze library. | |
yaze_project | yaze_load_project (const char *filename) |
z3_rom * | yaze_load_rom (const char *filename) |
Load a Zelda3 ROM from a file. | |
void | yaze_unload_rom (z3_rom *rom) |
Unload a Zelda3 ROM. | |
yaze_bitmap | yaze_load_bitmap (const char *filename) |
Load a bitmap from a file. | |
snes_color | yaze_get_color_from_paletteset (const z3_rom *rom, int palette_set, int palette, int color) |
Get a color from a palette set. | |
z3_overworld * | yaze_load_overworld (const z3_rom *rom) |
Load the overworld from a Zelda3 ROM. | |
void | yaze_check_version (const char *version) |
Check the version of the Yaze library. | |
typedef struct yaze_editor_context yaze_editor_context |
Extension editor context.
typedef struct yaze_bitmap yaze_bitmap |
Primitive of a Bitmap.
int yaze_init | ( | yaze_editor_context * | yaze_ctx | ) |
Initialize the Yaze library.
Definition at line 18 of file yaze.cc.
References yaze_editor_context::project, yaze_editor_context::rom, yaze_project::rom_filename, and yaze_load_rom().
void yaze_cleanup | ( | yaze_editor_context * | yaze_ctx | ) |
Clean up the Yaze library.
Definition at line 31 of file yaze.cc.
References yaze_editor_context::rom, and yaze_unload_rom().
yaze_project yaze_load_project | ( | const char * | filename | ) |
Definition at line 37 of file yaze.cc.
References yaze_project::filepath.
z3_rom * yaze_load_rom | ( | const char * | filename | ) |
Load a Zelda3 ROM from a file.
Definition at line 43 of file yaze.cc.
References yaze::app::Rom::data(), z3_rom::data, z3_rom::filename, z3_rom::impl, yaze::app::Rom::LoadFromFile(), yaze::app::Rom::size(), and z3_rom::size.
Referenced by BOOST_PYTHON_MODULE(), and yaze_init().
void yaze_unload_rom | ( | z3_rom * | rom | ) |
Unload a Zelda3 ROM.
Definition at line 59 of file yaze.cc.
References z3_rom::impl.
Referenced by BOOST_PYTHON_MODULE(), and yaze_cleanup().
yaze_bitmap yaze_load_bitmap | ( | const char * | filename | ) |
Load a bitmap from a file.
Definition at line 69 of file yaze.cc.
References yaze_bitmap::bpp, yaze_bitmap::data, yaze_bitmap::height, and yaze_bitmap::width.
snes_color yaze_get_color_from_paletteset | ( | const z3_rom * | rom, |
int | palette_set, | ||
int | palette, | ||
int | color ) |
Get a color from a palette set.
Definition at line 78 of file yaze.cc.
References snes_color::blue, snes_color::green, z3_rom::impl, yaze::app::gfx::kPaletteGroupAddressesKeys, yaze::app::Rom::palette_group(), and snes_color::red.
Referenced by BOOST_PYTHON_MODULE().
z3_overworld * yaze_load_overworld | ( | const z3_rom * | rom | ) |
Load the overworld from a Zelda3 ROM.
Definition at line 103 of file yaze.cc.
References z3_overworld_map::id, z3_overworld::impl, z3_rom::impl, and z3_overworld::maps.
void yaze_check_version | ( | const char * | version | ) |
Check the version of the Yaze library.
Definition at line 8 of file yaze.cc.
References yaze::app::core::CheckVersion().
Referenced by BOOST_PYTHON_MODULE().