libdragon
Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1
9#ifndef __LIBDRAGON_CONSOLE_H
10#define __LIBDRAGON_CONSOLE_H
11
12#include <stdbool.h>
13#include "display.h"
14
52#define RENDER_MANUAL 0
58#define RENDER_AUTOMATIC 1
71#define CONSOLE_WIDTH 64
77#define CONSOLE_HEIGHT 28
85#define TAB_WIDTH 4
86
92#define HORIZONTAL_PADDING 64
93
97#define VERTICAL_PADDING 8
98
99#ifdef __cplusplus
100extern "C" {
101#endif
102
109void console_init();
110
117void console_close();
118
130void console_set_debug(bool debug);
131
145void console_set_render_mode(int mode);
146
152void console_clear();
153
165void console_render();
166
167#ifdef __cplusplus
168}
169#endif
170
/* console */
172
173#endif
Display Subsystem.
void console_render()
Render the console.
Definition console.c:239
void console_close()
Close the console.
Definition console.c:157
void console_init()
Initialize the console.
Definition console.c:137
void console_set_render_mode(int mode)
Set the console rendering mode.
Definition console.c:37
void console_clear()
Clear the console.
Definition console.c:171
void console_set_debug(bool debug)
Send console output to debug channel.
Definition console.c:248