From 866a6ca0e749f4446b7fdc7579a6d553df85ec10 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Wed, 5 Jan 2022 14:27:09 -0800 Subject: Moved includes to its own directory --- include/graphics/lfb.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/graphics/lfb.h (limited to 'include/graphics/lfb.h') diff --git a/include/graphics/lfb.h b/include/graphics/lfb.h new file mode 100644 index 0000000..a4eef2e --- /dev/null +++ b/include/graphics/lfb.h @@ -0,0 +1,28 @@ +#ifndef GRAPHICS_LFB_H +#define GRAPHICS_LFB_H + +#define GG_MAX_X 128 +#define GG_MAX_Y 46 + +#ifndef GRAPHICS_LFB_C +extern unsigned int width, height, pitch, isrgb; /* dimensions and channel order */ +#endif + +void lfb_init(void); +void lfb_showpicture(void); + +void clear_screen(void); + +void draw_cbyte(unsigned char lx, unsigned char ly, unsigned char letter, unsigned int c); +void draw_byte(unsigned char lx, unsigned char ly, unsigned char letter); + +void draw_cletter(unsigned char lx, unsigned char ly, unsigned char letter, unsigned int c); +void draw_letter(unsigned char lx, unsigned char ly, unsigned char letter); + +void draw_cstring(unsigned int lx, unsigned int ly, char* s, unsigned int c); +void draw_string(unsigned int lx, unsigned int ly, char* s); + +void draw_chex32(unsigned int lx, unsigned int ly, unsigned long val, unsigned int c); +void draw_hex32(unsigned int lx, unsigned int ly, unsigned long val); + +#endif -- cgit v1.2.1