VTK  9.0.1
vtkOpenGL.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGL.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 #ifndef vtkOpenGL_h
16 #define vtkOpenGL_h
17 
18 #include "vtkConfigure.h"
19 #include "vtkRenderingOpenGLConfigure.h" // For VTK_USE_COCOA
20 
21 // Must be included before `gl.h` due to glew.
22 #include "vtkOpenGLError.h"
23 
24 // To prevent gl.h to include glext.h provided by the system
25 #define GL_GLEXT_LEGACY
26 #if defined(__APPLE__) && defined(VTK_USE_COCOA)
27 #include <OpenGL/gl.h> // Include OpenGL API.
28 #else
29 #include "vtkWindows.h" // Needed to include OpenGL header on Windows.
30 #include <GL/gl.h> // Include OpenGL API.
31 #endif
32 
33 #endif
34 // VTK-HeaderTest-Exclude: vtkOpenGL.h