comparison OrthancStone/Sources/Viewport/WebGLViewport.h @ 1551:c54bc5bffd01

software rendering
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Aug 2020 22:05:13 +0200
parents 244ad1e4e76a
children 92fca2b3ba3d
comparison
equal deleted inserted replaced
1550:012ab2c1f23b 1551:c54bc5bffd01
29 class WebGLViewport : public WebAssemblyViewport 29 class WebGLViewport : public WebAssemblyViewport
30 { 30 {
31 private: 31 private:
32 OpenGL::WebAssemblyOpenGLContext context_; 32 OpenGL::WebAssemblyOpenGLContext context_;
33 33
34 WebGLViewport(const std::string& canvasId, bool enableEmscriptenMouseEvents); 34 WebGLViewport(const std::string& canvasId,
35 bool enableEmscriptenMouseEvents);
35 36
36 protected: 37 protected:
37 virtual void Paint(ICompositor& compositor, 38 virtual void Paint(ICompositor& compositor,
38 ViewportController& controller) ORTHANC_OVERRIDE; 39 ViewportController& controller) ORTHANC_OVERRIDE;
39 40
41 { 42 {
42 context_.RefreshCanvasSize(); 43 context_.RefreshCanvasSize();
43 } 44 }
44 45
45 public: 46 public:
46 static boost::shared_ptr<WebGLViewport> Create(const std::string& canvasId, bool enableEmscriptenMouseEvents = true); 47 static boost::shared_ptr<WebGLViewport> Create(const std::string& canvasId,
48 bool enableEmscriptenMouseEvents = true);
47 49
48 virtual ~WebGLViewport(); 50 virtual ~WebGLViewport();
49 51
50 bool IsContextLost() 52 bool IsContextLost()
51 { 53 {