diff options
author | Stephane Marchesin <stephane.marchesin@gmail.com> | 2010-04-29 18:13:02 -0700 |
---|---|---|
committer | Stephane Marchesin <stephane.marchesin@gmail.com> | 2010-04-29 18:13:02 -0700 |
commit | a3147fea5e0b2da35e0ededd4f28b2253aa5d607 (patch) | |
tree | 5773e78e67bc10151e2f88db26a6f053c0a1f2cd /draw.h | |
parent | 85597c7a68d92f26c673b75a88acb8bb50f38e61 (diff) |
More draw work.
Diffstat (limited to 'draw.h')
-rw-r--r-- | draw.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |