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