diff options
Diffstat (limited to 'drivers/include')
| -rw-r--r-- | drivers/include/gfx.h | 14 | ||||
| -rw-r--r-- | drivers/include/gfx_font.h | 4 |
2 files changed, 15 insertions, 3 deletions
diff --git a/drivers/include/gfx.h b/drivers/include/gfx.h index 182428e..42ada32 100644 --- a/drivers/include/gfx.h +++ b/drivers/include/gfx.h @@ -34,18 +34,26 @@ struct vbe_info_t; bool gfx_init(struct vbe_info_t *vbe_mode_info); -void gfx_drawpixel(int x, int y, uint32_t color); +void gfx_drawpixel(int x, int y); -void gfx_drawchar(int x, int y, char c, uint32_t fg, uint32_t bg); +void gfx_drawchar(int x, int y, char ch); void gfx_putchar(char ch); void gfx_puts(const char* str); -void gfx_clear(uint32_t color); +void gfx_clear(void); void gfx_reset(void); +void gfx_set_foreground(uint32_t); + +uint32_t gfx_get_foreground(void); + +void gfx_set_background(uint32_t); + +uint32_t gfx_get_background(void); + extern const uint16_t *gfx_width, *gfx_height; /* this is _BYTES_ per pixel, NOT BITS per pixel! */ diff --git a/drivers/include/gfx_font.h b/drivers/include/gfx_font.h new file mode 100644 index 0000000..f7db9d7 --- /dev/null +++ b/drivers/include/gfx_font.h @@ -0,0 +1,4 @@ +#include <stdint.h> +#define FONT_WIDTH 8 +#define FONT_HEIGHT 12 +extern const uint8_t gfx_font[][FONT_HEIGHT]; |