Mercurial > hg > orthanc-stone
comparison Framework/Viewport/SdlViewport.h @ 907:722ee73e6ba2
cleanup + started to implement WebAssemblyCairoViewport (wip)
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 18 Jul 2019 09:19:39 +0200 |
parents | 88bf49aebc13 |
children | 7a7e4e1f558f |
comparison
equal
deleted
inserted
replaced
905:88bf49aebc13 | 907:722ee73e6ba2 |
---|---|
55 : ViewportBase(identifier, scene) | 55 : ViewportBase(identifier, scene) |
56 { | 56 { |
57 | 57 |
58 } | 58 } |
59 | 59 |
60 | |
61 virtual SdlWindow& GetWindow() = 0; | 60 virtual SdlWindow& GetWindow() = 0; |
62 }; | 61 }; |
63 | 62 |
64 class SdlOpenGLViewport : public SdlViewport | 63 class SdlOpenGLViewport : public SdlViewport |
65 { | 64 { |
87 | 86 |
88 virtual SdlWindow& GetWindow() | 87 virtual SdlWindow& GetWindow() |
89 { | 88 { |
90 return context_.GetWindow(); | 89 return context_.GetWindow(); |
91 } | 90 } |
92 // SdlOpenGLContext& GetContext() | |
93 // { | |
94 // return context_; | |
95 // } | |
96 }; | 91 }; |
97 | 92 |
98 | 93 |
99 class SdlCairoViewport : public SdlViewport | 94 class SdlCairoViewport : public SdlViewport |
100 { | 95 { |