|
#define | DISPLAY_WIDTH 28 |
|
#define | DISPLAY_HEIGHT 18 |
|
#define | DISPLAY_WIDTH_PX (DISPLAY_WIDTH * TILE_WIDTH) |
|
#define | DISPLAY_HEIGHT_PX (DISPLAY_HEIGHT * TILE_HEIGHT) |
|
#define | TILE_WIDTH 8 |
|
#define | TILE_HEIGHT 8 |
|
#define | TILE_LENGTH 16 |
|
#define | TILE_4BPP_LENGTH 32 |
|
#define | SCR_ATTR_TILE(x) |
|
#define | SCR_ATTR_TILE_MASK (0x1FF) |
|
#define | SCR_ATTR_PALETTE(x) |
|
#define | SCR_ATTR_PALETTE_MASK (0xF << 9) |
|
#define | SCR_ATTR_BANK(x) |
|
#define | SCR_ATTR_BANK_MASK (0x2000) |
|
#define | SCR_ATTR_TILE_EX(x) |
|
#define | SCR_ATTR_TILE_EX_MASK (0x21FF) |
|
#define | SCR_ATTR_TILE_BANK_MASK (SCR_ATTR_TILE_MASK | SCR_ATTR_BANK_MASK) |
|
#define | SCR_ATTR_FLIP_H 0x4000 |
|
#define | SCR_ATTR_FLIP_V 0x8000 |
|
#define | SCR_ATTR_FLIP 0xC000 |
|
#define | SCR_ATTR_FLIP_MASK 0xC000 |
|
#define | SCR_WIDTH 32 |
|
#define | SCR_HEIGHT 32 |
|
#define | SCR_WIDTH_PX (SCR_WIDTH * TILE_WIDTH) |
|
#define | SCR_HEIGHT_PX (SCR_HEIGHT * TILE_HEIGHT) |
|
#define | SPR_ATTR_PALETTE(x) |
|
#define | SPR_ATTR_PALETTE_MASK (0x7 << 9) |
|
#define | SPR_ATTR_INSIDE 0x1000 |
|
#define | SPR_ATTR_PRIORITY 0x2000 |
|
#define | SPR_ATTR_FLIP_H 0x4000 |
|
#define | SPR_ATTR_FLIP_V 0x8000 |
|
#define | SPR_MAX_COUNT 128 |
|
#define | SCR_ENTRY_TILE(x) |
|
#define | SCR_ENTRY_TILE_MASK (0x1FF) |
|
#define | SCR_ENTRY_PALETTE(x) |
|
#define | SCR_ENTRY_PALETTE_MASK (0xF << 9) |
|
#define | SCR_ENTRY_BANK(x) |
|
#define | SCR_ENTRY_BANK_MASK (0x2000) |
|
#define | SCR_ENTRY_TILE_EX(x) |
|
#define | SCR_ENTRY_TILE_EX_MASK (0x21FF) |
|
#define | SCR_ENTRY_TILE_BANK_MASK (SCR_ENTRY_TILE_MASK | SCR_ENTRY_BANK_MASK) |
|
#define | SCR_ENTRY_FLIP_H 0x4000 |
|
#define | SCR_ENTRY_FLIP_V 0x8000 |
|
#define | SCR_ENTRY_FLIP 0xC000 |
|
#define | SCR_ENTRY_FLIP_MASK 0xC000 |
|
#define | ws_scr_entry_t ws_screen_cell_t |
|
#define | SPR_ENTRY_PALETTE(x) |
|
#define | SPR_ENTRY_PALETTE_MASK (0x7 << 9) |
|
#define | SPR_ENTRY_INSIDE 0x1000 |
|
#define | SPR_ENTRY_PRIORITY 0x2000 |
|
#define | SPR_ENTRY_FLIP_H 0x4000 |
|
#define | SPR_ENTRY_FLIP_V 0x8000 |
|
#define | MEM_TILE(i) |
| Pointer to tile.
|
|
#define | MEM_TILE_4BPP(i) |
| Pointer to 4bpp tile.
|
|
#define | MEM_TILE_4BPP_BANK0(i) |
| Pointer to 4bpp tile in bank 0 (0-511).
|
|
#define | MEM_TILE_4BPP_BANK1(i) |
| Pointer to 4bpp tile in bank 1 (512-1023).
|
|
#define | MEM_COLOR_PALETTE(i) |
| Pointer to color palette.
|
|
#define | MEM_SCR_PALETTE MEM_COLOR_PALETTE |
| Pointer to screen color palette.
|
|
#define | MEM_SPR_PALETTE(i) |
| Pointer to sprite color palette.
|
|
#define | SHADE_LUT(c0, c1, c2, c3, c4, c5, c6, c7) |
|
#define | SHADE_LUT_DEFAULT SHADE_LUT(0, 2, 4, 6, 9, 11, 13, 15) |
|
#define | RGB(r, g, b) |
| Create an RGB color.
|
|
|
| __attribute__ ((no_assume_ds_data, no_assume_ss_data, save_all)) void ws_display_set_shade_lut(uint32_t lut) |
| Configure the shade LUT.
|
|
static void | ws_screen_put_tiles (void __wf_iram *dest, const void __far *src, uint16_t x, uint16_t y, uint16_t width, uint16_t height) |
| Place a map of tiles on the screen.
|
|
static void | ws_screen_put_tiles_ex (void __wf_iram *dest, const void __far *src, uint16_t sx, uint16_t sy, uint16_t pitch, uint16_t dx, uint16_t dy, uint16_t width, uint16_t height) |
| Place a map of tiles on the screen. This varianta llows specifying the source X position, Y position and width.
|
|
void | ws_screen_get_tiles (void __far *dest, const void __wf_iram *src, uint16_t x, uint16_t y, uint16_t width, uint16_t height) |
| Copy a map of tiles from the screen.
|
|
void | ws_screen_fill_tiles (void __wf_iram *dest, uint16_t src, uint16_t x, uint16_t y, uint16_t width, uint16_t height) |
| Fill an area on the screen with a given tile.
|
|
void | ws_screen_modify_tiles (void __wf_iram *dest, uint16_t mask, uint16_t value, uint16_t x, uint16_t y, uint16_t width, uint16_t height) |
| Modify an area on the screen with given data.
|
|
static void | ws_screen_put_tile (void __wf_iram *dest, uint16_t src, uint16_t x, uint16_t y) |
| Put a tile on the screen.
|
|
static uint16_t | ws_screen_get_tile (void __wf_iram *src, uint16_t x, uint16_t y) |
| Get a tile on the screen.
|
|
Functionality related to the display.
Definition in file display.h.