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
23#if defined(__ANDROID__)
24#include <qopengl.h>
25#include <GL/gl_private.h> // this is a cut-down version of gl.h
26#include <GLES2/gl2.h>
27
28#elif defined(ocpnUSE_GL)
29#if defined(_WIN32)
30#include <glew.h>
31
32#elif __APPLE__
33typedef void (*_GLUfuncptr)();
34#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0
35#include <OpenGL/gl.h>
36#include <OpenGL/glu.h>
37
38#elif defined(__linux__)
39#include <GL/glew.h>
40#include <GL/gl.h>
41#include <GL/glu.h>
42#include <GL/glext.h>
43
44#else
45#error platform not supported.
46#endif // _win32
47#endif // ocpnUSE_GL