altos/draw: Convert draw test framework to modern C
[fw/altos] / src / draw / ao_draw.h
index 36524f98476033ff3edf6061429b59df4fb944e2..fbbc61c419cc909653c149ad7aaf92c2b707154a 100644 (file)
@@ -26,6 +26,10 @@ struct ao_bitmap {
        int16_t         height; /* in pixels */
 };
 
+struct ao_coord {
+       float   x, y;
+};
+
 struct ao_pattern {
        uint8_t         pattern[8];
 };
@@ -87,6 +91,13 @@ ao_line(const struct ao_bitmap       *dst,
        uint32_t                fill,
        uint8_t                 rop);
 
+void
+ao_poly(const struct ao_bitmap *dst,
+       const struct ao_coord   *coords,
+       uint16_t                ncoords,
+       uint32_t                fill,
+       uint8_t                 rop);
+
 void
 ao_text(const struct ao_bitmap *dst,
        const struct ao_font    *font,
@@ -96,6 +107,12 @@ ao_text(const struct ao_bitmap      *dst,
        uint32_t                fill,
        uint8_t                 rop);
 
+void
+ao_logo(const struct ao_bitmap *dst,
+       const struct ao_font    *font,
+       uint32_t                fill,
+       uint8_t                 rop);
+
 extern const struct ao_font FrutigerLT_Roman_50_font;
 
 #define AO_SHIFT       5