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
33#elif __APPLE__
34typedef void (*_GLUfuncptr)();
35#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0
36#include <OpenGL/gl.h>
37#include <OpenGL/glu.h>
38
39#elif defined(__linux__)
40#include <GL/glew.h>
41#include <GL/gl.h>
42#include <GL/glu.h>
43#include <GL/glext.h>
44
45#else
46#error platform not supported.
47#endif // _WIN32
48#endif // ocpnUSE_GL