libwsx libwsx
WSwan extra library for the Wonderful toolchain
Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1
20
21#ifndef LIBWSX_CONSOLE_H_
22#define LIBWSX_CONSOLE_H_
23
24#include <stdint.h>
25#include <wonderful.h>
26#include <ws.h>
27
31
32#define WSX_CONSOLE_SCREEN1 0
33#define WSX_CONSOLE_SCREEN2 4
34
35typedef struct wsx_console_config {
36 uint16_t tile_offset;
37 uint8_t char_start;
38 uint8_t char_count;
39 uint8_t screen;
40 uint8_t palette;
42
43void wsx_console_putc(uint8_t c);
45void wsx_console_init(wsx_console_config_t __wf_cram *config);
46void wsx_console_init_default(void __wf_iram *screen_buffer);
47
48#endif /* LIBWSX_CONSOLE_H_ */
struct wsx_console_config wsx_console_config_t
void wsx_console_clear(void)
void wsx_console_init_default(void __wf_iram *screen_buffer)
void wsx_console_init(wsx_console_config_t __wf_cram *config)
void wsx_console_putc(uint8_t c)
uint8_t palette
Palette index to use (0-15).
Definition console.h:40
uint8_t char_start
The character represented by the first tile.
Definition console.h:37
uint16_t tile_offset
The index of the first tile used by the console.
Definition console.h:36
uint8_t char_count
The number of characters represented by the tileset. (0 means 256)
Definition console.h:38
uint8_t screen
Screen to use (WSX_CONSOLE_SCREEN1 or WSX_CONSOLE_SCREEN2).
Definition console.h:39