summaryrefslogtreecommitdiff
path: root/Gfx.h
diff options
context:
space:
mode:
authorerdgeist <>2003-05-13 12:05:12 +0000
committererdgeist <>2003-05-13 12:05:12 +0000
commit866f0ad8030ea2ceea22a4d61e6ff0006546c3fa (patch)
tree54f3af1248bce246e1dd92b196b818271d21f2f6 /Gfx.h
Here we go
Diffstat (limited to 'Gfx.h')
-rwxr-xr-xGfx.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Gfx.h b/Gfx.h
new file mode 100755
index 0000000..7147742
--- /dev/null
+++ b/Gfx.h
@@ -0,0 +1,28 @@
1/* This is the official place to get screen height
2 and width from
3*/
4extern unsigned long g_width, g_height;
5
6/* Initialise Graphics library
7 - offscreen points to width * height * 4 bytes of
8 offscreen memory
9 - width, height give the dimensions of offscreen
10*/
11void Gfx_init( void* offscreen, int width, int height );
12
13/* Deinitialise Graphics library
14*/
15void Gfx_destroy( void );
16
17/* Clear offscreen bitmap
18*/
19void Gfx_clear( void );
20
21/* Draw one ball to offscreen
22 - x,y position of ball
23 - radius size of ball
24 - r,g,b color of ball [0..255]
25*/
26void Gfx_kuller( int x, int y, int radius, unsigned long r, unsigned long g, unsigned long b );
27
28