VTK
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 // To prevent gl.h to include glext.h provided by the system
22 #define GL_GLEXT_LEGACY
23 #if defined(__APPLE__) && defined(VTK_USE_COCOA)
24 # include <OpenGL/gl.h> // Include OpenGL API.
25 #else
26 # include "vtkWindows.h" // Needed to include OpenGL header on Windows.
27 # include <GL/gl.h> // Include OpenGL API.
28 #endif
29 
30 #endif
31 // VTK-HeaderTest-Exclude: vtkOpenGL.h