libdragon
Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1
7#ifndef __LIBDRAGON_CONSOLE_H
8#define __LIBDRAGON_CONSOLE_H
9
10#include <stdbool.h>
11#include "display.h"
12
50#define RENDER_MANUAL 0
56#define RENDER_AUTOMATIC 1
69#define CONSOLE_WIDTH 64
75#define CONSOLE_HEIGHT 28
83#define TAB_WIDTH 4
84
90#define HORIZONTAL_PADDING 64
91
95#define VERTICAL_PADDING 8
96
97#ifdef __cplusplus
98extern "C" {
99#endif
100
107void console_init();
108
115void console_close();
116
128void console_set_debug(bool debug);
129
143void console_set_render_mode(int mode);
144
150void console_clear();
151
163void console_render();
164
165#ifdef __cplusplus
166}
167#endif
168
/* console */
170
171#endif
Display Subsystem.
void console_render()
Render the console.
Definition console.c:238
void console_close()
Close the console.
Definition console.c:156
void console_init()
Initialize the console.
Definition console.c:136
void console_set_render_mode(int mode)
Set the console rendering mode.
Definition console.c:36
void console_clear()
Clear the console.
Definition console.c:170
void console_set_debug(bool debug)
Send console output to debug channel.
Definition console.c:247