comparison Framework/OpenGL/OpenGLIncludes.h @ 607:f4b37a991dac

using glew to build on Windows
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 29 Apr 2019 16:41:40 +0200
parents f9ac154c5a63
children 1091b2adeb5a
comparison
equal deleted inserted replaced
606:d9c0a66304cb 607:f4b37a991dac
31 31
32 #if defined(__APPLE__) 32 #if defined(__APPLE__)
33 # include <OpenGL/gl.h> 33 # include <OpenGL/gl.h>
34 # include <OpenGL/glext.h> 34 # include <OpenGL/glext.h>
35 #elif defined(_WIN32) 35 #elif defined(_WIN32)
36 // On Windows, use the compatibility headers provided by SDL 36 // On Windows, use the compatibility headers provided by glew
37 # if ORTHANC_ENABLE_SDL == 1 37 # include <GL/glew.h>
38 # include <SDL_opengl.h>
39 # else
40 # error Stone cannot be compiled on Windows without SDL
41 # endif
42 #else 38 #else
43 # include <GL/gl.h> 39 # include <GL/gl.h>
44 # include <GL/glext.h> 40 # include <GL/glext.h>
45 #endif 41 #endif