diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2011-12-31 10:04:46 +0100 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2011-12-31 10:04:46 +0100 |
| commit | 7a36a103aec1c0aafc89a45a4c7fb82944e6baba (patch) | |
| tree | e698f27932240b7b6d7ddc357be02cf4f498d9d5 /src/engine/graphics.h | |
| parent | 8a91bfa1ddff0c99d65375b8b5c57e710169543a (diff) | |
| download | zcatch-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.h | 7 |
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 |