Arachnoid GLESv1.1 plugin. Compile and run (a bit glitchy and no frameskip) on the...
[mupen64plus-pandora.git] / source / mupen64plus-video-arachnoid / src / SecondaryColorExt.h
CommitLineData
22726e4d 1/******************************************************************************
2 * Arachnoid Graphics Plugin for Mupen64Plus
3 * http://bitbucket.org/wahrhaft/mupen64plus-video-arachnoid/
4 *
5 * Copyright (C) 2009 Jon Ring
6 * Copyright (C) 2007 Kristofer Karlsson, Rickard Niklasson
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 *****************************************************************************/
22
23#ifndef SECONDARY_COLOR_EXTENSION_H_
24#define SECONDARY_COLOR_EXTENSION_H_
25
26#include "m64p.h"
27#include "OpenGL.h"
28
29#ifndef GL_GLEXT_VERSION
30 #ifndef GL_EXT_secondary_color
31 #define GL_EXT_secondary_color 1
32
33 //Definitions
34 #define GL_COLOR_SUM_EXT 0x8458
35 #define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459
36 #define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A
37 #define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B
38 #define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C
39 #define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D
40 #define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E
41
42 //Functions
43 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat r, GLfloat g, GLfloat b);
44 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble r, GLdouble g, GLdouble b);
45 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte r, GLbyte g, GLbyte b);
46 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort r, GLshort g, GLshort b);
47 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3IEXTPROC) (GLint r, GLint g, GLint b);
48 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UBEXTPROC)(GLubyte r, GLubyte g, GLubyte b);
49 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3USEXTPROC)(GLushort r, GLushort g, GLushort b);
50 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UIEXTPROC)(GLuint r, GLuint g, GLuint b);
51 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v);
52 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v);
53 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v);
54 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v);
55 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v);
56 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UBVEXTPROC)(const GLubyte *v);
57 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3USVEXTPROC)(const GLushort *v);
58 typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UIVEXTPROC)(const GLuint *v);
59 typedef void (APIENTRY * PFNGLSECONDARYCOLORPOINTEREXTPROC)(GLint size, GLenum type, GLsizei stride, void *pointer);
60
61 #endif //GL_EXT_secondary_color
62
63 // EXT_secondary_color functions
64 extern PFNGLSECONDARYCOLOR3BEXTPROC glSecondaryColor3bEXT;
65 extern PFNGLSECONDARYCOLOR3BVEXTPROC glSecondaryColor3bvEXT;
66 extern PFNGLSECONDARYCOLOR3DEXTPROC glSecondaryColor3dEXT;
67 extern PFNGLSECONDARYCOLOR3DVEXTPROC glSecondaryColor3dvEXT;
68 extern PFNGLSECONDARYCOLOR3FEXTPROC glSecondaryColor3fEXT;
69 extern PFNGLSECONDARYCOLOR3FVEXTPROC glSecondaryColor3fvEXT;
70 extern PFNGLSECONDARYCOLOR3IEXTPROC glSecondaryColor3iEXT;
71 extern PFNGLSECONDARYCOLOR3IVEXTPROC glSecondaryColor3ivEXT;
72 extern PFNGLSECONDARYCOLOR3SEXTPROC glSecondaryColor3sEXT;
73 extern PFNGLSECONDARYCOLOR3SVEXTPROC glSecondaryColor3svEXT;
74 extern PFNGLSECONDARYCOLOR3UBEXTPROC glSecondaryColor3ubEXT;
75 extern PFNGLSECONDARYCOLOR3UBVEXTPROC glSecondaryColor3ubvEXT;
76 extern PFNGLSECONDARYCOLOR3UIEXTPROC glSecondaryColor3uiEXT;
77 extern PFNGLSECONDARYCOLOR3UIVEXTPROC glSecondaryColor3uivEXT;
78 extern PFNGLSECONDARYCOLOR3USEXTPROC glSecondaryColor3usEXT;
79 extern PFNGLSECONDARYCOLOR3USVEXTPROC glSecondaryColor3usvEXT;
80 extern PFNGLSECONDARYCOLORPOINTEREXTPROC glSecondaryColorPointerEXT;
81#endif
82
83bool initializeSecondaryColorExtension();
84
85#endif //SECONDARY_COLOR_EXTENSION_H_