summaryrefslogtreecommitdiff
path: root/draw.h
diff options
context:
space:
mode:
authorStephane Marchesin <stephane.marchesin@gmail.com>2010-04-29 18:13:02 -0700
committerStephane Marchesin <stephane.marchesin@gmail.com>2010-04-29 18:13:02 -0700
commita3147fea5e0b2da35e0ededd4f28b2253aa5d607 (patch)
tree5773e78e67bc10151e2f88db26a6f053c0a1f2cd /draw.h
parent85597c7a68d92f26c673b75a88acb8bb50f38e61 (diff)
More draw work.
Diffstat (limited to 'draw.h')
-rw-r--r--draw.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/draw.h b/draw.h
index 8a5bf32..399a76a 100644
--- a/draw.h
+++ b/draw.h
@@ -1,6 +1,8 @@
#ifndef _draw_h_
#define _draw_h_
+#include "xenon.h"
+
#define pixelr(x,y) pixels[(screen_rect.w * (y) + (x))*4 + 0]
#define pixelg(x,y) pixels[(screen_rect.w * (y) + (x))*4 + 1]
#define pixelb(x,y) pixels[(screen_rect.w * (y) + (x))*4 + 2]
@@ -17,5 +19,8 @@ xenon_rect;
extern unsigned char* pixels;
extern xenon_rect screen_rect;
+extern void draw_point(GC gc, int x, int y);
+extern void draw_rectangle(GC gc, xenon_rect* r);
+
#endif