Added missing launcher
[mupen64plus-pandora.git] / source / gles2rice / src / OGLExtensions.h
CommitLineData
292f9317 1/* OGLExtensions.h
2Copyright (C) 2009 Richard Goedeken
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17*/
18
19/* This header file contains function pointers to some OpenGL functions */
20/* This is only necessary because Windows does not contain development support for OpenGL versions beyond 1.1 */
21
22#if !defined(OGL_EXTENSIONS_H)
23#define OGL_EXTENSIONS_H
24
25#include <SDL_opengl.h>
26
27/* Just call this one function to load up the function pointers. */
28void OGLExtensions_Init(void);
29
30/* The function pointer types are defined here because as of 2009 some OpenGL drivers under Linux do 'incorrect' things which
31 mess up the SDL_opengl.h header, resulting in no function pointer typedefs at all, and thus compilation errors.
32*/
33typedef void (APIENTRYP PFUNCGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params);
34typedef void (APIENTRYP PFUNCGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
35typedef void (APIENTRYP PFUNCGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
36typedef void (APIENTRYP PFUNCGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
37typedef void (APIENTRYP PFUNCGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param);
38
39typedef void (APIENTRYP PFUNCGLACTIVETEXTUREPROC) (GLenum texture);
40typedef void (APIENTRYP PFUNCGLACTIVETEXTUREARBPROC) (GLenum texture);
41typedef void (APIENTRYP PFUNCGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
42typedef void (APIENTRYP PFUNCGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
43typedef void (APIENTRYP PFUNCGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs);
44typedef void (APIENTRYP PFUNCGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const GLvoid *string);
45typedef void (APIENTRYP PFUNCGLBINDPROGRAMARBPROC) (GLenum target, GLuint program);
46typedef void (APIENTRYP PFUNCGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs);
47typedef void (APIENTRYP PFUNCGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
48typedef void (APIENTRYP PFUNCGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
49typedef void (APIENTRYP PFUNCGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
50
51extern bool bNvidiaExtensionsSupported;
52extern PFUNCGLCOMBINERPARAMETERFVNVPROC pglCombinerParameterfvNV;
53extern PFUNCGLFINALCOMBINERINPUTNVPROC pglFinalCombinerInputNV;
54extern PFUNCGLCOMBINEROUTPUTNVPROC pglCombinerOutputNV;
55extern PFUNCGLCOMBINERINPUTNVPROC pglCombinerInputNV;
56extern PFUNCGLCOMBINERPARAMETERINVPROC pglCombinerParameteriNV;
57
58extern PFUNCGLACTIVETEXTUREPROC pglActiveTexture;
59extern PFUNCGLACTIVETEXTUREARBPROC pglActiveTextureARB;
60extern PFUNCGLMULTITEXCOORD2FPROC pglMultiTexCoord2f;
61extern PFUNCGLMULTITEXCOORD2FVPROC pglMultiTexCoord2fv;
62extern PFUNCGLDELETEPROGRAMSARBPROC pglDeleteProgramsARB;
63extern PFUNCGLPROGRAMSTRINGARBPROC pglProgramStringARB;
64extern PFUNCGLBINDPROGRAMARBPROC pglBindProgramARB;
65extern PFUNCGLGENPROGRAMSARBPROC pglGenProgramsARB;
66extern PFUNCGLPROGRAMENVPARAMETER4FVARBPROC pglProgramEnvParameter4fvARB;
67extern PFUNCGLFOGCOORDPOINTEREXTPROC pglFogCoordPointerEXT;
68extern PFUNCGLCLIENTACTIVETEXTUREARBPROC pglClientActiveTextureARB;
69
70#endif // OGL_EXTENSIONS_H
71