summaryrefslogtreecommitdiff
path: root/src/gfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfx.h')
-rw-r--r--src/gfx.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gfx.h b/src/gfx.h
index baa19d2..d3f1ec3 100644
--- a/src/gfx.h
+++ b/src/gfx.h
@@ -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);