libwsx
libwsx
WSwan extra library for the Wonderful toolchain
Toggle main menu visibility
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
35
typedef
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
;
41
}
wsx_console_config_t
;
42
43
void
wsx_console_putc
(uint8_t c);
44
void
wsx_console_clear
(
void
);
45
void
wsx_console_init
(
wsx_console_config_t
__wf_cram *config);
46
void
wsx_console_init_default
(
void
__wf_iram *screen_buffer);
47
48
#endif
/* LIBWSX_CONSOLE_H_ */
wsx_console_config_t
struct wsx_console_config wsx_console_config_t
wsx_console_clear
void wsx_console_clear(void)
wsx_console_init_default
void wsx_console_init_default(void __wf_iram *screen_buffer)
wsx_console_init
void wsx_console_init(wsx_console_config_t __wf_cram *config)
wsx_console_putc
void wsx_console_putc(uint8_t c)
wsx_console_config
Definition
console.h:35
wsx_console_config::palette
uint8_t palette
Palette index to use (0-15).
Definition
console.h:40
wsx_console_config::char_start
uint8_t char_start
The character represented by the first tile.
Definition
console.h:37
wsx_console_config::tile_offset
uint16_t tile_offset
The index of the first tile used by the console.
Definition
console.h:36
wsx_console_config::char_count
uint8_t char_count
The number of characters represented by the tileset. (0 means 256).
Definition
console.h:38
wsx_console_config::screen
uint8_t screen
Screen to use (WSX_CONSOLE_SCREEN1 or WSX_CONSOLE_SCREEN2).
Definition
console.h:39
include
wsx
console.h
Generated by
1.18.0