Go to the documentation of this file. 7 #define VTK_MODULE_USE_EXTERNAL_vtkglew 0 10 #define VTK_OPENGL_ES_VERSION 30 13 #define VTK_MODULE_vtkglew_GLES3 0 16 #define GLES_SILENCE_DEPRECATION 17 #include "TargetConditionals.h" 20 #define VTK_GLEW_SHARED 1 21 #if !VTK_GLEW_SHARED && !defined(GLEW_STATIC) 25 #if VTK_MODULE_vtkglew_GLES3 26 #include <GLES3/gl3.h> 27 #elif TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR 28 #include <OpenGLES/ES3/gl.h> 29 #elif VTK_MODULE_USE_EXTERNAL_vtkglew 35 #include <vtkglew/include/GL/glew.h> 37 #include <vtkglew/include/GL/wglew.h> 42 #ifdef GL_ES_VERSION_3_0 43 #define GL_BACK_LEFT GL_BACK 44 #define GL_BACK_RIGHT GL_BACK 45 #define GL_FRONT_LEFT GL_FRONT 46 #define GL_FRONT_RIGHT GL_FRONT 49 #define glMultiDrawElements(mode, counts, type, indicies, primcount) \ 50 for (size_t eCount = 0; eCount < primcount; ++eCount) \ 52 glDrawElements(mode, *(counts + eCount), type, (GLvoid*)(indicies[eCount])); \ 57 #ifdef GL_ES_VERSION_3_0 58 #define GLEW_ARB_vertex_array_object 1 59 #define GLEW_ARB_instanced_arrays 1