|
libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
|
Go to the source code of this file.
Macros | |
| #define | WWCL_INIT_MODE(disp_ctrl, text_mode, scr1_addr, scr2_addr, spr_addr, reserved_name, reserved_from, reserved_to) |
| #define | WWCL_INIT_MODE_ASCII1() |
| Init mode: screen 2 only, 256 tiles. | |
| #define | WWCL_INIT_MODE_ASCII2() |
| Init mode: screen 1 and 2, 256 tiles. | |
| #define | WWCL_INIT_MODE_JAPANESE1() |
| Init mode: screen 2 only, 512 tiles. | |
| #define | WWCL_INIT_MODE_JAPANESE2() |
| Init mode: screen 1 and 2, 512 tiles. | |
| #define | WWCL_INIT_RESERVE_TILES_2BPP(count) |
| Reserve a specific number (1-1024) of 2bpp tiles for Color mode. | |
| #define | WWCL_INIT_RESERVE_TILES_4BPP(count) |
| Reserve a specific number (1-1024) of 4bpp tiles for Color modes. | |
Functions | |
| void | wwcl_init (void) |
| Initialize the libwwcl library using a memory layout mode. | |
| void | wwcl_init_custom (void) |
| Initialize the libwwcl library using a custom memory layout. | |
| #define WWCL_INIT_MODE | ( | disp_ctrl, | |
| text_mode, | |||
| scr1_addr, | |||
| scr2_addr, | |||
| spr_addr, | |||
| reserved_name, | |||
| reserved_from, | |||
| reserved_to ) |
| #define WWCL_INIT_MODE_ASCII1 | ( | ) |
Init mode: screen 2 only, 256 tiles.
| #define WWCL_INIT_MODE_ASCII2 | ( | ) |
Init mode: screen 1 and 2, 256 tiles.
| #define WWCL_INIT_MODE_JAPANESE1 | ( | ) |
Init mode: screen 2 only, 512 tiles.
| #define WWCL_INIT_MODE_JAPANESE2 | ( | ) |
Init mode: screen 1 and 2, 512 tiles.
| #define WWCL_INIT_RESERVE_TILES_2BPP | ( | count | ) |
Reserve a specific number (1-1024) of 2bpp tiles for Color mode.
By default, WWCL_INIT_MODE reserves up to 512 2bpp tiles:
However, in Color mode, up to 1024 tiles can be used (via the bank bit).
| #define WWCL_INIT_RESERVE_TILES_4BPP | ( | count | ) |
| void wwcl_init | ( | void | ) |
Initialize the libwwcl library using a memory layout mode.
Note that you need to use one of the WWCL_INIT_MODE macros for this call to work properly.
| void wwcl_init_custom | ( | void | ) |
Initialize the libwwcl library using a custom memory layout.
In this mode, display/sprite/sound functions will not work unless you set IO_SCR_BASE, IO_SPR_BASE, etc. manually.