Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/Framework/OpenGL/WebAssemblyOpenGLContext.h Wed Jul 10 15:23:13 2019 +0200 +++ b/Framework/OpenGL/WebAssemblyOpenGLContext.h Wed Jul 10 18:18:42 2019 +0200 @@ -25,7 +25,17 @@ # error Macro ORTHANC_ENABLE_WASM must be defined #endif -#if ORTHANC_ENABLE_WASM == 1 +#if ORTHANC_ENABLE_WASM != 1 +# error This file can only be used if targeting WebAssembly +#endif + +#if !defined(ORTHANC_ENABLE_OPENGL) +# error The macro ORTHANC_ENABLE_OPENGL must be defined +#endif + +#if ORTHANC_ENABLE_OPENGL != 1 +# error Support for OpenGL is disabled +#endif #include "IOpenGLContext.h" @@ -58,5 +68,3 @@ }; } } - -#endif