From 866f0ad8030ea2ceea22a4d61e6ff0006546c3fa Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 13 May 2003 12:05:12 +0000 Subject: Here we go --- Gfx.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 Gfx.h (limited to 'Gfx.h') diff --git a/Gfx.h b/Gfx.h new file mode 100755 index 0000000..7147742 --- /dev/null +++ b/Gfx.h @@ -0,0 +1,28 @@ +/* This is the official place to get screen height + and width from +*/ +extern unsigned long g_width, g_height; + +/* Initialise Graphics library + - offscreen points to width * height * 4 bytes of + offscreen memory + - width, height give the dimensions of offscreen +*/ +void Gfx_init( void* offscreen, int width, int height ); + +/* Deinitialise Graphics library +*/ +void Gfx_destroy( void ); + +/* Clear offscreen bitmap +*/ +void Gfx_clear( void ); + +/* Draw one ball to offscreen + - x,y position of ball + - radius size of ball + - r,g,b color of ball [0..255] +*/ +void Gfx_kuller( int x, int y, int radius, unsigned long r, unsigned long g, unsigned long b ); + + -- cgit v1.2.3