diff options
author | Ian C <ianc@noddybox.co.uk> | 2004-01-22 02:38:13 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2004-01-22 02:38:13 +0000 |
commit | 2fc6cc22a29a53dc5127eafa2719d11e9bb38c42 (patch) | |
tree | d7e1c1ff902b2cb6469355c1750f1e93f42d1155 /src/gfx.h | |
parent | fc438b5afe5b6126d5cae3dd3586e608bc7a4925 (diff) |
Updated with various bits from espec (memory menu, GUI, etc)
Diffstat (limited to 'src/gfx.h')
-rw-r--r-- | src/gfx.h | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -41,6 +41,11 @@ #define FONT_CURSOR '\007' #define FONT_COPYRIGHT '\010' +/* The size of the display +*/ +#define GFX_WIDTH 320 +#define GFX_HEIGHT 200 + /* ---------------------------------------- INTERFACES */ @@ -87,16 +92,32 @@ void GFXKeyRepeat(int repeat); SDL_Event *GFXGetKey(void); -/* Wait for a keypress (key up event) +/* Wait for a keypress. Note that key up events are returned. */ SDL_Event *GFXWaitKey(void); +/* Lock the screen for updates +*/ +void GFXLock(void); + + +/* Unlock the screen following updates +*/ +void GFXUnlock(void); + + /* Note that no bound checking (except for GFXPrint()) is done - it is the callers responsibility to plot onscreen. */ +/* Plot a point without locking. GFXLock() and GFXUnlock() MUST surround + calls to this +*/ +void GFXFastPlot(int x, int y, Uint32 col); + + /* Plot a point */ void GFXPlot(int x, int y, Uint32 col); |