Added font renderer and terminal emulator
This commit is contained in:
parent
bc4ec556e2
commit
dd4fda27bb
22 changed files with 1921 additions and 5151 deletions
|
@ -21,6 +21,21 @@
|
|||
#define _UI_UI_H
|
||||
|
||||
#include <ui/framebuffer.h>
|
||||
#include <ui/terminal.h>
|
||||
#include <ui/font.h>
|
||||
|
||||
// this is so hacky... but it works
|
||||
#ifdef FONT_IMPLEMENTATION
|
||||
#include <lib/string.h>
|
||||
#include <mm/mman.h>
|
||||
|
||||
#define SSFN_memcmp memcmp
|
||||
#define SSFN_memset memset
|
||||
#define SSFN_realloc mem_realloc
|
||||
#define SSFN_free mem_free
|
||||
#define SSFN_IMPLEMENTATION
|
||||
#endif
|
||||
#include <ui/ssfn.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -29,6 +44,13 @@ struct ui_context {
|
|||
struct fb_mode *fb_modes;
|
||||
int total_modes;
|
||||
int current_mode;
|
||||
int ui;
|
||||
|
||||
struct terminal terminal;
|
||||
|
||||
ssfn_t font;
|
||||
ssfn_buf_t font_buf;
|
||||
char *font_file;
|
||||
};
|
||||
|
||||
void ui_init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue