Modified text rendering to something frame based

This commit is contained in:
jaseg 2014-03-07 00:49:16 +01:00
parent 7878aa1d45
commit d16223fd25
7 changed files with 89 additions and 85 deletions

11
host/bdf.h Normal file
View file

@ -0,0 +1,11 @@
#ifndef __MAIN_H__
#define __MAIN_H__
#include "color.h"
#include "font.h"
int framebuffer_get_text_bounds(char *s, glyphtable_t *glyph_table, size_t *outw, size_t *outh);
int framebuffer_render_text(char *s, glyphtable_t *glyph_table, color_t *gbuf, size_t gbufwidth, size_t gbufheight, size_t offx);
void console_render_buffer(color_t *data, size_t w, size_t h);
#endif//__MAIN_H__