libws libws
WSwan hardware library for the Wonderful toolchain
|
Macros | |
#define | RGB(r, g, b) |
Create an RGB color. | |
Functions | |
__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. | |
#define RGB | ( | r, | |
g, | |||
b ) |
__attribute__ | ( | (no_assume_ds_data, no_assume_ss_data, save_all) | ) |
Configure the shade LUT.
To learn more about the shade LUT, see video_pipeline.
lut | The shade LUT configuration. Usage of the #GRAY_LUT macro is recommended. A default configuration is provided via #GRAY_LUT_DEFAULT . |
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.
dest | Pointer to the destination screen. |
src | The tile to fill the area with. |
x | Destination X position, in tiles. |
y | Destination Y position, in tiles. |
width | Width, in tiles. |
height | Height, in tiles. |
|
inlinestatic |
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.
dest | Pointer to the destination area. |
src | Pointer to the source screen. |
x | Source X position, in tiles. |
y | Source Y position, in tiles. |
width | Width, in tiles. |
height | Height, in tiles. |
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.
dest | Pointer to the destination screen. |
mask | The mask to AND the area with. |
value | The value to OR the area with. |
x | Destination X position, in tiles. |
y | Destination Y position, in tiles. |
width | Width, in tiles. |
height | Height, in tiles. |
|
inlinestatic |
|
inlinestatic |
Place a map of tiles on the screen.
dest | Pointer to the destination screen. |
src | Pointer to the source map. |
x | Destination X position, in tiles. |
y | Destination Y position, in tiles. |
width | Destination width, in tiles (1-32). |
height | Destination height, in tiles (1-32). |
|
inlinestatic |
Place a map of tiles on the screen. This varianta llows specifying the source X position, Y position and width.
dest | Pointer to the destination screen. |
src | Pointer to the source map. |
sx | Source X position, in tiles. |
sy | Source Y position, in tiles. |
pitch | Source width, in tiles. |
dx | Destination X position, in tiles. |
dy | Destination Y position, in tiles. |
width | Destination width, in tiles (1-32). |
height | Destination height, in tiles (1-32). |