summaryrefslogtreecommitdiff
path: root/src/gfx.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2003-12-24 18:19:00 +0000
committerIan C <ianc@noddybox.co.uk>2003-12-24 18:19:00 +0000
commit6a86fc4668ce7e213330bb78aff45c578e159f54 (patch)
tree360d7295ff108f6408ab740ff297fb99468faa08 /src/gfx.h
parent33dfea1c74749124379ef8052f0689577ebe68ff (diff)
devel snapshot
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);