source: Daodan/src/Oni_GL.h@ 875

Last change on this file since 875 was 739, checked in by iritscen, 12 years ago

Fixed significant misspellings.

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