libws libws
WSwan hardware library for the Wonderful toolchain
|
#include <stdbool.h>
#include <stdint.h>
#include <wonderful.h>
#include "memory.h"
#include "ports.h"
Go to the source code of this file.
Data Structures | |
struct | ws_display_tile_t |
struct | ws_display_tile_4bpp_t |
struct | ws_sprite_t |
Functions | |
static void | ws_display_set_screen_addresses (const void __wf_iram *scr1_addr, const void __wf_iram *scr2_addr) |
Set the base addresses of screens 1 and 2. | |
static void | ws_display_set_screen_address (uint8_t screen, const void __wf_iram *address) |
Set the base addresses of the specified screen. | |
static void | ws_display_set_sprite_address (const void __wf_iram *address) |
Set the base addresses of the sprite table. | |
static void | ws_display_set_screen2_window (uint8_t x, uint8_t y, uint8_t width, uint8_t height) |
Set the position and size of the screen 2 window. | |
static void | ws_display_set_screen2_window_corners (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom) |
Set the corners of the screen 2 window. | |
static void | ws_display_set_sprite_window (uint8_t x, uint8_t y, uint8_t width, uint8_t height) |
Set the position and size of the sprite window. | |
static void | ws_display_set_sprite_window_corners (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom) |
Set the corners of the sprite window. | |
static void | ws_display_scroll_screen_to (uint8_t screen, uint8_t x, uint8_t y) |
Scroll the specified screen to a specified location. | |
void | ws_display_scroll_screen_by (uint8_t screen, int16_t x, int16_t y) |
Scroll the specified screen by a specified number of pixels. | |
static uint8_t | ws_display_get_current_line (void) |
Get the line currently being drawn to the line buffer. | |
static void | ws_display_scroll_screen1_by (uint8_t x, uint8_t y) |
Scroll screen 1 by a specified number of pixels. | |
static void | ws_display_scroll_screen2_by (uint8_t x, uint8_t y) |
Scroll screen 2 by a specified number of pixels. | |
static void | ws_display_set_icons (uint8_t mask) |
Set the list of displayed LCD icons, clearing any unspecified icons. | |
static void | ws_display_show_icons (uint8_t mask) |
Show specified LCD icons. | |
static void | ws_display_hide_icons (uint8_t mask) |
Hide specified LCD icons. | |
static void | ws_display_toggle_icons (uint8_t mask) |
Toggle specified LCD icons. | |
__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 ws_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 ws_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 ws_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 ws_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 ws_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 ws_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 ws_iram *src, uint16_t x, uint16_t y) |
Get a tile on the screen. |
Functionality related to the display.
Definition in file display.h.