X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fmupen64plus-video-arachnoid%2Fsrc%2FSecondaryColorExt.h;fp=source%2Fmupen64plus-video-arachnoid%2Fsrc%2FSecondaryColorExt.h;h=6fd20e1941717b1009e47b5b70481ae98b3ab888;hb=22726e4d55be26faa48b57b22689cbedde27ae44;hp=0000000000000000000000000000000000000000;hpb=fc5d46b49a19d41f9f2da5a9336daec452900475;p=mupen64plus-pandora.git diff --git a/source/mupen64plus-video-arachnoid/src/SecondaryColorExt.h b/source/mupen64plus-video-arachnoid/src/SecondaryColorExt.h new file mode 100755 index 0000000..6fd20e1 --- /dev/null +++ b/source/mupen64plus-video-arachnoid/src/SecondaryColorExt.h @@ -0,0 +1,85 @@ +/****************************************************************************** + * Arachnoid Graphics Plugin for Mupen64Plus + * http://bitbucket.org/wahrhaft/mupen64plus-video-arachnoid/ + * + * Copyright (C) 2009 Jon Ring + * Copyright (C) 2007 Kristofer Karlsson, Rickard Niklasson + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + *****************************************************************************/ + +#ifndef SECONDARY_COLOR_EXTENSION_H_ +#define SECONDARY_COLOR_EXTENSION_H_ + +#include "m64p.h" +#include "OpenGL.h" + +#ifndef GL_GLEXT_VERSION + #ifndef GL_EXT_secondary_color + #define GL_EXT_secondary_color 1 + + //Definitions + #define GL_COLOR_SUM_EXT 0x8458 + #define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459 + #define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A + #define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B + #define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C + #define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D + #define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E + + //Functions + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat r, GLfloat g, GLfloat b); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble r, GLdouble g, GLdouble b); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte r, GLbyte g, GLbyte b); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort r, GLshort g, GLshort b); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3IEXTPROC) (GLint r, GLint g, GLint b); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UBEXTPROC)(GLubyte r, GLubyte g, GLubyte b); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3USEXTPROC)(GLushort r, GLushort g, GLushort b); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UIEXTPROC)(GLuint r, GLuint g, GLuint b); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UBVEXTPROC)(const GLubyte *v); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3USVEXTPROC)(const GLushort *v); + typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UIVEXTPROC)(const GLuint *v); + typedef void (APIENTRY * PFNGLSECONDARYCOLORPOINTEREXTPROC)(GLint size, GLenum type, GLsizei stride, void *pointer); + + #endif //GL_EXT_secondary_color + + // EXT_secondary_color functions + extern PFNGLSECONDARYCOLOR3BEXTPROC glSecondaryColor3bEXT; + extern PFNGLSECONDARYCOLOR3BVEXTPROC glSecondaryColor3bvEXT; + extern PFNGLSECONDARYCOLOR3DEXTPROC glSecondaryColor3dEXT; + extern PFNGLSECONDARYCOLOR3DVEXTPROC glSecondaryColor3dvEXT; + extern PFNGLSECONDARYCOLOR3FEXTPROC glSecondaryColor3fEXT; + extern PFNGLSECONDARYCOLOR3FVEXTPROC glSecondaryColor3fvEXT; + extern PFNGLSECONDARYCOLOR3IEXTPROC glSecondaryColor3iEXT; + extern PFNGLSECONDARYCOLOR3IVEXTPROC glSecondaryColor3ivEXT; + extern PFNGLSECONDARYCOLOR3SEXTPROC glSecondaryColor3sEXT; + extern PFNGLSECONDARYCOLOR3SVEXTPROC glSecondaryColor3svEXT; + extern PFNGLSECONDARYCOLOR3UBEXTPROC glSecondaryColor3ubEXT; + extern PFNGLSECONDARYCOLOR3UBVEXTPROC glSecondaryColor3ubvEXT; + extern PFNGLSECONDARYCOLOR3UIEXTPROC glSecondaryColor3uiEXT; + extern PFNGLSECONDARYCOLOR3UIVEXTPROC glSecondaryColor3uivEXT; + extern PFNGLSECONDARYCOLOR3USEXTPROC glSecondaryColor3usEXT; + extern PFNGLSECONDARYCOLOR3USVEXTPROC glSecondaryColor3usvEXT; + extern PFNGLSECONDARYCOLORPOINTEREXTPROC glSecondaryColorPointerEXT; +#endif + +bool initializeSecondaryColorExtension(); + +#endif //SECONDARY_COLOR_EXTENSION_H_