comparison Framework/Viewport/ViewportBase.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 685c9a2d115f
comparison
equal deleted inserted replaced
904:ecdb2ceaa925 905:88bf49aebc13
47 { 47 {
48 return identifier_; 48 return identifier_;
49 } 49 }
50 50
51 virtual ScenePoint2D GetPixelCenterCoordinates(int x, int y) const; 51 virtual ScenePoint2D GetPixelCenterCoordinates(int x, int y) const;
52
53 virtual void Refresh()
54 {
55 GetCompositor().Refresh();
56 }
57
58 virtual unsigned int GetCanvasWidth() const
59 {
60 return GetCompositor().GetCanvasWidth();
61 }
62
63 virtual unsigned int GetCanvasHeight() const
64 {
65 return GetCompositor().GetCanvasHeight();
66 }
67
52 }; 68 };
53 } 69 }