about summary refs log tree commit diff
path: root/src/engine/graphics.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2011-12-31 10:04:46 +0100
committerMagnus Auvinen <magnus.auvinen@gmail.com>2011-12-31 10:04:46 +0100
commit7a36a103aec1c0aafc89a45a4c7fb82944e6baba (patch)
treee698f27932240b7b6d7ddc357be02cf4f498d9d5 /src/engine/graphics.h
parent8a91bfa1ddff0c99d65375b8b5c57e710169543a (diff)
downloadzcatch-7a36a103aec1c0aafc89a45a4c7fb82944e6baba.tar.gz
zcatch-7a36a103aec1c0aafc89a45a4c7fb82944e6baba.zip
fixed so that the rendering can be done async from the input, network and update
Diffstat (limited to 'src/engine/graphics.h')
-rw-r--r--src/engine/graphics.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/engine/graphics.h b/src/engine/graphics.h
index cbc6a331..1c79ee15 100644
--- a/src/engine/graphics.h
+++ b/src/engine/graphics.h
@@ -5,6 +5,8 @@
 
 #include "kernel.h"
 
+#include <base/tl/threading.h>
+
 class CImageInfo
 {
 public:
@@ -132,6 +134,11 @@ public:
 	virtual int GetVideoModes(CVideoMode *pModes, int MaxModes) = 0;
 
 	virtual void Swap() = 0;
+
+	// syncronization
+	virtual void InsertSignal(semaphore *pSemaphore) = 0;
+	virtual bool IsIdle() = 0;
+	virtual void WaitForIdle() = 0;
 };
 
 class IEngineGraphics : public IGraphics