diff options
Diffstat (limited to 'Gfx.h')
| -rwxr-xr-x | Gfx.h | 28 |
1 files changed, 28 insertions, 0 deletions
| @@ -0,0 +1,28 @@ | |||
| 1 | /* This is the official place to get screen height | ||
| 2 | and width from | ||
| 3 | */ | ||
| 4 | extern 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 | */ | ||
| 11 | void Gfx_init( void* offscreen, int width, int height ); | ||
| 12 | |||
| 13 | /* Deinitialise Graphics library | ||
| 14 | */ | ||
| 15 | void Gfx_destroy( void ); | ||
| 16 | |||
| 17 | /* Clear offscreen bitmap | ||
| 18 | */ | ||
| 19 | void 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 | */ | ||
| 26 | void Gfx_kuller( int x, int y, int radius, unsigned long r, unsigned long g, unsigned long b ); | ||
| 27 | |||
| 28 | |||
