#include "yaze.h"
#include <cstdio>
#include "app/rom.h"
#include "app/zelda3/overworld/overworld.h"
Go to the source code of this file.
Functions | |
void | yaze_check_version (const char *version) |
Check the version of the Yaze library. | |
int | yaze_init (yaze_editor_context *yaze_ctx) |
Initialize the Yaze library. | |
void | yaze_cleanup (yaze_editor_context *yaze_ctx) |
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.
Definition at line 8 of file yaze.cc.
References yaze::app::core::CheckVersion().
Referenced by BOOST_PYTHON_MODULE().
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.