VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Rendering/OpenGL2/vtkOpenGL.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkOpenGL.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 #ifndef vtkOpenGL_h
00016 #define vtkOpenGL_h
00017 
00018 #include "vtkConfigure.h"
00019 #include "vtkRenderingOpenGLConfigure.h" // For VTK_USE_{CARBON|COCOA}
00020 
00021 // To prevent gl.h to include glext.h provided by the system
00022 #define GL_GLEXT_LEGACY
00023 #if defined(__APPLE__) && (defined(VTK_USE_CARBON) || defined(VTK_USE_COCOA))
00024 # include <OpenGL/gl.h> // Include OpenGL API.
00025 #else
00026 # include "vtkWindows.h" // Needed to include OpenGL header on Windows.
00027 # include <GL/gl.h> // Include OpenGL API.
00028 #endif
00029 
00030 #endif
00031 // VTK-HeaderTest-Exclude: vtkOpenGL.h