OpenCPN Partial API docs
Loading...
Searching...
No Matches
gl_headers.h
Go to the documentation of this file.
1/**************************************************************************
2 * Copyright (C) 2025 Alec Leamas *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
16 **************************************************************************/
17
24#if defined(__ANDROID__)
25#include <qopengl.h>
26#include <GL/gl_private.h> // this is a cut-down version of gl.h
27#include <GLES2/gl2.h>
28
29#elif defined(ocpnUSE_GL)
30#if defined(_WIN32)
31#include <glew.h>
32#include <GL/glu.h>
33
34#elif __APPLE__
35typedef void (*_GLUfuncptr)();
36#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0
37#include <OpenGL/gl.h>
38#include <OpenGL/glu.h>
39
40#elif defined(__linux__)
41#include <GL/glew.h>
42#include <GL/gl.h>
43#include <GL/glu.h>
44#include <GL/glext.h>
45
46#else
47#error platform not supported.
48#endif // _WIN32
49#endif // ocpnUSE_GL