MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
opengl.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015, Simon Fuhrmann
3 * TU Darmstadt - Graphics, Capture and Massively Parallel Computing
4 * All rights reserved.
5 *
6 * This software may be modified and distributed under the terms
7 * of the BSD 3-Clause license. See the LICENSE.txt file for details.
8 *
9 * This file solely exists to include the OpenGL API header file(s).
10 *
11 * Since this may vary depending on the specific application, this
12 * file may be modified according to user demands. The default
13 * implementation expects that GLEW is installed system-wide and
14 * is initialized before any OpenGL API function is called.
15 */
16
17#ifndef OGL_OPEN_GL_HEADER
18#define OGL_OPEN_GL_HEADER
19
20#if defined(OGL_USE_OSMESA)
21# define GL_GLEXT_PROTOTYPES
22# include <GL/osmesa.h>
23#elif defined(__APPLE__)
24# include <OpenGL/gl3.h>
25#elif defined(_WIN32)
26# include <GL/glew.h>
27#else
28# define GL_GLEXT_PROTOTYPES
29# include <GL/gl.h>
30# include <GL/glext.h>
31#endif
32
33#endif /* OGL_OPEN_GL_HEADER */