1 /* GL 'hack' private include file
2 * Copyright (c) 2003 Lionel Ulmer / Mike McCormack
4 * This file contains all structures that are not exported
5 * through d3d.h and all common macros.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __GRAPHICS_WINE_GL_PRIVATE_H
23 #define __GRAPHICS_WINE_GL_PRIVATE_H
31 #define XMD_H /* This is to prevent the Xmd.h inclusion bug :-/ */
34 #ifdef HAVE_GL_GLEXT_H
35 # include <GL/glext.h>
43 /* Redefines the constants */
44 #define CALLBACK __stdcall
45 #define WINAPI __stdcall
46 #define APIENTRY WINAPI
48 #define GL_API_FUNCTION(f) extern typeof(f) * p##f;
50 #undef GL_API_FUNCTION
52 /* This is also where I store our private extension defines...
53 I know that Raphael won't like it, but well, I prefer doing that than battling 10 different headers :-)
55 Note: this is perfectly 'legal' as the three variants of the enum have exactly the same value
57 #define GL_MIRRORED_REPEAT_WINE 0x8370
58 #define GL_TEXTURE_FILTER_CONTROL_WINE 0x8500
59 #define GL_TEXTURE_LOD_BIAS_WINE 0x8501
60 #define GL_TEXTURE0_WINE 0x84C0
61 #define GL_TEXTURE1_WINE 0x84C1
62 #define GL_TEXTURE2_WINE 0x84C2
63 #define GL_TEXTURE3_WINE 0x84C3
64 #define GL_TEXTURE4_WINE 0x84C4
65 #define GL_TEXTURE5_WINE 0x84C5
66 #define GL_TEXTURE6_WINE 0x84C6
67 #define GL_TEXTURE7_WINE 0x84C7
68 #define GL_MAX_TEXTURE_UNITS_WINE 0x84E2
70 #ifndef GLPRIVATE_NO_REDEFINE
72 #define glAlphaFunc pglAlphaFunc
73 #define glBegin pglBegin
74 #define glBindTexture pglBindTexture
75 #define glBlendFunc pglBlendFunc
76 #define glClear pglClear
77 #define glClearColor pglClearColor
78 #define glClearDepth pglClearDepth
79 #define glClearStencil pglClearStencil
80 #define glClipPlane pglClipPlane
81 #define glColor3f pglColor3f
82 #define glColor3ub pglColor3ub
83 #define glColor4ub pglColor4ub
84 #define glColorMask pglColorMask
85 #define glColorPointer pglColorPointer
86 #define glCopyPixels pglCopyPixels
87 #define glCopyTexSubImage2D pglCopyTexSubImage2D
88 #define glColorMaterial pglColorMaterial
89 #define glCullFace pglCullFace
90 #define glDeleteTextures pglDeleteTextures
91 #define glDepthFunc pglDepthFunc
92 #define glDepthMask pglDepthMask
93 #define glDepthRange pglDepthRange
94 #define glDisable pglDisable
95 #define glDisableClientState pglDisableClientState
96 #define glDrawArrays pglDrawArrays
97 #define glDrawBuffer pglDrawBuffer
98 #define glDrawElements pglDrawElements
99 #define glDrawPixels pglDrawPixels
100 #define glEnable pglEnable
101 #define glEnableClientState pglEnableClientState
103 #define glFlush pglFlush
104 #define glFogf pglFogf
105 #define glFogfv pglFogfv
106 #define glFogi pglFogi
107 #define glFrontFace pglFrontFace
108 #define glGenTextures pglGenTextures
109 #define glGetBooleanv pglGetBooleanv
110 #define glGetError pglGetError
111 #define glGetFloatv pglGetFloatv
112 #define glGetIntegerv pglGetIntegerv
113 #define glGetString pglGetString
114 #define glGetTexEnviv pglGetTexEnviv
115 #define glGetTexParameteriv pglGetTexParameteriv
116 #define glHint pglHint
117 #define glLightModelfv pglLightModelfv
118 #define glLightModeli pglLightModeli
119 #define glLightfv pglLightfv
120 #define glLoadIdentity pglLoadIdentity
121 #define glLoadMatrixf pglLoadMatrixf
122 #define glMaterialf pglMaterialf
123 #define glMaterialfv pglMaterialfv
124 #define glMatrixMode pglMatrixMode
125 #define glMultMatrixf pglMultMatrixf
126 #define glNormal3f pglNormal3f
127 #define glNormal3fv pglNormal3fv
128 #define glNormalPointer pglNormalPointer
129 #define glOrtho pglOrtho
130 #define glPixelStorei pglPixelStorei
131 #define glPolygonMode pglPolygonMode
132 #define glPolygonOffset pglPolygonOffset
133 #define glPopMatrix pglPopMatrix
134 #define glPushMatrix pglPushMatrix
135 #define glRasterPos2i pglRasterPos2i
136 #define glRasterPos3d pglRasterPos3d
137 #define glReadBuffer pglReadBuffer
138 #define glReadPixels pglReadPixels
139 #define glScissor pglScissor
140 #define glShadeModel pglShadeModel
141 #define glStencilFunc pglStencilFunc
142 #define glStencilMask pglStencilMask
143 #define glStencilOp pglStencilOp
144 #define glTexCoord1fv pglTexCoord1fv
145 #define glTexCoord2f pglTexCoord2f
146 #define glTexCoord2fv pglTexCoord2fv
147 #define glTexCoord3fv pglTexCoord3fv
148 #define glTexCoord4fv pglTexCoord4fv
149 #define glTexCoordPointer pglTexCoordPointer
150 #define glTexEnvf pglTexEnvf
151 #define glTexEnvfv pglTexEnvfv
152 #define glTexEnvi pglTexEnvi
153 #define glTexImage2D pglTexImage2D
154 #define glTexParameteri pglTexParameteri
155 #define glTexParameterfv pglTexParameterfv
156 #define glTexSubImage2D pglTexSubImage2D
157 #define glTranslatef pglTranslatef
158 #define glVertex3d pglVertex3d
159 #define glVertex3f pglVertex3f
160 #define glVertex3fv pglVertex3fv
161 #define glVertex4f pglVertex4f
162 #define glVertexPointer pglVertexPointer
163 #define glViewport pglViewport
164 #define glXCreateContext pglXCreateContext
165 #define glXDestroyContext pglXDestroyContext
166 #define glXMakeCurrent pglXMakeCurrent
167 #define glXQueryExtensionsString pglXQueryExtensionsString
168 #define glXSwapBuffers pglXSwapBuffers
170 #endif /* GLPRIVATE_NO_REDEFINE */
172 #endif /* HAVE_OPENGL */
174 #endif /* __GRAPHICS_WINE_GL_PRIVATE_H */