comparison Framework/Viewport/WebAssemblyViewport.h @ 910:a6c12fe88bcb

wip: WebAssemblyCairoViewport: still need to implement blit to canvas
author Alain Mazy <alain@mazy.be>
date Thu, 18 Jul 2019 10:39:00 +0200
parents 722ee73e6ba2
children 685c9a2d115f
comparison
equal deleted inserted replaced
909:7a7e4e1f558f 910:a6c12fe88bcb
66 66
67 class WebAssemblyCairoViewport : public WebAssemblyViewport 67 class WebAssemblyCairoViewport : public WebAssemblyViewport
68 { 68 {
69 private: 69 private:
70 CairoCompositor compositor_; 70 CairoCompositor compositor_;
71 std::string canvas_;
71 72
72 public: 73 public:
73 WebAssemblyCairoViewport(const std::string& canvas, 74 WebAssemblyCairoViewport(const std::string& canvas);
74 unsigned int width,
75 unsigned int height);
76 75
77 WebAssemblyCairoViewport(const std::string& canvas, 76 WebAssemblyCairoViewport(const std::string& canvas,
78 boost::shared_ptr<Scene2D>& scene, 77 boost::shared_ptr<Scene2D>& scene);
79 unsigned int width,
80 unsigned int height);
81 78
82 // This function must be called each time the browser window is resized 79 void UpdateSize();
83 void UpdateSize(); // TODO: implement
84 80
85 // TODO: implement Refresh 81 virtual void Refresh();
82
86 virtual ICompositor& GetCompositor() 83 virtual ICompositor& GetCompositor()
87 { 84 {
88 return compositor_; 85 return compositor_;
89 } 86 }
90 }; 87 };