comparison Framework/OpenGL/WebAssemblyOpenGLContext.h @ 891:0aff28f15ea2

new abstraction: IViewport
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jul 2019 18:18:42 +0200
parents 7efa2543699d
children 1091b2adeb5a
comparison
equal deleted inserted replaced
890:77c96ba899f9 891:0aff28f15ea2
23 23
24 #if !defined(ORTHANC_ENABLE_WASM) 24 #if !defined(ORTHANC_ENABLE_WASM)
25 # error Macro ORTHANC_ENABLE_WASM must be defined 25 # error Macro ORTHANC_ENABLE_WASM must be defined
26 #endif 26 #endif
27 27
28 #if ORTHANC_ENABLE_WASM == 1 28 #if ORTHANC_ENABLE_WASM != 1
29 # error This file can only be used if targeting WebAssembly
30 #endif
31
32 #if !defined(ORTHANC_ENABLE_OPENGL)
33 # error The macro ORTHANC_ENABLE_OPENGL must be defined
34 #endif
35
36 #if ORTHANC_ENABLE_OPENGL != 1
37 # error Support for OpenGL is disabled
38 #endif
29 39
30 #include "IOpenGLContext.h" 40 #include "IOpenGLContext.h"
31 41
32 #include <boost/shared_ptr.hpp> 42 #include <boost/shared_ptr.hpp>
33 43
56 66
57 const std::string& GetCanvasIdentifier() const; 67 const std::string& GetCanvasIdentifier() const;
58 }; 68 };
59 } 69 }
60 } 70 }
61
62 #endif