source: Daodan/src/Oni/GL.h@ 1120

Last change on this file since 1120 was 992, checked in by alloc, 11 years ago

Daodan: Removed unused MSVC tree, build folders; reorganized source layout; removed Flatline from current Daodan

File size: 23.4 KB
Line 
1#ifndef ONI_H
2#error Do not include this file directly, include Oni/Oni.h instead!
3#endif
4
5#ifndef GL_H
6#define GL_H
7
8typedef struct
9{
10 int a;
11 M3tDrawEngineCaps DrawEngineCaps;
12 M3tDrawEngine DrawEngine;
13 M3tDrawContext DrawContext;
14 M3tDisplayMode DisplayMode;
15 int b;
16 int Textures[2];
17 short c;
18 short d;
19 int IntState;
20 M3tDrawPtrState *PtrState;
21 int e;
22 int Color;
23 int MaxTextureSize;
24 int DoubleBufferSupported;
25 int MaxTextureUnits;
26 char *VendorString;
27 char *RendererString;
28 char *VersionString;
29 char *ExtensionsString;
30 int MultipassCapable;
31 int f_0588;
32 char f_058C;
33 char SupportsDepthReads;
34 char FogDisabled;
35 char f_058F;
36 int CompressedTextureFormats[16];
37 int NumCompressedTextureFormats;
38 int f_05D4;
39 float FogStart;
40 float FogEnd;
41 char FogStartChanged;
42 char FogEndChanged;
43 short f_05E2;
44 int f_05E4[4];
45 float FogColor_R;
46 float FogColor_G;
47 float FogColor_B;
48 int Fog_1_;
49 char Fog_2_;
50 char f_0605[3];
51 float ClearColor[4];
52 int LastError;
53 char *LastErrorString;
54 short RenderMode;
55 char BufferClear;
56 char DoubleBuffer;
57 int f_0624;
58 char *TextureBuffer;
59 HDC hDC;
60 HGLRC hGLRC;
61 char vsync;
62 char f_0635[3];
63 void (*DisplayBackBuffer)(void);
64} gl_engine_t;
65
66typedef struct
67{
68 void (WINAPI *glAccum)(GLenum op, GLfloat value);
69 void (WINAPI *glAlphaFunc)(GLenum func, GLclampf ref);
70 GLboolean (WINAPI *glAreTexturesResident)(GLsizei n, const GLuint *textures, GLboolean *residences);
71 void (WINAPI *glArrayElement)(GLint i);
72 void (WINAPI *glBegin)(GLenum mode);
73 void (WINAPI *glBindTexture)(GLenum target, GLuint texture);
74 void (WINAPI *glBitmap)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
75 void (WINAPI *glBlendFunc)(GLenum sfactor, GLenum dfactor);
76 void (WINAPI *glCallList)(GLuint list);
77 void (WINAPI *glCallLists)(GLsizei n, GLenum type, const GLvoid *lists);
78 void (WINAPI *glClear)(GLbitfield mask);
79 void (WINAPI *glClearAccum)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
80 void (WINAPI *glClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
81 void (WINAPI *glClearDepth)(GLclampd depth);
82 void (WINAPI *glClearIndex)(GLfloat c);
83 void (WINAPI *glClearStencil)(GLint s);
84 void (WINAPI *glClipPlane)(GLenum plane, const GLdouble *equation);
85 void (WINAPI *glColor3b)(GLbyte red, GLbyte green, GLbyte blue);
86 void (WINAPI *glColor3bv)(const GLbyte *v);
87 void (WINAPI *glColor3d)(GLdouble red, GLdouble green, GLdouble blue);
88 void (WINAPI *glColor3dv)(const GLdouble *v);
89 void (WINAPI *glColor3f)(GLfloat red, GLfloat green, GLfloat blue);
90 void (WINAPI *glColor3fv)(const GLfloat *v);
91 void (WINAPI *glColor3i)(GLint red, GLint green, GLint blue);
92 void (WINAPI *glColor3iv)(const GLint *v);
93 void (WINAPI *glColor3s)(GLshort red, GLshort green, GLshort blue);
94 void (WINAPI *glColor3sv)(const GLshort *v);
95 void (WINAPI *glColor3ub)(GLubyte red, GLubyte green, GLubyte blue);
96 void (WINAPI *glColor3ubv)(const GLubyte *v);
97 void (WINAPI *glColor3ui)(GLuint red, GLuint green, GLuint blue);
98 void (WINAPI *glColor3uiv)(const GLuint *v);
99 void (WINAPI *glColor3us)(GLushort red, GLushort green, GLushort blue);
100 void (WINAPI *glColor3usv)(const GLushort *v);
101 void (WINAPI *glColor4b)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
102 void (WINAPI *glColor4bv)(const GLbyte *v);
103 void (WINAPI *glColor4d)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
104 void (WINAPI *glColor4dv)(const GLdouble *v);
105 void (WINAPI *glColor4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
106 void (WINAPI *glColor4fv)(const GLfloat *v);
107 void (WINAPI *glColor4i)(GLint red, GLint green, GLint blue, GLint alpha);
108 void (WINAPI *glColor4iv)(const GLint *v);
109 void (WINAPI *glColor4s)(GLshort red, GLshort green, GLshort blue, GLshort alpha);
110 void (WINAPI *glColor4sv)(const GLshort *v);
111 void (WINAPI *glColor4ub)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
112 void (WINAPI *glColor4ubv)(const GLubyte *v);
113 void (WINAPI *glColor4ui)(GLuint red, GLuint green, GLuint blue, GLuint alpha);
114 void (WINAPI *glColor4uiv)(const GLuint *v);
115 void (WINAPI *glColor4us)(GLushort red, GLushort green, GLushort blue, GLushort alpha);
116 void (WINAPI *glColor4usv)(const GLushort *v);
117 void (WINAPI *glColorMask)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
118 void (WINAPI *glColorMaterial)(GLenum face, GLenum mode);
119 void (WINAPI *glColorPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
120 void (WINAPI *glCopyPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
121 void (WINAPI *glCopyTexImage1D)(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
122 void (WINAPI *glCopyTexImage2D)(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
123 void (WINAPI *glCopyTexSubImage1D)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
124 void (WINAPI *glCopyTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
125 void (WINAPI *glCullFace)(GLenum mode);
126 void (WINAPI *glDeleteLists)(GLuint list, GLsizei range);
127 void (WINAPI *glDeleteTextures)(GLsizei n, const GLuint *textures);
128 void (WINAPI *glDepthFunc)(GLenum func);
129 void (WINAPI *glDepthMask)(GLboolean flag);
130 void (WINAPI *glDepthRange)(GLclampd zNear, GLclampd zFar);
131 void (WINAPI *glDisable)(GLenum cap);
132 void (WINAPI *glDisableClientState)(GLenum array);
133 void (WINAPI *glDrawArrays)(GLenum mode, GLint first, GLsizei count);
134 void (WINAPI *glDrawBuffer)(GLenum mode);
135 void (WINAPI *glDrawElements)(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
136 void (WINAPI *glDrawPixels)(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
137 void (WINAPI *glEdgeFlag)(GLboolean flag);
138 void (WINAPI *glEdgeFlagPointer)(GLsizei stride, const GLvoid *pointer);
139 void (WINAPI *glEdgeFlagv)(const GLboolean *flag);
140 void (WINAPI *glEnable)(GLenum cap);
141 void (WINAPI *glEnableClientState)(GLenum array);
142 void (WINAPI *glEnd)(void);
143 void (WINAPI *glEndList)(void);
144 void (WINAPI *glEvalCoord1d)(GLdouble u);
145 void (WINAPI *glEvalCoord1dv)(const GLdouble *u);
146 void (WINAPI *glEvalCoord1f)(GLfloat u);
147 void (WINAPI *glEvalCoord1fv)(const GLfloat *u);
148 void (WINAPI *glEvalCoord2d)(GLdouble u, GLdouble v);
149 void (WINAPI *glEvalCoord2dv)(const GLdouble *u);
150 void (WINAPI *glEvalCoord2f)(GLfloat u, GLfloat v);
151 void (WINAPI *glEvalCoord2fv)(const GLfloat *u);
152 void (WINAPI *glEvalMesh1)(GLenum mode, GLint i1, GLint i2);
153 void (WINAPI *glEvalMesh2)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
154 void (WINAPI *glEvalPoint1)(GLint i);
155 void (WINAPI *glEvalPoint2)(GLint i, GLint j);
156 void (WINAPI *glFeedbackBuffer)(GLsizei size, GLenum type, GLfloat *buffer);
157 void (WINAPI *glFinish)(void);
158 void (WINAPI *glFlush)(void);
159 void (WINAPI *glFogf)(GLenum pname, GLfloat param);
160 void (WINAPI *glFogfv)(GLenum pname, const GLfloat *params);
161 void (WINAPI *glFogi)(GLenum pname, GLint param);
162 void (WINAPI *glFogiv)(GLenum pname, const GLint *params);
163 void (WINAPI *glFrontFace)(GLenum mode);
164 void (WINAPI *glFrustum)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
165 GLuint (WINAPI *glGenLists)(GLsizei range);
166 void (WINAPI *glGenTextures)(GLsizei n, GLuint *textures);
167 void (WINAPI *glGetBooleanv)(GLenum pname, GLboolean *params);
168 void (WINAPI *glGetClipPlane)(GLenum plane, GLdouble *equation);
169 void (WINAPI *glGetDoublev)(GLenum pname, GLdouble *params);
170 GLenum (WINAPI *glGetError)(void);
171 void (WINAPI *glGetFloatv)(GLenum pname, GLfloat *params);
172 void (WINAPI *glGetIntegerv)(GLenum pname, GLint *params);
173 void (WINAPI *glGetLightfv)(GLenum light, GLenum pname, GLfloat *params);
174 void (WINAPI *glGetLightiv)(GLenum light, GLenum pname, GLint *params);
175 void (WINAPI *glGetMapdv)(GLenum target, GLenum query, GLdouble *v);
176 void (WINAPI *glGetMapfv)(GLenum target, GLenum query, GLfloat *v);
177 void (WINAPI *glGetMapiv)(GLenum target, GLenum query, GLint *v);
178 void (WINAPI *glGetMaterialfv)(GLenum face, GLenum pname, GLfloat *params);
179 void (WINAPI *glGetMaterialiv)(GLenum face, GLenum pname, GLint *params);
180 void (WINAPI *glGetPixelMapfv)(GLenum map, GLfloat *values);
181 void (WINAPI *glGetPixelMapuiv)(GLenum map, GLuint *values);
182 void (WINAPI *glGetPixelMapusv)(GLenum map, GLushort *values);
183 void (WINAPI *glGetPointerv)(GLenum pname, GLvoid* *params);
184 void (WINAPI *glGetPolygonStipple)(GLubyte *mask);
185 const GLubyte * (WINAPI *glGetString)(GLenum name);
186 void (WINAPI *glGetTexEnvfv)(GLenum target, GLenum pname, GLfloat *params);
187 void (WINAPI *glGetTexEnviv)(GLenum target, GLenum pname, GLint *params);
188 void (WINAPI *glGetTexGendv)(GLenum coord, GLenum pname, GLdouble *params);
189 void (WINAPI *glGetTexGenfv)(GLenum coord, GLenum pname, GLfloat *params);
190 void (WINAPI *glGetTexGeniv)(GLenum coord, GLenum pname, GLint *params);
191 void (WINAPI *glGetTexImage)(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
192 void (WINAPI *glGetTexLevelParameterfv)(GLenum target, GLint level, GLenum pname, GLfloat *params);
193 void (WINAPI *glGetTexLevelParameteriv)(GLenum target, GLint level, GLenum pname, GLint *params);
194 void (WINAPI *glGetTexParameterfv)(GLenum target, GLenum pname, GLfloat *params);
195 void (WINAPI *glGetTexParameteriv)(GLenum target, GLenum pname, GLint *params);
196 void (WINAPI *glHint)(GLenum target, GLenum mode);
197 void (WINAPI *glIndexMask)(GLuint mask);
198 void (WINAPI *glIndexPointer)(GLenum type, GLsizei stride, const GLvoid *pointer);
199 void (WINAPI *glIndexd)(GLdouble c);
200 void (WINAPI *glIndexdv)(const GLdouble *c);
201 void (WINAPI *glIndexf)(GLfloat c);
202 void (WINAPI *glIndexfv)(const GLfloat *c);
203 void (WINAPI *glIndexi)(GLint c);
204 void (WINAPI *glIndexiv)(const GLint *c);
205 void (WINAPI *glIndexs)(GLshort c);
206 void (WINAPI *glIndexsv)(const GLshort *c);
207 void (WINAPI *glIndexub)(GLubyte c);
208 void (WINAPI *glIndexubv)(const GLubyte *c);
209 void (WINAPI *glInitNames)(void);
210 void (WINAPI *glInterleavedArrays)(GLenum format, GLsizei stride, const GLvoid *pointer);
211 GLboolean (WINAPI *glIsEnabled)(GLenum cap);
212 GLboolean (WINAPI *glIsList)(GLuint list);
213 GLboolean (WINAPI *glIsTexture)(GLuint texture);
214 void (WINAPI *glLightModelf)(GLenum pname, GLfloat param);
215 void (WINAPI *glLightModelfv)(GLenum pname, const GLfloat *params);
216 void (WINAPI *glLightModeli)(GLenum pname, GLint param);
217 void (WINAPI *glLightModeliv)(GLenum pname, const GLint *params);
218 void (WINAPI *glLightf)(GLenum light, GLenum pname, GLfloat param);
219 void (WINAPI *glLightfv)(GLenum light, GLenum pname, const GLfloat *params);
220 void (WINAPI *glLighti)(GLenum light, GLenum pname, GLint param);
221 void (WINAPI *glLightiv)(GLenum light, GLenum pname, const GLint *params);
222 void (WINAPI *glLineStipple)(GLint factor, GLushort pattern);
223 void (WINAPI *glLineWidth)(GLfloat width);
224 void (WINAPI *glListBase)(GLuint base);
225 void (WINAPI *glLoadIdentity)(void);
226 void (WINAPI *glLoadMatrixd)(const GLdouble *m);
227 void (WINAPI *glLoadMatrixf)(const GLfloat *m);
228 void (WINAPI *glLoadName)(GLuint name);
229 void (WINAPI *glLogicOp)(GLenum opcode);
230 void (WINAPI *glMap1d)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
231 void (WINAPI *glMap1f)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
232 void (WINAPI *glMap2d)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
233 void (WINAPI *glMap2f)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
234 void (WINAPI *glMapGrid1d)(GLint un, GLdouble u1, GLdouble u2);
235 void (WINAPI *glMapGrid1f)(GLint un, GLfloat u1, GLfloat u2);
236 void (WINAPI *glMapGrid2d)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
237 void (WINAPI *glMapGrid2f)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
238 void (WINAPI *glMaterialf)(GLenum face, GLenum pname, GLfloat param);
239 void (WINAPI *glMaterialfv)(GLenum face, GLenum pname, const GLfloat *params);
240 void (WINAPI *glMateriali)(GLenum face, GLenum pname, GLint param);
241 void (WINAPI *glMaterialiv)(GLenum face, GLenum pname, const GLint *params);
242 void (WINAPI *glMatrixMode)(GLenum mode);
243 void (WINAPI *glMultMatrixd)(const GLdouble *m);
244 void (WINAPI *glMultMatrixf)(const GLfloat *m);
245 void (WINAPI *glNewList)(GLuint list, GLenum mode);
246 void (WINAPI *glNormal3b)(GLbyte nx, GLbyte ny, GLbyte nz);
247 void (WINAPI *glNormal3bv)(const GLbyte *v);
248 void (WINAPI *glNormal3d)(GLdouble nx, GLdouble ny, GLdouble nz);
249 void (WINAPI *glNormal3dv)(const GLdouble *v);
250 void (WINAPI *glNormal3f)(GLfloat nx, GLfloat ny, GLfloat nz);
251 void (WINAPI *glNormal3fv)(const GLfloat *v);
252 void (WINAPI *glNormal3i)(GLint nx, GLint ny, GLint nz);
253 void (WINAPI *glNormal3iv)(const GLint *v);
254 void (WINAPI *glNormal3s)(GLshort nx, GLshort ny, GLshort nz);
255 void (WINAPI *glNormal3sv)(const GLshort *v);
256 void (WINAPI *glNormalPointer)(GLenum type, GLsizei stride, const GLvoid *pointer);
257 void (WINAPI *glOrtho)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
258 void (WINAPI *glPassThrough)(GLfloat token);
259 void (WINAPI *glPixelMapfv)(GLenum map, GLsizei mapsize, const GLfloat *values);
260 void (WINAPI *glPixelMapuiv)(GLenum map, GLsizei mapsize, const GLuint *values);
261 void (WINAPI *glPixelMapusv)(GLenum map, GLsizei mapsize, const GLushort *values);
262 void (WINAPI *glPixelStoref)(GLenum pname, GLfloat param);
263 void (WINAPI *glPixelStorei)(GLenum pname, GLint param);
264 void (WINAPI *glPixelTransferf)(GLenum pname, GLfloat param);
265 void (WINAPI *glPixelTransferi)(GLenum pname, GLint param);
266 void (WINAPI *glPixelZoom)(GLfloat xfactor, GLfloat yfactor);
267 void (WINAPI *glPointSize)(GLfloat size);
268 void (WINAPI *glPolygonMode)(GLenum face, GLenum mode);
269 void (WINAPI *glPolygonOffset)(GLfloat factor, GLfloat units);
270 void (WINAPI *glPolygonStipple)(const GLubyte *mask);
271 void (WINAPI *glPopAttrib)(void);
272 void (WINAPI *glPopClientAttrib)(void);
273 void (WINAPI *glPopMatrix)(void);
274 void (WINAPI *glPopName)(void);
275 void (WINAPI *glPrioritizeTextures)(GLsizei n, const GLuint *textures, const GLclampf *priorities);
276 void (WINAPI *glPushAttrib)(GLbitfield mask);
277 void (WINAPI *glPushClientAttrib)(GLbitfield mask);
278 void (WINAPI *glPushMatrix)(void);
279 void (WINAPI *glPushName)(GLuint name);
280 void (WINAPI *glRasterPos2d)(GLdouble x, GLdouble y);
281 void (WINAPI *glRasterPos2dv)(const GLdouble *v);
282 void (WINAPI *glRasterPos2f)(GLfloat x, GLfloat y);
283 void (WINAPI *glRasterPos2fv)(const GLfloat *v);
284 void (WINAPI *glRasterPos2i)(GLint x, GLint y);
285 void (WINAPI *glRasterPos2iv)(const GLint *v);
286 void (WINAPI *glRasterPos2s)(GLshort x, GLshort y);
287 void (WINAPI *glRasterPos2sv)(const GLshort *v);
288 void (WINAPI *glRasterPos3d)(GLdouble x, GLdouble y, GLdouble z);
289 void (WINAPI *glRasterPos3dv)(const GLdouble *v);
290 void (WINAPI *glRasterPos3f)(GLfloat x, GLfloat y, GLfloat z);
291 void (WINAPI *glRasterPos3fv)(const GLfloat *v);
292 void (WINAPI *glRasterPos3i)(GLint x, GLint y, GLint z);
293 void (WINAPI *glRasterPos3iv)(const GLint *v);
294 void (WINAPI *glRasterPos3s)(GLshort x, GLshort y, GLshort z);
295 void (WINAPI *glRasterPos3sv)(const GLshort *v);
296 void (WINAPI *glRasterPos4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
297 void (WINAPI *glRasterPos4dv)(const GLdouble *v);
298 void (WINAPI *glRasterPos4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
299 void (WINAPI *glRasterPos4fv)(const GLfloat *v);
300 void (WINAPI *glRasterPos4i)(GLint x, GLint y, GLint z, GLint w);
301 void (WINAPI *glRasterPos4iv)(const GLint *v);
302 void (WINAPI *glRasterPos4s)(GLshort x, GLshort y, GLshort z, GLshort w);
303 void (WINAPI *glRasterPos4sv)(const GLshort *v);
304 void (WINAPI *glReadBuffer)(GLenum mode);
305 void (WINAPI *glReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
306 void (WINAPI *glRectd)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
307 void (WINAPI *glRectdv)(const GLdouble *v1, const GLdouble *v2);
308 void (WINAPI *glRectf)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
309 void (WINAPI *glRectfv)(const GLfloat *v1, const GLfloat *v2);
310 void (WINAPI *glRecti)(GLint x1, GLint y1, GLint x2, GLint y2);
311 void (WINAPI *glRectiv)(const GLint *v1, const GLint *v2);
312 void (WINAPI *glRects)(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
313 void (WINAPI *glRectsv)(const GLshort *v1, const GLshort *v2);
314 GLint (WINAPI *glRenderMode)(GLenum mode);
315 void (WINAPI *glRotated)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
316 void (WINAPI *glRotatef)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
317 void (WINAPI *glScaled)(GLdouble x, GLdouble y, GLdouble z);
318 void (WINAPI *glScalef)(GLfloat x, GLfloat y, GLfloat z);
319 void (WINAPI *glScissor)(GLint x, GLint y, GLsizei width, GLsizei height);
320 void (WINAPI *glSelectBuffer)(GLsizei size, GLuint *buffer);
321 void (WINAPI *glShadeModel)(GLenum mode);
322 void (WINAPI *glStencilFunc)(GLenum func, GLint ref, GLuint mask);
323 void (WINAPI *glStencilMask)(GLuint mask);
324 void (WINAPI *glStencilOp)(GLenum fail, GLenum zfail, GLenum zpass);
325 void (WINAPI *glTexCoord1d)(GLdouble s);
326 void (WINAPI *glTexCoord1dv)(const GLdouble *v);
327 void (WINAPI *glTexCoord1f)(GLfloat s);
328 void (WINAPI *glTexCoord1fv)(const GLfloat *v);
329 void (WINAPI *glTexCoord1i)(GLint s);
330 void (WINAPI *glTexCoord1iv)(const GLint *v);
331 void (WINAPI *glTexCoord1s)(GLshort s);
332 void (WINAPI *glTexCoord1sv)(const GLshort *v);
333 void (WINAPI *glTexCoord2d)(GLdouble s, GLdouble t);
334 void (WINAPI *glTexCoord2dv)(const GLdouble *v);
335 void (WINAPI *glTexCoord2f)(GLfloat s, GLfloat t);
336 void (WINAPI *glTexCoord2fv)(const GLfloat *v);
337 void (WINAPI *glTexCoord2i)(GLint s, GLint t);
338 void (WINAPI *glTexCoord2iv)(const GLint *v);
339 void (WINAPI *glTexCoord2s)(GLshort s, GLshort t);
340 void (WINAPI *glTexCoord2sv)(const GLshort *v);
341 void (WINAPI *glTexCoord3d)(GLdouble s, GLdouble t, GLdouble r);
342 void (WINAPI *glTexCoord3dv)(const GLdouble *v);
343 void (WINAPI *glTexCoord3f)(GLfloat s, GLfloat t, GLfloat r);
344 void (WINAPI *glTexCoord3fv)(const GLfloat *v);
345 void (WINAPI *glTexCoord3i)(GLint s, GLint t, GLint r);
346 void (WINAPI *glTexCoord3iv)(const GLint *v);
347 void (WINAPI *glTexCoord3s)(GLshort s, GLshort t, GLshort r);
348 void (WINAPI *glTexCoord3sv)(const GLshort *v);
349 void (WINAPI *glTexCoord4d)(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
350 void (WINAPI *glTexCoord4dv)(const GLdouble *v);
351 void (WINAPI *glTexCoord4f)(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
352 void (WINAPI *glTexCoord4fv)(const GLfloat *v);
353 void (WINAPI *glTexCoord4i)(GLint s, GLint t, GLint r, GLint q);
354 void (WINAPI *glTexCoord4iv)(const GLint *v);
355 void (WINAPI *glTexCoord4s)(GLshort s, GLshort t, GLshort r, GLshort q);
356 void (WINAPI *glTexCoord4sv)(const GLshort *v);
357 void (WINAPI *glTexCoordPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
358 void (WINAPI *glTexEnvf)(GLenum target, GLenum pname, GLfloat param);
359 void (WINAPI *glTexEnvfv)(GLenum target, GLenum pname, const GLfloat *params);
360 void (WINAPI *glTexEnvi)(GLenum target, GLenum pname, GLint param);
361 void (WINAPI *glTexEnviv)(GLenum target, GLenum pname, const GLint *params);
362 void (WINAPI *glTexGend)(GLenum coord, GLenum pname, GLdouble param);
363 void (WINAPI *glTexGendv)(GLenum coord, GLenum pname, const GLdouble *params);
364 void (WINAPI *glTexGenf)(GLenum coord, GLenum pname, GLfloat param);
365 void (WINAPI *glTexGenfv)(GLenum coord, GLenum pname, const GLfloat *params);
366 void (WINAPI *glTexGeni)(GLenum coord, GLenum pname, GLint param);
367 void (WINAPI *glTexGeniv)(GLenum coord, GLenum pname, const GLint *params);
368 void (WINAPI *glTexImage1D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
369 void (WINAPI *glTexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
370 void (WINAPI *glTexParameterf)(GLenum target, GLenum pname, GLfloat param);
371 void (WINAPI *glTexParameterfv)(GLenum target, GLenum pname, const GLfloat *params);
372 void (WINAPI *glTexParameteri)(GLenum target, GLenum pname, GLint param);
373 void (WINAPI *glTexParameteriv)(GLenum target, GLenum pname, const GLint *params);
374 void (WINAPI *glTexSubImage1D)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
375 void (WINAPI *glTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
376 void (WINAPI *glTranslated)(GLdouble x, GLdouble y, GLdouble z);
377 void (WINAPI *glTranslatef)(GLfloat x, GLfloat y, GLfloat z);
378 void (WINAPI *glVertex2d)(GLdouble x, GLdouble y);
379 void (WINAPI *glVertex2dv)(const GLdouble *v);
380 void (WINAPI *glVertex2f)(GLfloat x, GLfloat y);
381 void (WINAPI *glVertex2fv)(const GLfloat *v);
382 void (WINAPI *glVertex2i)(GLint x, GLint y);
383 void (WINAPI *glVertex2iv)(const GLint *v);
384 void (WINAPI *glVertex2s)(GLshort x, GLshort y);
385 void (WINAPI *glVertex2sv)(const GLshort *v);
386 void (WINAPI *glVertex3d)(GLdouble x, GLdouble y, GLdouble z);
387 void (WINAPI *glVertex3dv)(const GLdouble *v);
388 void (WINAPI *glVertex3f)(GLfloat x, GLfloat y, GLfloat z);
389 void (WINAPI *glVertex3fv)(const GLfloat *v);
390 void (WINAPI *glVertex3i)(GLint x, GLint y, GLint z);
391 void (WINAPI *glVertex3iv)(const GLint *v);
392 void (WINAPI *glVertex3s)(GLshort x, GLshort y, GLshort z);
393 void (WINAPI *glVertex3sv)(const GLshort *v);
394 void (WINAPI *glVertex4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
395 void (WINAPI *glVertex4dv)(const GLdouble *v);
396 void (WINAPI *glVertex4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
397 void (WINAPI *glVertex4fv)(const GLfloat *v);
398 void (WINAPI *glVertex4i)(GLint x, GLint y, GLint z, GLint w);
399 void (WINAPI *glVertex4iv)(const GLint *v);
400 void (WINAPI *glVertex4s)(GLshort x, GLshort y, GLshort z, GLshort w);
401 void (WINAPI *glVertex4sv)(const GLshort *v);
402 void (WINAPI *glVertexPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
403 void (WINAPI *glViewport)(GLint x, GLint y, GLsizei width, GLsizei height);
404
405 BOOL (WINAPI *wglCopyContext)(HGLRC, HGLRC, UINT);
406 HGLRC (WINAPI *wglCreateContext)(HDC);
407 HGLRC (WINAPI *wglCreateLayerContext)(HDC, int);
408 BOOL (WINAPI *wglDeleteContext)(HGLRC);
409 HGLRC (WINAPI *wglGetCurrentContext)(VOID);
410 HDC (WINAPI *wglGetCurrentDC)(VOID);
411 PROC (WINAPI *wglGetProcAddress)(LPCSTR);
412 BOOL (WINAPI *wglMakeCurrent)(HDC, HGLRC);
413 BOOL (WINAPI *wglShareLists)(HGLRC, HGLRC);
414
415 int f_0564;
416
417 int glActiveTextureARB;
418 int glClientActiveTextureARB;
419 int glMultiTexCoord4fARB;
420 int glMultiTexCoord2fvARB;
421 int glBlendColor;
422 int f_057C;
423 int f_0580;
424 int f_0584;
425 int f_0588;
426 int glCompressedTexImaged3DARB;
427 int glCompressedTexImaged2DARB;
428 int glCompressedTexImage1DARB;
429 int glCompressedTexSubImage3DARB;
430 int glCompressedTexSubImage2DARB;
431 int glCompressedTexSubImage1DARB;
432 int glCompressedTexImageARB;
433
434 GLboolean (WINAPI *wglSwapIntervalEXT)(GLint interval);
435
436 GLint (WINAPI *wglSetDeviceGammaRamp3DFX)(HDC, M3tWin32GammaRamp*);
437 GLint (WINAPI *wglGetDeviceGammaRamp3DFX)(HDC, M3tWin32GammaRamp*);
438} gl_api_t;
439
440
441#endif
Note: See TracBrowser for help on using the repository browser.