VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 "vtkRenderingOpenGLModule.h" // For export macro
19 #include "vtkConfigure.h"
20 
21 // To prevent gl.h to include glext.h provided by the system
22 #define GL_GLEXT_LEGACY
23 #define GLX_GLEXT_LEGACY
24 #if defined(__APPLE__) && (defined(VTK_USE_CARBON) || defined(VTK_USE_COCOA))
25 # include <OpenGL/gl.h> // Include OpenGL API.
26 #else
27 # include "vtkWindows.h" // Needed to include OpenGL header on Windows.
28 # include <GL/gl.h> // Include OpenGL API.
29 #endif
30 
31 #endif
32 // VTK-HeaderTest-Exclude: vtkOpenGL.h