diff options
Diffstat (limited to 'src/gfx.h')
-rw-r--r-- | src/gfx.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -92,11 +92,27 @@ SDL_Event *GFXGetKey(void); 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); |