comparison Framework/Viewport/SdlViewport.h @ 1045:6a9300ecfa13

tests for context loss are now restricted to WebAssembly
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Oct 2019 17:17:56 +0200
parents a7351ad54960
children efc5b62b9539
comparison
equal deleted inserted replaced
1044:b60d70e8b55c 1045:6a9300ecfa13
85 virtual SdlWindow& GetWindow() ORTHANC_OVERRIDE 85 virtual SdlWindow& GetWindow() ORTHANC_OVERRIDE
86 { 86 {
87 return context_.GetWindow(); 87 return context_.GetWindow();
88 } 88 }
89 89
90 virtual void* DebugGetInternalContext() const ORTHANC_OVERRIDE;
91
92 virtual bool IsContextLost() ORTHANC_OVERRIDE;
93 bool OpenGLContextLost();
94 bool OpenGLContextRestored();
95
96 virtual void UpdateSize(unsigned int width, unsigned int height) ORTHANC_OVERRIDE 90 virtual void UpdateSize(unsigned int width, unsigned int height) ORTHANC_OVERRIDE
97 { 91 {
98 // nothing to do in OpenGL, the OpenGLCompositor::UpdateSize will be called automatically 92 // nothing to do in OpenGL, the OpenGLCompositor::UpdateSize will be called automatically
99 } 93 }
100 virtual void Refresh() ORTHANC_OVERRIDE; 94 virtual void Refresh() ORTHANC_OVERRIDE;
101 95
102 protected: 96 protected:
103 virtual void DisableCompositor() ORTHANC_OVERRIDE;
104 virtual void RestoreCompositor() ORTHANC_OVERRIDE;
105
106 virtual ICompositor* GetCompositor() ORTHANC_OVERRIDE 97 virtual ICompositor* GetCompositor() ORTHANC_OVERRIDE
107 { 98 {
108 return compositor_.get(); 99 return compositor_.get();
109 } 100 }
110 }; 101 };
134 virtual SdlWindow& GetWindow() ORTHANC_OVERRIDE 125 virtual SdlWindow& GetWindow() ORTHANC_OVERRIDE
135 { 126 {
136 return window_; 127 return window_;
137 } 128 }
138 129
139 virtual void DisableCompositor() ORTHANC_OVERRIDE;
140 virtual void RestoreCompositor() ORTHANC_OVERRIDE;
141
142 virtual void Refresh() ORTHANC_OVERRIDE; 130 virtual void Refresh() ORTHANC_OVERRIDE;
143 131
144 virtual void UpdateSize(unsigned int width, 132 virtual void UpdateSize(unsigned int width,
145 unsigned int height) ORTHANC_OVERRIDE; 133 unsigned int height) ORTHANC_OVERRIDE;
146 protected: 134 protected: