Mercurial > hg > orthanc-stone
diff Framework/Viewport/WebAssemblyViewport.h @ 905:88bf49aebc13
introduced ICompositor and allow SdlViewport to work with a CairoCompositor (to run on machines without OpenGL drivers)
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 17 Jul 2019 16:56:53 +0200 |
parents | 0aff28f15ea2 |
children | 722ee73e6ba2 |
line wrap: on
line diff
--- a/Framework/Viewport/WebAssemblyViewport.h Wed Jul 17 15:33:34 2019 +0200 +++ b/Framework/Viewport/WebAssemblyViewport.h Wed Jul 17 16:56:53 2019 +0200 @@ -39,25 +39,10 @@ WebAssemblyViewport(const std::string& canvas, boost::shared_ptr<Scene2D>& scene); - virtual void Refresh() - { - compositor_.Refresh(); - } - - virtual unsigned int GetCanvasWidth() const - { - return context_.GetCanvasWidth(); - } - - virtual unsigned int GetCanvasHeight() const - { - return context_.GetCanvasHeight(); - } - // This function must be called each time the browser window is resized void UpdateSize(); - OpenGLCompositor& GetCompositor() + ICompositor& GetCompositor() { return compositor_; }