]> git.defcon.no Git - avrfbosd/blobdiff - draw.h
Added support for drawing characters and strings, updated font with "limited ascii...
[avrfbosd] / draw.h
diff --git a/draw.h b/draw.h
index e7690a45b1bc60e3af30336d8192236b7f10545a..1fbc3e87015d9aa635d27f0197c8edd72d4a8a72 100644 (file)
--- a/draw.h
+++ b/draw.h
@@ -2,6 +2,7 @@
 #define DRAW_H
 
 #include <stdint.h>
+#include <avr/pgmspace.h>
 #include "video_properties.h"
 
 #define c_BLACK  0
@@ -33,5 +34,10 @@ void fill_circle(uint8_t x0, uint8_t y0, uint8_t radius, char c);
 // TODO: WILL need  void draw_bitmap(uint8_t x, uint8_t y, const unsigned char * bmp, uint16_t i = 0, uint8_t width = 0, uint8_t lines = 0);
 // TODO draw_bitmap() will be useful for printing text, as printing text
 // TODO is drawing font elements, and font elements are ... bitmaps.
+void draw_8bpp_bitmap( uint8_t pos_x, uint8_t pos_y, uint8_t width, uint8_t height, const uint8_t* image );
+void pgm_draw_8bpp_bitmap( uint8_t pos_x, uint8_t pos_y, uint8_t width, uint8_t height, const uint8_t* image );
+
+void draw_char ( uint8_t pos_x, uint8_t pos_y, uint8_t ch);
+void draw_string ( uint8_t pos_x, uint8_t pos_y, const char *text);
 
 #endif