2003-06-04 22:13:21 +02:00
|
|
|
/* GL 'hack' private include file
|
|
|
|
* Copyright (c) 2003 Lionel Ulmer / Mike McCormack
|
|
|
|
*
|
|
|
|
* This file contains all structures that are not exported
|
|
|
|
* through d3d.h and all common macros.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-06-04 22:13:21 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GRAPHICS_WINE_GL_PRIVATE_H
|
|
|
|
#define __GRAPHICS_WINE_GL_PRIVATE_H
|
|
|
|
|
|
|
|
#ifdef HAVE_OPENGL
|
|
|
|
|
|
|
|
#undef APIENTRY
|
|
|
|
#undef CALLBACK
|
|
|
|
#undef WINAPI
|
|
|
|
|
|
|
|
#define XMD_H /* This is to prevent the Xmd.h inclusion bug :-/ */
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#include <GL/glx.h>
|
|
|
|
#ifdef HAVE_GL_GLEXT_H
|
|
|
|
# include <GL/glext.h>
|
|
|
|
#endif
|
|
|
|
#undef XMD_H
|
|
|
|
|
|
|
|
#undef APIENTRY
|
|
|
|
#undef CALLBACK
|
|
|
|
#undef WINAPI
|
|
|
|
|
|
|
|
/* Redefines the constants */
|
|
|
|
#define CALLBACK __stdcall
|
|
|
|
#define WINAPI __stdcall
|
|
|
|
#define APIENTRY WINAPI
|
|
|
|
|
|
|
|
#define GL_API_FUNCTION(f) extern typeof(f) * p##f;
|
|
|
|
#include "gl_api.h"
|
|
|
|
#undef GL_API_FUNCTION
|
|
|
|
|
2003-08-05 20:28:07 +02:00
|
|
|
/* This is also where I store our private extension defines...
|
|
|
|
I know that Raphael won't like it, but well, I prefer doing that than battling 10 different headers :-)
|
|
|
|
|
|
|
|
Note: this is perfectly 'legal' as the three variants of the enum have exactly the same value
|
|
|
|
*/
|
2003-08-05 21:18:19 +02:00
|
|
|
#define GL_MIRRORED_REPEAT_WINE 0x8370
|
|
|
|
#define GL_TEXTURE_FILTER_CONTROL_WINE 0x8500
|
|
|
|
#define GL_TEXTURE_LOD_BIAS_WINE 0x8501
|
2003-08-18 21:55:11 +02:00
|
|
|
#define GL_TEXTURE0_WINE 0x84C0
|
|
|
|
#define GL_TEXTURE1_WINE 0x84C1
|
|
|
|
#define GL_TEXTURE2_WINE 0x84C2
|
|
|
|
#define GL_TEXTURE3_WINE 0x84C3
|
|
|
|
#define GL_TEXTURE4_WINE 0x84C4
|
|
|
|
#define GL_TEXTURE5_WINE 0x84C5
|
|
|
|
#define GL_TEXTURE6_WINE 0x84C6
|
|
|
|
#define GL_TEXTURE7_WINE 0x84C7
|
|
|
|
#define GL_MAX_TEXTURE_UNITS_WINE 0x84E2
|
2003-08-05 20:28:07 +02:00
|
|
|
|
2003-06-04 22:13:21 +02:00
|
|
|
#ifndef GLPRIVATE_NO_REDEFINE
|
|
|
|
|
|
|
|
#define glAlphaFunc pglAlphaFunc
|
|
|
|
#define glBegin pglBegin
|
|
|
|
#define glBindTexture pglBindTexture
|
|
|
|
#define glBlendFunc pglBlendFunc
|
|
|
|
#define glClear pglClear
|
|
|
|
#define glClearColor pglClearColor
|
|
|
|
#define glClearDepth pglClearDepth
|
|
|
|
#define glClearStencil pglClearStencil
|
|
|
|
#define glClipPlane pglClipPlane
|
|
|
|
#define glColor3f pglColor3f
|
|
|
|
#define glColor3ub pglColor3ub
|
|
|
|
#define glColor4ub pglColor4ub
|
2003-09-15 22:00:03 +02:00
|
|
|
#define glColorMask pglColorMask
|
2003-11-25 01:06:33 +01:00
|
|
|
#define glColorPointer pglColorPointer
|
2003-06-16 21:41:34 +02:00
|
|
|
#define glCopyPixels pglCopyPixels
|
2003-06-05 01:10:38 +02:00
|
|
|
#define glCopyTexSubImage2D pglCopyTexSubImage2D
|
2003-06-04 22:13:21 +02:00
|
|
|
#define glColorMaterial pglColorMaterial
|
|
|
|
#define glCullFace pglCullFace
|
|
|
|
#define glDeleteTextures pglDeleteTextures
|
|
|
|
#define glDepthFunc pglDepthFunc
|
|
|
|
#define glDepthMask pglDepthMask
|
|
|
|
#define glDepthRange pglDepthRange
|
|
|
|
#define glDisable pglDisable
|
2003-11-25 01:06:33 +01:00
|
|
|
#define glDisableClientState pglDisableClientState
|
|
|
|
#define glDrawArrays pglDrawArrays
|
2003-06-04 22:13:21 +02:00
|
|
|
#define glDrawBuffer pglDrawBuffer
|
2003-11-25 01:06:33 +01:00
|
|
|
#define glDrawElements pglDrawElements
|
2003-06-04 22:13:21 +02:00
|
|
|
#define glDrawPixels pglDrawPixels
|
|
|
|
#define glEnable pglEnable
|
2003-11-25 01:06:33 +01:00
|
|
|
#define glEnableClientState pglEnableClientState
|
2003-06-04 22:13:21 +02:00
|
|
|
#define glEnd pglEnd
|
|
|
|
#define glFlush pglFlush
|
|
|
|
#define glFogf pglFogf
|
|
|
|
#define glFogfv pglFogfv
|
|
|
|
#define glFogi pglFogi
|
|
|
|
#define glFrontFace pglFrontFace
|
|
|
|
#define glGenTextures pglGenTextures
|
|
|
|
#define glGetBooleanv pglGetBooleanv
|
|
|
|
#define glGetError pglGetError
|
|
|
|
#define glGetFloatv pglGetFloatv
|
|
|
|
#define glGetIntegerv pglGetIntegerv
|
2003-08-05 20:28:07 +02:00
|
|
|
#define glGetString pglGetString
|
2003-06-04 22:13:21 +02:00
|
|
|
#define glGetTexEnviv pglGetTexEnviv
|
|
|
|
#define glGetTexParameteriv pglGetTexParameteriv
|
|
|
|
#define glHint pglHint
|
|
|
|
#define glLightModelfv pglLightModelfv
|
|
|
|
#define glLightModeli pglLightModeli
|
|
|
|
#define glLightfv pglLightfv
|
|
|
|
#define glLoadIdentity pglLoadIdentity
|
|
|
|
#define glLoadMatrixf pglLoadMatrixf
|
|
|
|
#define glMaterialf pglMaterialf
|
|
|
|
#define glMaterialfv pglMaterialfv
|
|
|
|
#define glMatrixMode pglMatrixMode
|
|
|
|
#define glMultMatrixf pglMultMatrixf
|
|
|
|
#define glNormal3f pglNormal3f
|
|
|
|
#define glNormal3fv pglNormal3fv
|
2003-11-25 01:06:33 +01:00
|
|
|
#define glNormalPointer pglNormalPointer
|
2003-09-15 22:00:03 +02:00
|
|
|
#define glOrtho pglOrtho
|
2003-06-04 22:13:21 +02:00
|
|
|
#define glPixelStorei pglPixelStorei
|
|
|
|
#define glPolygonMode pglPolygonMode
|
|
|
|
#define glPolygonOffset pglPolygonOffset
|
|
|
|
#define glPopMatrix pglPopMatrix
|
|
|
|
#define glPushMatrix pglPushMatrix
|
2003-09-15 22:00:03 +02:00
|
|
|
#define glRasterPos2i pglRasterPos2i
|
2003-06-16 21:41:34 +02:00
|
|
|
#define glRasterPos3d pglRasterPos3d
|
2003-06-04 22:13:21 +02:00
|
|
|
#define glReadBuffer pglReadBuffer
|
|
|
|
#define glReadPixels pglReadPixels
|
|
|
|
#define glScissor pglScissor
|
|
|
|
#define glShadeModel pglShadeModel
|
|
|
|
#define glStencilFunc pglStencilFunc
|
|
|
|
#define glStencilMask pglStencilMask
|
|
|
|
#define glStencilOp pglStencilOp
|
2005-06-12 12:43:11 +02:00
|
|
|
#define glTexCoord1fv pglTexCoord1fv
|
2003-06-04 22:13:21 +02:00
|
|
|
#define glTexCoord2f pglTexCoord2f
|
|
|
|
#define glTexCoord2fv pglTexCoord2fv
|
2005-06-12 12:43:11 +02:00
|
|
|
#define glTexCoord3fv pglTexCoord3fv
|
|
|
|
#define glTexCoord4fv pglTexCoord4fv
|
2003-11-25 01:06:33 +01:00
|
|
|
#define glTexCoordPointer pglTexCoordPointer
|
2003-08-05 21:18:19 +02:00
|
|
|
#define glTexEnvf pglTexEnvf
|
2003-06-04 22:13:21 +02:00
|
|
|
#define glTexEnvfv pglTexEnvfv
|
|
|
|
#define glTexEnvi pglTexEnvi
|
|
|
|
#define glTexImage2D pglTexImage2D
|
|
|
|
#define glTexParameteri pglTexParameteri
|
|
|
|
#define glTexParameterfv pglTexParameterfv
|
|
|
|
#define glTexSubImage2D pglTexSubImage2D
|
|
|
|
#define glTranslatef pglTranslatef
|
|
|
|
#define glVertex3d pglVertex3d
|
|
|
|
#define glVertex3f pglVertex3f
|
|
|
|
#define glVertex3fv pglVertex3fv
|
|
|
|
#define glVertex4f pglVertex4f
|
2003-11-25 01:06:33 +01:00
|
|
|
#define glVertexPointer pglVertexPointer
|
2003-06-04 22:13:21 +02:00
|
|
|
#define glViewport pglViewport
|
|
|
|
#define glXCreateContext pglXCreateContext
|
|
|
|
#define glXDestroyContext pglXDestroyContext
|
|
|
|
#define glXMakeCurrent pglXMakeCurrent
|
2003-08-05 20:28:07 +02:00
|
|
|
#define glXQueryExtensionsString pglXQueryExtensionsString
|
2003-06-04 22:13:21 +02:00
|
|
|
#define glXSwapBuffers pglXSwapBuffers
|
|
|
|
|
|
|
|
#endif /* GLPRIVATE_NO_REDEFINE */
|
|
|
|
|
|
|
|
#endif /* HAVE_OPENGL */
|
|
|
|
|
|
|
|
#endif /* __GRAPHICS_WINE_GL_PRIVATE_H */
|