Mercurial > hg > orthanc-stone
comparison Framework/OpenGL/WebAssemblyOpenGLContext.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 | 7fad86d62135 |
comparison
equal
deleted
inserted
replaced
1044:b60d70e8b55c | 1045:6a9300ecfa13 |
---|---|
36 #if ORTHANC_ENABLE_OPENGL != 1 | 36 #if ORTHANC_ENABLE_OPENGL != 1 |
37 # error Support for OpenGL is disabled | 37 # error Support for OpenGL is disabled |
38 #endif | 38 #endif |
39 | 39 |
40 #include "IOpenGLContext.h" | 40 #include "IOpenGLContext.h" |
41 #include "IOpenGLContextLossMonitor.h" | |
41 | 42 |
42 #include <Core/Enumerations.h> | 43 #include <Core/Enumerations.h> |
43 | 44 |
44 #include <boost/shared_ptr.hpp> | 45 #include <boost/shared_ptr.hpp> |
45 | 46 |
46 namespace OrthancStone | 47 namespace OrthancStone |
47 { | 48 { |
48 namespace OpenGL | 49 namespace OpenGL |
49 { | 50 { |
50 class WebAssemblyOpenGLContext : public OpenGL::IOpenGLContext | 51 class WebAssemblyOpenGLContext : |
52 public OpenGL::IOpenGLContext, | |
53 public OpenGL::IOpenGLContextLossMonitor | |
51 { | 54 { |
52 private: | 55 private: |
53 class PImpl; | 56 class PImpl; |
54 boost::shared_ptr<PImpl> pimpl_; | 57 boost::shared_ptr<PImpl> pimpl_; |
55 | 58 |