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