aboutsummaryrefslogtreecommitdiff
path: root/drivers/include
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2015-02-14 10:55:22 -0500
committerFranklin Wei <frankhwei536@gmail.com>2015-02-14 10:55:22 -0500
commitef4cc242dc8ad04320d19af22931fcbdbf670c13 (patch)
tree50af19ff8e207870e2fdbad6d2a9ea669c901da8 /drivers/include
parentca1c4f58224404d4361e8ca16837e48c88c0ee38 (diff)
downloadkappa-ef4cc242dc8ad04320d19af22931fcbdbf670c13.zip
kappa-ef4cc242dc8ad04320d19af22931fcbdbf670c13.tar.gz
kappa-ef4cc242dc8ad04320d19af22931fcbdbf670c13.tar.bz2
kappa-ef4cc242dc8ad04320d19af22931fcbdbf670c13.tar.xz
Stuff
Diffstat (limited to 'drivers/include')
-rw-r--r--drivers/include/gfx.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/include/gfx.h b/drivers/include/gfx.h
index 6f0f171..2abc172 100644
--- a/drivers/include/gfx.h
+++ b/drivers/include/gfx.h
@@ -1,3 +1,6 @@
+#ifndef _GFX_H_
+#define _GFX_H_
+
#include <stdbool.h>
#include <stdint.h>
@@ -67,7 +70,14 @@ void gfx_fillrect(int x1, int y1, int w, int h);
void gfx_drawline(int x1, int y1, int x2, int y2);
+/* these circle algorithms are very fast */
+void gfx_drawcircle(int cx, int cy, int rad);
+
+void gfx_fillcircle(int cx, int cy, int rad);
+
extern const uint16_t *gfx_width, *gfx_height;
/* this is _BYTES_ per pixel, NOT BITS per pixel! */
extern const uint8_t *gfx_bpp;
+
+#endif