OpenCPN Partial API docs
Loading...
Searching...
No Matches
pi_gl.h
Go to the documentation of this file.
1/***************************************************************************
2 * Copyright (C) 2010 by David S. Register *
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, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
30//----------------------------------------------------------------------------------
31// OpenGL Build options for S52PLIB
32//----------------------------------------------------------------------------------
33#ifndef _PIGL_H_
34#define _PIGL_H_
35
36#if defined(__OCPN__ANDROID__)
37#include <qopengl.h>
38#include <GL/gl_private.h> // this is a cut-down version of gl.h
39#include <GLES2/gl2.h>
40#elif defined(__MSVC__)
41#include "glew.h"
42#elif defined(__WXOSX__)
43#include <OpenGL/gl.h>
44#include <OpenGL/glu.h>
45typedef void (*_GLUfuncptr)();
46#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0
47#elif defined(__WXQT__) || defined(__WXGTK__)
48#include <GL/glew.h>
49#include <GL/glu.h>
50#endif
51
52#endif // __FILE__