Mercurial > hg > orthanc-stone
diff Framework/Viewport/SdlViewport.h @ 1391:32272ecfc6c2
Drilled a hole through the abstractions to be able to match
an SdlViewport with its SDL window ID to support dispatching
event loop SDL events as viewport/controller/compositor
method calls.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 28 Apr 2020 13:26:41 +0200 |
parents | be614695747d |
children |
line wrap: on
line diff
--- a/Framework/Viewport/SdlViewport.h Tue Apr 28 11:28:00 2020 +0200 +++ b/Framework/Viewport/SdlViewport.h Tue Apr 28 13:26:41 2020 +0200 @@ -119,6 +119,8 @@ return new SdlLock(*this); } + virtual uint32_t GetSdlWindowId() = 0; + virtual void UpdateSize(unsigned int width, unsigned int height) = 0; @@ -148,6 +150,8 @@ virtual ~SdlOpenGLViewport(); + virtual uint32_t GetSdlWindowId() ORTHANC_OVERRIDE; + virtual void Paint() ORTHANC_OVERRIDE; virtual void UpdateSize(unsigned int width, @@ -179,6 +183,8 @@ virtual ~SdlCairoViewport(); + virtual uint32_t GetSdlWindowId() ORTHANC_OVERRIDE; + virtual void Paint() ORTHANC_OVERRIDE; virtual void UpdateSize(unsigned int width,