From 2fc6cc22a29a53dc5127eafa2719d11e9bb38c42 Mon Sep 17 00:00:00 2001 From: Ian C Date: Thu, 22 Jan 2004 02:38:13 +0000 Subject: Updated with various bits from espec (memory menu, GUI, etc) --- src/gfx.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'src/gfx.h') diff --git a/src/gfx.h b/src/gfx.h index 14394d8..f700cb2 100644 --- a/src/gfx.h +++ b/src/gfx.h @@ -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); -- cgit v1.2.3