Line |
Branch |
Exec |
Source |
1 |
|
|
/* GATE PROJECT LICENSE: |
2 |
|
|
+----------------------------------------------------------------------------+ |
3 |
|
|
| Copyright(c) 2018-2025, Stefan Meislinger | |
4 |
|
|
| All rights reserved. | |
5 |
|
|
| | |
6 |
|
|
| Redistribution and use in source and binary forms, with or without | |
7 |
|
|
| modification, are permitted provided that the following conditions are met:| |
8 |
|
|
| | |
9 |
|
|
| 1. Redistributions of source code must retain the above copyright notice, | |
10 |
|
|
| this list of conditions and the following disclaimer. | |
11 |
|
|
| 2. Redistributions in binary form must reproduce the above copyright | |
12 |
|
|
| notice, this list of conditions and the following disclaimer in the | |
13 |
|
|
| documentation and/or other materials provided with the distribution. | |
14 |
|
|
| | |
15 |
|
|
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"| |
16 |
|
|
| AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
17 |
|
|
| IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
18 |
|
|
| ARE DISCLAIMED.IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | |
19 |
|
|
| LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
20 |
|
|
| CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
21 |
|
|
| SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
22 |
|
|
| INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
23 |
|
|
| CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
24 |
|
|
| ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | |
25 |
|
|
| THE POSSIBILITY OF SUCH DAMAGE. | |
26 |
|
|
+----------------------------------------------------------------------------+ |
27 |
|
|
*/ |
28 |
|
|
#ifndef GATE_GRAPHICS_PLATFORM_OPENGL_APIS_H_INCLUDED |
29 |
|
|
#define GATE_GRAPHICS_PLATFORM_OPENGL_APIS_H_INCLUDED |
30 |
|
|
|
31 |
|
|
#include "gate/gatetypes.h" |
32 |
|
|
#include "gate/libraries.h" |
33 |
|
|
#include "gate/results.h" |
34 |
|
|
#include "gate/platforms.h" |
35 |
|
|
|
36 |
|
|
#if defined(GATE_SYS_ANDROID) |
37 |
|
|
# include <GLES/gl.h> |
38 |
|
|
# define GATE_OPENGL_NO_DBL |
39 |
|
|
#elif defined(GATE_SYS_WINCE) |
40 |
|
|
# include <GLES/gl.h> |
41 |
|
|
# define GATE_OPENGL_NO_DBL |
42 |
|
|
#elif defined(GATE_SYS_DARWIN) |
43 |
|
|
# include <OpenGL/gl.h> |
44 |
|
|
#else |
45 |
|
|
# include <GL/gl.h> |
46 |
|
|
#endif |
47 |
|
|
|
48 |
|
|
#if defined(GATE_SYS_WIN) |
49 |
|
|
|
50 |
|
|
# define OGLAPI WINAPI |
51 |
|
|
# define OPENGL_LIBNAME "opengl32.dll" |
52 |
|
|
# define OPENGL_LIBNAME_ALT "opengl32.dll" |
53 |
|
|
|
54 |
|
|
#elif defined(GATE_SYS_ANDROID) |
55 |
|
|
# define OGLAPI |
56 |
|
|
# define OPENGL_LIBNAME "libGLESv1_CM.so" |
57 |
|
|
# define OPENGL_LIBNAME_ALT "libGL.so.1.2" |
58 |
|
|
|
59 |
|
|
#else |
60 |
|
|
|
61 |
|
|
# define OGLAPI |
62 |
|
|
# define OPENGL_LIBNAME "libGL.so" |
63 |
|
|
# define OPENGL_LIBNAME_ALT "libGL.so.1" |
64 |
|
|
|
65 |
|
|
#endif |
66 |
|
|
|
67 |
|
|
typedef struct gate_gl_api_functions_class |
68 |
|
|
{ |
69 |
|
|
//void (OGLAPI *glAccum) (GLenum op, GLfloat value); |
70 |
|
|
void (OGLAPI* glAlphaFunc) (GLenum func, GLclampf ref); |
71 |
|
|
//GLboolean(OGLAPI *glAreTexturesResident)(GLsizei n, const GLuint *textures, GLboolean *residences); |
72 |
|
|
//void (OGLAPI *glArrayElement) (GLint i); |
73 |
|
|
//void (OGLAPI *glBegin) (GLenum mode); |
74 |
|
|
void (OGLAPI* glBindTexture) (GLenum target, GLuint texture); |
75 |
|
|
//void (OGLAPI *glBitmap) (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); |
76 |
|
|
void (OGLAPI* glBlendFunc) (GLenum sfactor, GLenum dfactor); |
77 |
|
|
//void (OGLAPI *glCallList) (GLuint list); |
78 |
|
|
//void (OGLAPI *glCallLists) (GLsizei n, GLenum type, const GLvoid *lists); |
79 |
|
|
void (OGLAPI* glClear) (GLbitfield mask); |
80 |
|
|
//void (OGLAPI *glClearAccum) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); |
81 |
|
|
void (OGLAPI* glClearColor) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); |
82 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
83 |
|
|
void (OGLAPI* glClearDepth) (GLclampf depth); |
84 |
|
|
#else |
85 |
|
|
void (OGLAPI* glClearDepth) (GLclampd depth); |
86 |
|
|
#endif |
87 |
|
|
//void (OGLAPI *glClearIndex) (GLfloat c); |
88 |
|
|
void (OGLAPI* glClearStencil) (GLint s); |
89 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
90 |
|
|
void (OGLAPI* glClipPlane) (GLenum plane, const GLfloat* equation); |
91 |
|
|
#else |
92 |
|
|
void (OGLAPI* glClipPlane) (GLenum plane, const GLdouble* equation); |
93 |
|
|
#endif |
94 |
|
|
//void (OGLAPI *glColor3b) (GLbyte red, GLbyte green, GLbyte blue); |
95 |
|
|
//void (OGLAPI *glColor3bv) (const GLbyte *v); |
96 |
|
|
//void (OGLAPI *glColor3d) (GLdouble red, GLdouble green, GLdouble blue); |
97 |
|
|
//void (OGLAPI *glColor3dv) (const GLdouble *v); |
98 |
|
|
//void (OGLAPI *glColor3f) (GLfloat red, GLfloat green, GLfloat blue); |
99 |
|
|
//void (OGLAPI *glColor3fv) (const GLfloat *v); |
100 |
|
|
//void (OGLAPI *glColor3i) (GLint red, GLint green, GLint blue); |
101 |
|
|
//void (OGLAPI *glColor3iv) (const GLint *v); |
102 |
|
|
//void (OGLAPI *glColor3s) (GLshort red, GLshort green, GLshort blue); |
103 |
|
|
//void (OGLAPI *glColor3sv) (const GLshort *v); |
104 |
|
|
//void (OGLAPI *glColor3ub) (GLubyte red, GLubyte green, GLubyte blue); |
105 |
|
|
//void (OGLAPI *glColor3ubv) (const GLubyte *v); |
106 |
|
|
//void (OGLAPI *glColor3ui) (GLuint red, GLuint green, GLuint blue); |
107 |
|
|
//void (OGLAPI *glColor3uiv) (const GLuint *v); |
108 |
|
|
//void (OGLAPI *glColor3us) (GLushort red, GLushort green, GLushort blue); |
109 |
|
|
//void (OGLAPI *glColor3usv) (const GLushort *v); |
110 |
|
|
//void (OGLAPI *glColor4b) (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); |
111 |
|
|
//void (OGLAPI *glColor4bv) (const GLbyte *v); |
112 |
|
|
//void (OGLAPI *glColor4d) (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); |
113 |
|
|
//void (OGLAPI *glColor4dv) (const GLdouble *v); |
114 |
|
|
void (OGLAPI* glColor4f) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); |
115 |
|
|
//void (OGLAPI *glColor4fv) (const GLfloat *v); |
116 |
|
|
//void (OGLAPI *glColor4i) (GLint red, GLint green, GLint blue, GLint alpha); |
117 |
|
|
//void (OGLAPI *glColor4iv) (const GLint *v); |
118 |
|
|
//void (OGLAPI *glColor4s) (GLshort red, GLshort green, GLshort blue, GLshort alpha); |
119 |
|
|
//void (OGLAPI *glColor4sv) (const GLshort *v); |
120 |
|
|
void (OGLAPI* glColor4ub) (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); |
121 |
|
|
//void (OGLAPI *glColor4ubv) (const GLubyte *v); |
122 |
|
|
//void (OGLAPI *glColor4ui) (GLuint red, GLuint green, GLuint blue, GLuint alpha); |
123 |
|
|
//void (OGLAPI *glColor4uiv) (const GLuint *v); |
124 |
|
|
//void (OGLAPI *glColor4us) (GLushort red, GLushort green, GLushort blue, GLushort alpha); |
125 |
|
|
//void (OGLAPI *glColor4usv) (const GLushort *v); |
126 |
|
|
void (OGLAPI* glColorMask) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); |
127 |
|
|
//void (OGLAPI *glColorMaterial) (GLenum face, GLenum mode); |
128 |
|
|
void (OGLAPI* glColorPointer) (GLint size, GLenum type, GLsizei stride, const GLvoid* pointer); |
129 |
|
|
//void (OGLAPI *glCopyPixels) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); |
130 |
|
|
//void (OGLAPI *glCopyTexImage1D) (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); |
131 |
|
|
void (OGLAPI* glCopyTexImage2D) (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); |
132 |
|
|
//void (OGLAPI *glCopyTexSubImage1D) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); |
133 |
|
|
void (OGLAPI* glCopyTexSubImage2D) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); |
134 |
|
|
void (OGLAPI* glCullFace) (GLenum mode); |
135 |
|
|
//void (OGLAPI *glDeleteLists) (GLuint list, GLsizei range); |
136 |
|
|
void (OGLAPI* glDeleteTextures) (GLsizei n, const GLuint* textures); |
137 |
|
|
void (OGLAPI* glDepthFunc) (GLenum func); |
138 |
|
|
void (OGLAPI* glDepthMask) (GLboolean flag); |
139 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
140 |
|
|
void (OGLAPI* glDepthRange) (GLclampf zNear, GLclampf zFar); |
141 |
|
|
#else |
142 |
|
|
void (OGLAPI* glDepthRange) (GLclampd zNear, GLclampd zFar); |
143 |
|
|
#endif |
144 |
|
|
void (OGLAPI* glDisable) (GLenum cap); |
145 |
|
|
void (OGLAPI* glDisableClientState) (GLenum array); |
146 |
|
|
void (OGLAPI* glDrawArrays) (GLenum mode, GLint first, GLsizei count); |
147 |
|
|
//void (OGLAPI *glDrawBuffer) (GLenum mode); |
148 |
|
|
void (OGLAPI* glDrawElements) (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices); |
149 |
|
|
//void (OGLAPI *glDrawPixels) (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); |
150 |
|
|
//void (OGLAPI *glEdgeFlag) (GLboolean flag); |
151 |
|
|
//void (OGLAPI *glEdgeFlagPointer)(GLsizei stride, const GLvoid *pointer); |
152 |
|
|
//void (OGLAPI *glEdgeFlagv) (const GLboolean *flag); |
153 |
|
|
void (OGLAPI* glEnable) (GLenum cap); |
154 |
|
|
void (OGLAPI* glEnableClientState) (GLenum array); |
155 |
|
|
//void (OGLAPI *glEnd) (void); |
156 |
|
|
//void (OGLAPI *glEndList) (void); |
157 |
|
|
//void (OGLAPI *glEvalCoord1d) (GLdouble u); |
158 |
|
|
//void (OGLAPI *glEvalCoord1dv) (const GLdouble *u); |
159 |
|
|
//void (OGLAPI *glEvalCoord1f) (GLfloat u); |
160 |
|
|
//void (OGLAPI *glEvalCoord1fv) (const GLfloat *u); |
161 |
|
|
//void (OGLAPI *glEvalCoord2d) (GLdouble u, GLdouble v); |
162 |
|
|
//void (OGLAPI *glEvalCoord2dv) (const GLdouble *u); |
163 |
|
|
//void (OGLAPI *glEvalCoord2f) (GLfloat u, GLfloat v); |
164 |
|
|
//void (OGLAPI *glEvalCoord2fv) (const GLfloat *u); |
165 |
|
|
//void (OGLAPI *glEvalMesh1) (GLenum mode, GLint i1, GLint i2); |
166 |
|
|
//void (OGLAPI *glEvalMesh2) (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); |
167 |
|
|
//void (OGLAPI *glEvalPoint1) (GLint i); |
168 |
|
|
//void (OGLAPI *glEvalPoint2) (GLint i, GLint j); |
169 |
|
|
//void (OGLAPI *glFeedbackBuffer) (GLsizei size, GLenum type, GLfloat *buffer); |
170 |
|
|
void (OGLAPI* glFinish) (void); |
171 |
|
|
void (OGLAPI* glFlush) (void); |
172 |
|
|
void (OGLAPI* glFogf) (GLenum pname, GLfloat param); |
173 |
|
|
void (OGLAPI* glFogfv) (GLenum pname, const GLfloat* params); |
174 |
|
|
//void (OGLAPI *glFogi) (GLenum pname, GLint param); |
175 |
|
|
//void (OGLAPI *glFogiv) (GLenum pname, const GLint *params); |
176 |
|
|
void (OGLAPI* glFrontFace) (GLenum mode); |
177 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
178 |
|
|
void (OGLAPI* glFrustum) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); |
179 |
|
|
#else |
180 |
|
|
void (OGLAPI* glFrustum) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); |
181 |
|
|
#endif |
182 |
|
|
//GLuint(OGLAPI *glGenLists) (GLsizei range); |
183 |
|
|
void (OGLAPI* glGenTextures) (GLsizei n, GLuint* textures); |
184 |
|
|
void (OGLAPI* glGetBooleanv) (GLenum pname, GLboolean* params); |
185 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
186 |
|
|
void (OGLAPI* glGetClipPlane) (GLenum pname, GLfloat eqn[4]); |
187 |
|
|
#else |
188 |
|
|
void (OGLAPI* glGetClipPlane) (GLenum plane, GLdouble* equation); |
189 |
|
|
#endif |
190 |
|
|
//void (OGLAPI *glGetDoublev) (GLenum pname, GLdouble *params); |
191 |
|
|
GLenum(OGLAPI* glGetError) (void); |
192 |
|
|
void (OGLAPI* glGetFloatv) (GLenum pname, GLfloat* params); |
193 |
|
|
void (OGLAPI* glGetIntegerv) (GLenum pname, GLint* params); |
194 |
|
|
void (OGLAPI* glGetLightfv) (GLenum light, GLenum pname, GLfloat* params); |
195 |
|
|
//void (OGLAPI *glGetLightiv) (GLenum light, GLenum pname, GLint *params); |
196 |
|
|
//void (OGLAPI *glGetMapdv) (GLenum target, GLenum query, GLdouble *v); |
197 |
|
|
//void (OGLAPI *glGetMapfv) (GLenum target, GLenum query, GLfloat *v); |
198 |
|
|
//void (OGLAPI *glGetMapiv) (GLenum target, GLenum query, GLint *v); |
199 |
|
|
void (OGLAPI* glGetMaterialfv) (GLenum face, GLenum pname, GLfloat* params); |
200 |
|
|
//void (OGLAPI *glGetMaterialiv) (GLenum face, GLenum pname, GLint *params); |
201 |
|
|
//void (OGLAPI *glGetPixelMapfv) (GLenum map, GLfloat *values); |
202 |
|
|
//void (OGLAPI *glGetPixelMapuiv) (GLenum map, GLuint *values); |
203 |
|
|
//void (OGLAPI *glGetPixelMapusv) (GLenum map, GLushort *values); |
204 |
|
|
void (OGLAPI* glGetPointerv) (GLenum pname, GLvoid** params); |
205 |
|
|
//void (OGLAPI *glGetPolygonStipple) (GLubyte *mask); |
206 |
|
|
GLubyte const* (OGLAPI* glGetString) (GLenum name); |
207 |
|
|
void (OGLAPI* glGetTexEnvfv) (GLenum target, GLenum pname, GLfloat* params); |
208 |
|
|
void (OGLAPI* glGetTexEnviv) (GLenum target, GLenum pname, GLint* params); |
209 |
|
|
//void (OGLAPI *glGetTexGendv) (GLenum coord, GLenum pname, GLdouble *params); |
210 |
|
|
//void (OGLAPI *glGetTexGenfv) (GLenum coord, GLenum pname, GLfloat *params); |
211 |
|
|
//void (OGLAPI *glGetTexGeniv) (GLenum coord, GLenum pname, GLint *params); |
212 |
|
|
//void (OGLAPI *glGetTexImage) (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); |
213 |
|
|
//void (OGLAPI *glGetTexLevelParameterfv) (GLenum target, GLint level, GLenum pname, GLfloat *params); |
214 |
|
|
//void (OGLAPI *glGetTexLevelParameteriv) (GLenum target, GLint level, GLenum pname, GLint *params); |
215 |
|
|
void (OGLAPI* glGetTexParameterfv) (GLenum target, GLenum pname, GLfloat* params); |
216 |
|
|
void (OGLAPI* glGetTexParameteriv) (GLenum target, GLenum pname, GLint* params); |
217 |
|
|
void (OGLAPI* glHint) (GLenum target, GLenum mode); |
218 |
|
|
//void (OGLAPI *glIndexMask) (GLuint mask); |
219 |
|
|
//void (OGLAPI *glIndexPointer) (GLenum type, GLsizei stride, const GLvoid *pointer); |
220 |
|
|
//void (OGLAPI *glIndexd) (GLdouble c); |
221 |
|
|
//void (OGLAPI *glIndexdv) (const GLdouble *c); |
222 |
|
|
//void (OGLAPI *glIndexf) (GLfloat c); |
223 |
|
|
//void (OGLAPI *glIndexfv) (const GLfloat *c); |
224 |
|
|
//void (OGLAPI *glIndexi) (GLint c); |
225 |
|
|
//void (OGLAPI *glIndexiv) (const GLint *c); |
226 |
|
|
//void (OGLAPI *glIndexs) (GLshort c); |
227 |
|
|
//void (OGLAPI *glIndexsv) (const GLshort *c); |
228 |
|
|
//void (OGLAPI *glIndexub) (GLubyte c); |
229 |
|
|
//void (OGLAPI *glIndexubv) (const GLubyte *c); |
230 |
|
|
//void (OGLAPI *glInitNames) (void); |
231 |
|
|
//void (OGLAPI *glInterleavedArrays) (GLenum format, GLsizei stride, const GLvoid *pointer); |
232 |
|
|
GLboolean(OGLAPI* glIsEnabled) (GLenum cap); |
233 |
|
|
//GLboolean(OGLAPI *glIsList) (GLuint list); |
234 |
|
|
GLboolean(OGLAPI* glIsTexture) (GLuint texture); |
235 |
|
|
void (OGLAPI* glLightModelf) (GLenum pname, GLfloat param); |
236 |
|
|
void (OGLAPI* glLightModelfv) (GLenum pname, const GLfloat* params); |
237 |
|
|
//void (OGLAPI *glLightModeli) (GLenum pname, GLint param); |
238 |
|
|
//void (OGLAPI *glLightModeliv) (GLenum pname, const GLint *params); |
239 |
|
|
void (OGLAPI* glLightf) (GLenum light, GLenum pname, GLfloat param); |
240 |
|
|
void (OGLAPI* glLightfv) (GLenum light, GLenum pname, const GLfloat* params); |
241 |
|
|
//void (OGLAPI *glLighti) (GLenum light, GLenum pname, GLint param); |
242 |
|
|
//void (OGLAPI *glLightiv) (GLenum light, GLenum pname, const GLint *params); |
243 |
|
|
//void (OGLAPI *glLineStipple) (GLint factor, GLushort pattern); |
244 |
|
|
void (OGLAPI* glLineWidth) (GLfloat width); |
245 |
|
|
//void (OGLAPI *glListBase) (GLuint base); |
246 |
|
|
void (OGLAPI* glLoadIdentity) (void); |
247 |
|
|
//void (OGLAPI *glLoadMatrixd) (const GLdouble *m); |
248 |
|
|
void (OGLAPI* glLoadMatrixf) (const GLfloat* m); |
249 |
|
|
//void (OGLAPI *glLoadName) (GLuint name); |
250 |
|
|
void (OGLAPI* glLogicOp) (GLenum opcode); |
251 |
|
|
//void (OGLAPI *glMap1d) (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); |
252 |
|
|
//void (OGLAPI *glMap1f) (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); |
253 |
|
|
//void (OGLAPI *glMap2d) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); |
254 |
|
|
//void (OGLAPI *glMap2f) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); |
255 |
|
|
//void (OGLAPI *glMapGrid1d) (GLint un, GLdouble u1, GLdouble u2); |
256 |
|
|
//void (OGLAPI *glMapGrid1f) (GLint un, GLfloat u1, GLfloat u2); |
257 |
|
|
//void (OGLAPI *glMapGrid2d) (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); |
258 |
|
|
//void (OGLAPI *glMapGrid2f) (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); |
259 |
|
|
void (OGLAPI* glMaterialf) (GLenum face, GLenum pname, GLfloat param); |
260 |
|
|
void (OGLAPI* glMaterialfv) (GLenum face, GLenum pname, const GLfloat* params); |
261 |
|
|
//void (OGLAPI *glMateriali) (GLenum face, GLenum pname, GLint param); |
262 |
|
|
//void (OGLAPI *glMaterialiv) (GLenum face, GLenum pname, const GLint *params); |
263 |
|
|
void (OGLAPI* glMatrixMode) (GLenum mode); |
264 |
|
|
//void (OGLAPI *glMultMatrixd) (const GLdouble *m); |
265 |
|
|
void (OGLAPI* glMultMatrixf) (const GLfloat* m); |
266 |
|
|
//void (OGLAPI *glNewList) (GLuint list, GLenum mode); |
267 |
|
|
//void (OGLAPI *glNormal3b) (GLbyte nx, GLbyte ny, GLbyte nz); |
268 |
|
|
//void (OGLAPI *glNormal3bv) (const GLbyte *v); |
269 |
|
|
//void (OGLAPI *glNormal3d) (GLdouble nx, GLdouble ny, GLdouble nz); |
270 |
|
|
//void (OGLAPI *glNormal3dv) (const GLdouble *v); |
271 |
|
|
void (OGLAPI* glNormal3f) (GLfloat nx, GLfloat ny, GLfloat nz); |
272 |
|
|
//void (OGLAPI *glNormal3fv) (const GLfloat *v); |
273 |
|
|
//void (OGLAPI *glNormal3i) (GLint nx, GLint ny, GLint nz); |
274 |
|
|
//void (OGLAPI *glNormal3iv) (const GLint *v); |
275 |
|
|
//void (OGLAPI *glNormal3s) (GLshort nx, GLshort ny, GLshort nz); |
276 |
|
|
//void (OGLAPI *glNormal3sv) (const GLshort *v); |
277 |
|
|
void (OGLAPI* glNormalPointer) (GLenum type, GLsizei stride, const GLvoid* pointer); |
278 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
279 |
|
|
void (OGLAPI* glOrtho) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); |
280 |
|
|
#else |
281 |
|
|
void (OGLAPI* glOrtho) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); |
282 |
|
|
#endif |
283 |
|
|
//void (OGLAPI *glPassThrough) (GLfloat token); |
284 |
|
|
//void (OGLAPI *glPixelMapfv) (GLenum map, GLsizei mapsize, const GLfloat *values); |
285 |
|
|
//void (OGLAPI *glPixelMapuiv) (GLenum map, GLsizei mapsize, const GLuint *values); |
286 |
|
|
//void (OGLAPI *glPixelMapusv) (GLenum map, GLsizei mapsize, const GLushort *values); |
287 |
|
|
//void (OGLAPI *glPixelStoref) (GLenum pname, GLfloat param); |
288 |
|
|
void (OGLAPI* glPixelStorei) (GLenum pname, GLint param); |
289 |
|
|
//void (OGLAPI *glPixelTransferf) (GLenum pname, GLfloat param); |
290 |
|
|
//void (OGLAPI *glPixelTransferi) (GLenum pname, GLint param); |
291 |
|
|
//void (OGLAPI *glPixelZoom) (GLfloat xfactor, GLfloat yfactor); |
292 |
|
|
void (OGLAPI* glPointSize) (GLfloat size); |
293 |
|
|
//void (OGLAPI *glPolygonMode) (GLenum face, GLenum mode); |
294 |
|
|
void (OGLAPI* glPolygonOffset) (GLfloat factor, GLfloat units); |
295 |
|
|
//void (OGLAPI *glPolygonStipple) (const GLubyte *mask); |
296 |
|
|
//void (OGLAPI *glPopAttrib) (void); |
297 |
|
|
//void (OGLAPI *glPopClientAttrib)(void); |
298 |
|
|
void (OGLAPI* glPopMatrix) (void); |
299 |
|
|
//void (OGLAPI *glPopName) (void); |
300 |
|
|
//void (OGLAPI *glPrioritizeTextures) (GLsizei n, const GLuint *textures, const GLclampf *priorities); |
301 |
|
|
//void (OGLAPI *glPushAttrib) (GLbitfield mask); |
302 |
|
|
//void (OGLAPI *glPushClientAttrib)(GLbitfield mask); |
303 |
|
|
void (OGLAPI* glPushMatrix) (void); |
304 |
|
|
//void (OGLAPI *glPushName) (GLuint name); |
305 |
|
|
//void (OGLAPI *glRasterPos2d) (GLdouble x, GLdouble y); |
306 |
|
|
//void (OGLAPI *glRasterPos2dv) (const GLdouble *v); |
307 |
|
|
//void (OGLAPI *glRasterPos2f) (GLfloat x, GLfloat y); |
308 |
|
|
//void (OGLAPI *glRasterPos2fv) (const GLfloat *v); |
309 |
|
|
//void (OGLAPI *glRasterPos2i) (GLint x, GLint y); |
310 |
|
|
//void (OGLAPI *glRasterPos2iv) (const GLint *v); |
311 |
|
|
//void (OGLAPI *glRasterPos2s) (GLshort x, GLshort y); |
312 |
|
|
//void (OGLAPI *glRasterPos2sv) (const GLshort *v); |
313 |
|
|
//void (OGLAPI *glRasterPos3d) (GLdouble x, GLdouble y, GLdouble z); |
314 |
|
|
//void (OGLAPI *glRasterPos3dv) (const GLdouble *v); |
315 |
|
|
//void (OGLAPI *glRasterPos3f) (GLfloat x, GLfloat y, GLfloat z); |
316 |
|
|
//void (OGLAPI *glRasterPos3fv) (const GLfloat *v); |
317 |
|
|
//void (OGLAPI *glRasterPos3i) (GLint x, GLint y, GLint z); |
318 |
|
|
//void (OGLAPI *glRasterPos3iv) (const GLint *v); |
319 |
|
|
//void (OGLAPI *glRasterPos3s) (GLshort x, GLshort y, GLshort z); |
320 |
|
|
//void (OGLAPI *glRasterPos3sv) (const GLshort *v); |
321 |
|
|
//void (OGLAPI *glRasterPos4d) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); |
322 |
|
|
//void (OGLAPI *glRasterPos4dv) (const GLdouble *v); |
323 |
|
|
//void (OGLAPI *glRasterPos4f) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); |
324 |
|
|
//void (OGLAPI *glRasterPos4fv) (const GLfloat *v); |
325 |
|
|
//void (OGLAPI *glRasterPos4i) (GLint x, GLint y, GLint z, GLint w); |
326 |
|
|
//void (OGLAPI *glRasterPos4iv) (const GLint *v); |
327 |
|
|
//void (OGLAPI *glRasterPos4s) (GLshort x, GLshort y, GLshort z, GLshort w); |
328 |
|
|
//void (OGLAPI *glRasterPos4sv) (const GLshort *v); |
329 |
|
|
//void (OGLAPI *glReadBuffer) (GLenum mode); |
330 |
|
|
void (OGLAPI* glReadPixels) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels); |
331 |
|
|
//void (OGLAPI *glRectd) (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); |
332 |
|
|
//void (OGLAPI *glRectdv) (const GLdouble *v1, const GLdouble *v2); |
333 |
|
|
//void (OGLAPI *glRectf) (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); |
334 |
|
|
//void (OGLAPI *glRectfv) (const GLfloat *v1, const GLfloat *v2); |
335 |
|
|
//void (OGLAPI *glRecti) (GLint x1, GLint y1, GLint x2, GLint y2); |
336 |
|
|
//void (OGLAPI *glRectiv) (const GLint *v1, const GLint *v2); |
337 |
|
|
//void (OGLAPI *glRects) (GLshort x1, GLshort y1, GLshort x2, GLshort y2); |
338 |
|
|
//void (OGLAPI *glRectsv) (const GLshort *v1, const GLshort *v2); |
339 |
|
|
//GLint(OGLAPI *glRenderMode) (GLenum mode); |
340 |
|
|
//void (OGLAPI *glRotated) (GLdouble angle, GLdouble x, GLdouble y, GLdouble z); |
341 |
|
|
void (OGLAPI* glRotatef) (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); |
342 |
|
|
//void (OGLAPI *glScaled) (GLdouble x, GLdouble y, GLdouble z); |
343 |
|
|
void (OGLAPI* glScalef) (GLfloat x, GLfloat y, GLfloat z); |
344 |
|
|
void (OGLAPI* glScissor) (GLint x, GLint y, GLsizei width, GLsizei height); |
345 |
|
|
//void (OGLAPI *glSelectBuffer) (GLsizei size, GLuint *buffer); |
346 |
|
|
void (OGLAPI* glShadeModel) (GLenum mode); |
347 |
|
|
void (OGLAPI* glStencilFunc) (GLenum func, GLint ref, GLuint mask); |
348 |
|
|
void (OGLAPI* glStencilMask) (GLuint mask); |
349 |
|
|
void (OGLAPI* glStencilOp) (GLenum fail, GLenum zfail, GLenum zpass); |
350 |
|
|
//void (OGLAPI *glTexCoord1d) (GLdouble s); |
351 |
|
|
//void (OGLAPI *glTexCoord1dv) (const GLdouble *v); |
352 |
|
|
//void (OGLAPI *glTexCoord1f) (GLfloat s); |
353 |
|
|
//void (OGLAPI *glTexCoord1fv) (const GLfloat *v); |
354 |
|
|
//void (OGLAPI *glTexCoord1i) (GLint s); |
355 |
|
|
//void (OGLAPI *glTexCoord1iv) (const GLint *v); |
356 |
|
|
//void (OGLAPI *glTexCoord1s) (GLshort s); |
357 |
|
|
//void (OGLAPI *glTexCoord1sv) (const GLshort *v); |
358 |
|
|
//void (OGLAPI *glTexCoord2d) (GLdouble s, GLdouble t); |
359 |
|
|
//void (OGLAPI *glTexCoord2dv) (const GLdouble *v); |
360 |
|
|
//void (OGLAPI *glTexCoord2f) (GLfloat s, GLfloat t); |
361 |
|
|
//void (OGLAPI *glTexCoord2fv) (const GLfloat *v); |
362 |
|
|
//void (OGLAPI *glTexCoord2i) (GLint s, GLint t); |
363 |
|
|
//void (OGLAPI *glTexCoord2iv) (const GLint *v); |
364 |
|
|
//void (OGLAPI *glTexCoord2s) (GLshort s, GLshort t); |
365 |
|
|
//void (OGLAPI *glTexCoord2sv) (const GLshort *v); |
366 |
|
|
//void (OGLAPI *glTexCoord3d) (GLdouble s, GLdouble t, GLdouble r); |
367 |
|
|
//void (OGLAPI *glTexCoord3dv) (const GLdouble *v); |
368 |
|
|
//void (OGLAPI *glTexCoord3f) (GLfloat s, GLfloat t, GLfloat r); |
369 |
|
|
//void (OGLAPI *glTexCoord3fv) (const GLfloat *v); |
370 |
|
|
//void (OGLAPI *glTexCoord3i) (GLint s, GLint t, GLint r); |
371 |
|
|
//void (OGLAPI *glTexCoord3iv) (const GLint *v); |
372 |
|
|
//void (OGLAPI *glTexCoord3s) (GLshort s, GLshort t, GLshort r); |
373 |
|
|
//void (OGLAPI *glTexCoord3sv) (const GLshort *v); |
374 |
|
|
//void (OGLAPI *glTexCoord4d) (GLdouble s, GLdouble t, GLdouble r, GLdouble q); |
375 |
|
|
//void (OGLAPI *glTexCoord4dv) (const GLdouble *v); |
376 |
|
|
//void (OGLAPI *glTexCoord4f) (GLfloat s, GLfloat t, GLfloat r, GLfloat q); |
377 |
|
|
//void (OGLAPI *glTexCoord4fv) (const GLfloat *v); |
378 |
|
|
//void (OGLAPI *glTexCoord4i) (GLint s, GLint t, GLint r, GLint q); |
379 |
|
|
//void (OGLAPI *glTexCoord4iv) (const GLint *v); |
380 |
|
|
//void (OGLAPI *glTexCoord4s) (GLshort s, GLshort t, GLshort r, GLshort q); |
381 |
|
|
//void (OGLAPI *glTexCoord4sv) (const GLshort *v); |
382 |
|
|
void (OGLAPI* glTexCoordPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer); |
383 |
|
|
void (OGLAPI* glTexEnvf) (GLenum target, GLenum pname, GLfloat param); |
384 |
|
|
void (OGLAPI* glTexEnvfv) (GLenum target, GLenum pname, const GLfloat* params); |
385 |
|
|
void (OGLAPI* glTexEnvi) (GLenum target, GLenum pname, GLint param); |
386 |
|
|
void (OGLAPI* glTexEnviv) (GLenum target, GLenum pname, const GLint* params); |
387 |
|
|
//void (OGLAPI *glTexGend) (GLenum coord, GLenum pname, GLdouble param); |
388 |
|
|
//void (OGLAPI *glTexGendv) (GLenum coord, GLenum pname, const GLdouble *params); |
389 |
|
|
//void (OGLAPI *glTexGenf) (GLenum coord, GLenum pname, GLfloat param); |
390 |
|
|
//void (OGLAPI *glTexGenfv) (GLenum coord, GLenum pname, const GLfloat *params); |
391 |
|
|
//void (OGLAPI *glTexGeni) (GLenum coord, GLenum pname, GLint param); |
392 |
|
|
//void (OGLAPI *glTexGeniv) (GLenum coord, GLenum pname, const GLint *params); |
393 |
|
|
//void (OGLAPI *glTexImage1D) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); |
394 |
|
|
void (OGLAPI* glTexImage2D) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels); |
395 |
|
|
void (OGLAPI* glTexParameterf) (GLenum target, GLenum pname, GLfloat param); |
396 |
|
|
void (OGLAPI* glTexParameterfv) (GLenum target, GLenum pname, const GLfloat* params); |
397 |
|
|
void (OGLAPI* glTexParameteri) (GLenum target, GLenum pname, GLint param); |
398 |
|
|
void (OGLAPI* glTexParameteriv) (GLenum target, GLenum pname, const GLint* params); |
399 |
|
|
//void (OGLAPI *glTexSubImage1D) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); |
400 |
|
|
void (OGLAPI* glTexSubImage2D) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels); |
401 |
|
|
//void (OGLAPI *glTranslated) (GLdouble x, GLdouble y, GLdouble z); |
402 |
|
|
void (OGLAPI* glTranslatef) (GLfloat x, GLfloat y, GLfloat z); |
403 |
|
|
//void (OGLAPI *glVertex2d) (GLdouble x, GLdouble y); |
404 |
|
|
//void (OGLAPI *glVertex2dv) (const GLdouble *v); |
405 |
|
|
//void (OGLAPI *glVertex2f) (GLfloat x, GLfloat y); |
406 |
|
|
//void (OGLAPI *glVertex2fv) (const GLfloat *v); |
407 |
|
|
//void (OGLAPI *glVertex2i) (GLint x, GLint y); |
408 |
|
|
//void (OGLAPI *glVertex2iv) (const GLint *v); |
409 |
|
|
//void (OGLAPI *glVertex2s) (GLshort x, GLshort y); |
410 |
|
|
//void (OGLAPI *glVertex2sv) (const GLshort *v); |
411 |
|
|
//void (OGLAPI *glVertex3d) (GLdouble x, GLdouble y, GLdouble z); |
412 |
|
|
//void (OGLAPI *glVertex3dv) (const GLdouble *v); |
413 |
|
|
//void (OGLAPI *glVertex3f) (GLfloat x, GLfloat y, GLfloat z); |
414 |
|
|
//void (OGLAPI *glVertex3fv) (const GLfloat *v); |
415 |
|
|
//void (OGLAPI *glVertex3i) (GLint x, GLint y, GLint z); |
416 |
|
|
//void (OGLAPI *glVertex3iv) (const GLint *v); |
417 |
|
|
//void (OGLAPI *glVertex3s) (GLshort x, GLshort y, GLshort z); |
418 |
|
|
//void (OGLAPI *glVertex3sv) (const GLshort *v); |
419 |
|
|
//void (OGLAPI *glVertex4d) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); |
420 |
|
|
//void (OGLAPI *glVertex4dv) (const GLdouble *v); |
421 |
|
|
//void (OGLAPI *glVertex4f) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); |
422 |
|
|
//void (OGLAPI *glVertex4fv) (const GLfloat *v); |
423 |
|
|
//void (OGLAPI *glVertex4i) (GLint x, GLint y, GLint z, GLint w); |
424 |
|
|
//void (OGLAPI *glVertex4iv) (const GLint *v); |
425 |
|
|
//void (OGLAPI *glVertex4s) (GLshort x, GLshort y, GLshort z, GLshort w); |
426 |
|
|
//void (OGLAPI *glVertex4sv) (const GLshort *v); |
427 |
|
|
void (OGLAPI* glVertexPointer) (GLint size, GLenum type, GLsizei stride, const GLvoid* pointer); |
428 |
|
|
void (OGLAPI* glViewport) (GLint x, GLint y, GLsizei width, GLsizei height); |
429 |
|
|
|
430 |
|
|
} gate_gl_api_functions_t; |
431 |
|
|
|
432 |
|
|
|
433 |
|
|
static gate_gl_api_functions_t gate_gl_api = GATE_INIT_EMPTY; |
434 |
|
|
|
435 |
|
|
|
436 |
|
✗ |
static gate_result_t gate_gl_api_load_functions() |
437 |
|
|
{ |
438 |
|
|
static volatile bool opengl_lib_loaded = false; |
439 |
|
|
static gate_library_t opengl_lib_handle = NULL; |
440 |
|
|
static gate_string_t const opengl_lib_name = GATE_STRING_INIT_STATIC(OPENGL_LIBNAME); |
441 |
|
|
static gate_string_t const opengl_lib_name_alt = GATE_STRING_INIT_STATIC(OPENGL_LIBNAME_ALT); |
442 |
|
✗ |
gate_result_t ret = GATE_RESULT_FAILED; |
443 |
|
✗ |
gate_gl_api_functions_t code = GATE_INIT_EMPTY; |
444 |
|
|
|
445 |
|
✗ |
if (opengl_lib_loaded) |
446 |
|
|
{ |
447 |
|
✗ |
ret = GATE_RESULT_OK; |
448 |
|
|
} |
449 |
|
|
else |
450 |
|
|
{ |
451 |
|
|
do |
452 |
|
|
{ |
453 |
|
✗ |
ret = gate_library_open(&opengl_lib_name, &opengl_lib_handle, GATE_LIBRARY_FLAG_DEFAULT); |
454 |
|
✗ |
if (GATE_FAILED(ret)) |
455 |
|
|
{ |
456 |
|
✗ |
ret = gate_library_open(&opengl_lib_name_alt, &opengl_lib_handle, GATE_LIBRARY_FLAG_DEFAULT); |
457 |
|
|
} |
458 |
|
✗ |
GATE_BREAK_IF_FAILED(ret); |
459 |
|
|
|
460 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glAccum", &code.glAccum); |
461 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glAlphaFunc", &code.glAlphaFunc); |
462 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glAreTexturesResident", &code.glAreTexturesResident); |
463 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glArrayElement", &code.glArrayElement); |
464 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glBegin", &code.glBegin); |
465 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glBindTexture", &code.glBindTexture); |
466 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glBitmap", &code.glBitmap); |
467 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glBlendFunc", &code.glBlendFunc); |
468 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glCallList", &code.glCallList); |
469 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glCallLists", &code.glCallLists); |
470 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glClear", &code.glClear); |
471 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glClearAccum", &code.glClearAccum); |
472 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glClearColor", &code.glClearColor); |
473 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
474 |
|
|
gate_library_get_function_name(opengl_lib_handle, "glClearDepthf", &code.glClearDepth); |
475 |
|
|
#else |
476 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glClearDepth", &code.glClearDepth); |
477 |
|
|
#endif |
478 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glClearIndex", &code.glClearIndex); |
479 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glClearStencil", &code.glClearStencil); |
480 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
481 |
|
|
gate_library_get_function_name(opengl_lib_handle, "glClipPlanef", &code.glClipPlane); |
482 |
|
|
#else |
483 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glClipPlane", &code.glClipPlane); |
484 |
|
|
#endif |
485 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3b", &code.glColor3b); |
486 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3bv", &code.glColor3bv); |
487 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3d", &code.glColor3d); |
488 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3dv", &code.glColor3dv); |
489 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3f", &code.glColor3f); |
490 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3fv", &code.glColor3fv); |
491 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3i", &code.glColor3i); |
492 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3iv", &code.glColor3iv); |
493 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3s", &code.glColor3s); |
494 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3sv", &code.glColor3sv); |
495 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3ub", &code.glColor3ub); |
496 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3ubv", &code.glColor3ubv); |
497 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3ui", &code.glColor3ui); |
498 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3uiv", &code.glColor3uiv); |
499 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3us", &code.glColor3us); |
500 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor3usv", &code.glColor3usv); |
501 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4b", &code.glColor4b); |
502 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4bv", &code.glColor4bv); |
503 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4d", &code.glColor4d); |
504 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4dv", &code.glColor4dv); |
505 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glColor4f", &code.glColor4f); |
506 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4fv", &code.glColor4fv); |
507 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4i", &code.glColor4i); |
508 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4iv", &code.glColor4iv); |
509 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4s", &code.glColor4s); |
510 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4sv", &code.glColor4sv); |
511 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glColor4ub", &code.glColor4ub); |
512 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4ubv", &code.glColor4ubv); |
513 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4ui", &code.glColor4ui); |
514 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4uiv", &code.glColor4uiv); |
515 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4us", &code.glColor4us); |
516 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColor4usv", &code.glColor4usv); |
517 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glColorMask", &code.glColorMask); |
518 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glColorMaterial", &code.glColorMaterial); |
519 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glColorPointer", &code.glColorPointer); |
520 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glCopyPixels", &code.glCopyPixels); |
521 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glCopyTexImage1D", &code.glCopyTexImage1D); |
522 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glCopyTexImage2D", &code.glCopyTexImage2D); |
523 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glCopyTexSubImage1D", &code.glCopyTexSubImage1D); |
524 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glCopyTexSubImage2D", &code.glCopyTexSubImage2D); |
525 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glCullFace", &code.glCullFace); |
526 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glDeleteLists", &code.glDeleteLists); |
527 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glDeleteTextures", &code.glDeleteTextures); |
528 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glDepthFunc", &code.glDepthFunc); |
529 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glDepthMask", &code.glDepthMask); |
530 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
531 |
|
|
gate_library_get_function_name(opengl_lib_handle, "glDepthRangef", &code.glDepthRange); |
532 |
|
|
#else |
533 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glDepthRange", &code.glDepthRange); |
534 |
|
|
#endif |
535 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glDisable", &code.glDisable); |
536 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glDisableClientState", &code.glDisableClientState); |
537 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glDrawArrays", &code.glDrawArrays); |
538 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glDrawBuffer", &code.glDrawBuffer); |
539 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glDrawElements", &code.glDrawElements); |
540 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glDrawPixels", &code.glDrawPixels); |
541 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEdgeFlag", &code.glEdgeFlag); |
542 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEdgeFlagPointer", &code.glEdgeFlagPointer); |
543 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEdgeFlagv", &code.glEdgeFlagv); |
544 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glEnable", &code.glEnable); |
545 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glEnableClientState", &code.glEnableClientState); |
546 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEnd", &code.glEnd); |
547 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEndList", &code.glEndList); |
548 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalCoord1d", &code.glEvalCoord1d); |
549 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalCoord1dv", &code.glEvalCoord1dv); |
550 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalCoord1f", &code.glEvalCoord1f); |
551 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalCoord1fv", &code.glEvalCoord1fv); |
552 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalCoord2d", &code.glEvalCoord2d); |
553 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalCoord2dv", &code.glEvalCoord2dv); |
554 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalCoord2f", &code.glEvalCoord2f); |
555 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalCoord2fv", &code.glEvalCoord2fv); |
556 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalMesh1", &code.glEvalMesh1); |
557 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalMesh2", &code.glEvalMesh2); |
558 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalPoint1", &code.glEvalPoint1); |
559 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glEvalPoint2", &code.glEvalPoint2); |
560 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glFeedbackBuffer", &code.glFeedbackBuffer); |
561 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glFinish", &code.glFinish); |
562 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glFlush", &code.glFlush); |
563 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glFogf", &code.glFogf); |
564 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glFogfv", &code.glFogfv); |
565 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glFogi", &code.glFogi); |
566 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glFogiv", &code.glFogiv); |
567 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glFrontFace", &code.glFrontFace); |
568 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
569 |
|
|
gate_library_get_function_name(opengl_lib_handle, "glFrustumf", &code.glFrustum); |
570 |
|
|
#else |
571 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glFrustum", &code.glFrustum); |
572 |
|
|
#endif |
573 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGenLists", &code.glGenLists); |
574 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGenTextures", &code.glGenTextures); |
575 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetBooleanv", &code.glGetBooleanv); |
576 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
577 |
|
|
gate_library_get_function_name(opengl_lib_handle, "glGetClipPlanef", &code.glGetClipPlane); |
578 |
|
|
#else |
579 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetClipPlane", &code.glGetClipPlane); |
580 |
|
|
#endif |
581 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetDoublev", &code.glGetDoublev); |
582 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetError", &code.glGetError); |
583 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetFloatv", &code.glGetFloatv); |
584 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetIntegerv", &code.glGetIntegerv); |
585 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetLightfv", &code.glGetLightfv); |
586 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetLightiv", &code.glGetLightiv); |
587 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetMapdv", &code.glGetMapdv); |
588 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetMapfv", &code.glGetMapfv); |
589 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetMapiv", &code.glGetMapiv); |
590 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetMaterialfv", &code.glGetMaterialfv); |
591 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetMaterialiv", &code.glGetMaterialiv); |
592 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetPixelMapfv", &code.glGetPixelMapfv); |
593 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetPixelMapuiv", &code.glGetPixelMapuiv); |
594 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetPixelMapusv", &code.glGetPixelMapusv); |
595 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetPointerv", &code.glGetPointerv); |
596 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetPolygonStipple", &code.glGetPolygonStipple); |
597 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetString", &code.glGetString); |
598 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetTexEnvfv", &code.glGetTexEnvfv); |
599 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetTexEnviv", &code.glGetTexEnviv); |
600 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetTexGendv", &code.glGetTexGendv); |
601 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetTexGenfv", &code.glGetTexGenfv); |
602 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetTexGeniv", &code.glGetTexGeniv); |
603 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetTexImage", &code.glGetTexImage); |
604 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetTexLevelParameterfv", &code.glGetTexLevelParameterfv); |
605 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glGetTexLevelParameteriv", &code.glGetTexLevelParameteriv); |
606 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetTexParameterfv", &code.glGetTexParameterfv); |
607 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glGetTexParameteriv", &code.glGetTexParameteriv); |
608 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glHint", &code.glHint); |
609 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexMask", &code.glIndexMask); |
610 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexPointer", &code.glIndexPointer); |
611 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexd", &code.glIndexd); |
612 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexdv", &code.glIndexdv); |
613 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexf", &code.glIndexf); |
614 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexfv", &code.glIndexfv); |
615 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexi", &code.glIndexi); |
616 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexiv", &code.glIndexiv); |
617 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexs", &code.glIndexs); |
618 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexsv", &code.glIndexsv); |
619 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexub", &code.glIndexub); |
620 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIndexubv", &code.glIndexubv); |
621 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glInitNames", &code.glInitNames); |
622 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glInterleavedArrays", &code.glInterleavedArrays); |
623 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glIsEnabled", &code.glIsEnabled); |
624 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glIsList", &code.glIsList); |
625 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glIsTexture", &code.glIsTexture); |
626 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glLightModelf", &code.glLightModelf); |
627 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glLightModelfv", &code.glLightModelfv); |
628 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glLightModeli", &code.glLightModeli); |
629 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glLightModeliv", &code.glLightModeliv); |
630 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glLightf", &code.glLightf); |
631 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glLightfv", &code.glLightfv); |
632 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glLighti", &code.glLighti); |
633 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glLightiv", &code.glLightiv); |
634 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glLineStipple", &code.glLineStipple); |
635 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glLineWidth", &code.glLineWidth); |
636 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glListBase", &code.glListBase); |
637 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glLoadIdentity", &code.glLoadIdentity); |
638 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glLoadMatrixd", &code.glLoadMatrixd); |
639 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glLoadMatrixf", &code.glLoadMatrixf); |
640 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glLoadName", &code.glLoadName); |
641 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glLogicOp", &code.glLogicOp); |
642 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glMap1d", &code.glMap1d); |
643 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glMap1f", &code.glMap1f); |
644 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glMap2d", &code.glMap2d); |
645 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glMap2f", &code.glMap2f); |
646 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glMapGrid1d", &code.glMapGrid1d); |
647 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glMapGrid1f", &code.glMapGrid1f); |
648 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glMapGrid2d", &code.glMapGrid2d); |
649 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glMapGrid2f", &code.glMapGrid2f); |
650 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glMaterialf", &code.glMaterialf); |
651 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glMaterialfv", &code.glMaterialfv); |
652 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glMateriali", &code.glMateriali); |
653 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glMaterialiv", &code.glMaterialiv); |
654 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glMatrixMode", &code.glMatrixMode); |
655 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glMultMatrixd", &code.glMultMatrixd); |
656 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glMultMatrixf", &code.glMultMatrixf); |
657 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glNewList", &code.glNewList); |
658 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glNormal3b", &code.glNormal3b); |
659 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glNormal3bv", &code.glNormal3bv); |
660 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glNormal3d", &code.glNormal3d); |
661 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glNormal3dv", &code.glNormal3dv); |
662 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glNormal3f", &code.glNormal3f); |
663 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glNormal3fv", &code.glNormal3fv); |
664 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glNormal3i", &code.glNormal3i); |
665 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glNormal3iv", &code.glNormal3iv); |
666 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glNormal3s", &code.glNormal3s); |
667 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glNormal3sv", &code.glNormal3sv); |
668 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glNormalPointer", &code.glNormalPointer); |
669 |
|
|
#if defined(GATE_OPENGL_NO_DBL) |
670 |
|
|
gate_library_get_function_name(opengl_lib_handle, "glOrthof", &code.glOrtho); |
671 |
|
|
#else |
672 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glOrtho", &code.glOrtho); |
673 |
|
|
#endif |
674 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPassThrough", &code.glPassThrough); |
675 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPixelMapfv", &code.glPixelMapfv); |
676 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPixelMapuiv", &code.glPixelMapuiv); |
677 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPixelMapusv", &code.glPixelMapusv); |
678 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPixelStoref", &code.glPixelStoref); |
679 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glPixelStorei", &code.glPixelStorei); |
680 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPixelTransferf", &code.glPixelTransferf); |
681 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPixelTransferi", &code.glPixelTransferi); |
682 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPixelZoom", &code.glPixelZoom); |
683 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glPointSize", &code.glPointSize); |
684 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPolygonMode", &code.glPolygonMode); |
685 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glPolygonOffset", &code.glPolygonOffset); |
686 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPolygonStipple", &code.glPolygonStipple); |
687 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPopAttrib", &code.glPopAttrib); |
688 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPopClientAttrib", &code.glPopClientAttrib); |
689 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glPopMatrix", &code.glPopMatrix); |
690 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPopName", &code.glPopName); |
691 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPrioritizeTextures", &code.glPrioritizeTextures); |
692 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPushAttrib", &code.glPushAttrib); |
693 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPushClientAttrib", &code.glPushClientAttrib); |
694 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glPushMatrix", &code.glPushMatrix); |
695 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glPushName", &code.glPushName); |
696 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos2d", &code.glRasterPos2d); |
697 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos2dv", &code.glRasterPos2dv); |
698 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos2f", &code.glRasterPos2f); |
699 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos2fv", &code.glRasterPos2fv); |
700 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos2i", &code.glRasterPos2i); |
701 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos2iv", &code.glRasterPos2iv); |
702 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos2s", &code.glRasterPos2s); |
703 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos2sv", &code.glRasterPos2sv); |
704 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos3d", &code.glRasterPos3d); |
705 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos3dv", &code.glRasterPos3dv); |
706 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos3f", &code.glRasterPos3f); |
707 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos3fv", &code.glRasterPos3fv); |
708 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos3i", &code.glRasterPos3i); |
709 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos3iv", &code.glRasterPos3iv); |
710 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos3s", &code.glRasterPos3s); |
711 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos3sv", &code.glRasterPos3sv); |
712 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos4d", &code.glRasterPos4d); |
713 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos4dv", &code.glRasterPos4dv); |
714 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos4f", &code.glRasterPos4f); |
715 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos4fv", &code.glRasterPos4fv); |
716 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos4i", &code.glRasterPos4i); |
717 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos4iv", &code.glRasterPos4iv); |
718 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos4s", &code.glRasterPos4s); |
719 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRasterPos4sv", &code.glRasterPos4sv); |
720 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glReadBuffer", &code.glReadBuffer); |
721 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glReadPixels", &code.glReadPixels); |
722 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRectd", &code.glRectd); |
723 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRectdv", &code.glRectdv); |
724 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRectf", &code.glRectf); |
725 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRectfv", &code.glRectfv); |
726 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRecti", &code.glRecti); |
727 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRectiv", &code.glRectiv); |
728 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRects", &code.glRects); |
729 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRectsv", &code.glRectsv); |
730 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRenderMode", &code.glRenderMode); |
731 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glRotated", &code.glRotated); |
732 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glRotatef", &code.glRotatef); |
733 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glScaled", &code.glScaled); |
734 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glScalef", &code.glScalef); |
735 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glScissor", &code.glScissor); |
736 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glSelectBuffer", &code.glSelectBuffer); |
737 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glShadeModel", &code.glShadeModel); |
738 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glStencilFunc", &code.glStencilFunc); |
739 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glStencilMask", &code.glStencilMask); |
740 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glStencilOp", &code.glStencilOp); |
741 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord1d", &code.glTexCoord1d); |
742 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord1dv", &code.glTexCoord1dv); |
743 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord1f", &code.glTexCoord1f); |
744 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord1fv", &code.glTexCoord1fv); |
745 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord1i", &code.glTexCoord1i); |
746 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord1iv", &code.glTexCoord1iv); |
747 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord1s", &code.glTexCoord1s); |
748 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord1sv", &code.glTexCoord1sv); |
749 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord2d", &code.glTexCoord2d); |
750 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord2dv", &code.glTexCoord2dv); |
751 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord2f", &code.glTexCoord2f); |
752 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord2fv", &code.glTexCoord2fv); |
753 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord2i", &code.glTexCoord2i); |
754 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord2iv", &code.glTexCoord2iv); |
755 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord2s", &code.glTexCoord2s); |
756 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord2sv", &code.glTexCoord2sv); |
757 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord3d", &code.glTexCoord3d); |
758 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord3dv", &code.glTexCoord3dv); |
759 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord3f", &code.glTexCoord3f); |
760 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord3fv", &code.glTexCoord3fv); |
761 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord3i", &code.glTexCoord3i); |
762 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord3iv", &code.glTexCoord3iv); |
763 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord3s", &code.glTexCoord3s); |
764 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord3sv", &code.glTexCoord3sv); |
765 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord4d", &code.glTexCoord4d); |
766 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord4dv", &code.glTexCoord4dv); |
767 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord4f", &code.glTexCoord4f); |
768 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord4fv", &code.glTexCoord4fv); |
769 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord4i", &code.glTexCoord4i); |
770 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord4iv", &code.glTexCoord4iv); |
771 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord4s", &code.glTexCoord4s); |
772 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexCoord4sv", &code.glTexCoord4sv); |
773 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTexCoordPointer", &code.glTexCoordPointer); |
774 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTexEnvf", &code.glTexEnvf); |
775 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTexEnvfv", &code.glTexEnvfv); |
776 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTexEnvi", &code.glTexEnvi); |
777 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTexEnviv", &code.glTexEnviv); |
778 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexGend", &code.glTexGend); |
779 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexGendv", &code.glTexGendv); |
780 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexGenf", &code.glTexGenf); |
781 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexGenfv", &code.glTexGenfv); |
782 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexGeni", &code.glTexGeni); |
783 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexGeniv", &code.glTexGeniv); |
784 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexImage1D", &code.glTexImage1D); |
785 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTexImage2D", &code.glTexImage2D); |
786 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTexParameterf", &code.glTexParameterf); |
787 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTexParameterfv", &code.glTexParameterfv); |
788 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTexParameteri", &code.glTexParameteri); |
789 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTexParameteriv", &code.glTexParameteriv); |
790 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTexSubImage1D", &code.glTexSubImage1D); |
791 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTexSubImage2D", &code.glTexSubImage2D); |
792 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glTranslated", &code.glTranslated); |
793 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glTranslatef", &code.glTranslatef); |
794 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex2d", &code.glVertex2d); |
795 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex2dv", &code.glVertex2dv); |
796 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex2f", &code.glVertex2f); |
797 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex2fv", &code.glVertex2fv); |
798 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex2i", &code.glVertex2i); |
799 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex2iv", &code.glVertex2iv); |
800 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex2s", &code.glVertex2s); |
801 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex2sv", &code.glVertex2sv); |
802 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex3d", &code.glVertex3d); |
803 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex3dv", &code.glVertex3dv); |
804 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex3f", &code.glVertex3f); |
805 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex3fv", &code.glVertex3fv); |
806 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex3i", &code.glVertex3i); |
807 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex3iv", &code.glVertex3iv); |
808 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex3s", &code.glVertex3s); |
809 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex3sv", &code.glVertex3sv); |
810 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex4d", &code.glVertex4d); |
811 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex4dv", &code.glVertex4dv); |
812 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex4f", &code.glVertex4f); |
813 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex4fv", &code.glVertex4fv); |
814 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex4i", &code.glVertex4i); |
815 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex4iv", &code.glVertex4iv); |
816 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex4s", &code.glVertex4s); |
817 |
|
|
//gate_library_get_function_name(opengl_lib_handle, "glVertex4sv", &code.glVertex4sv); |
818 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glVertexPointer", &code.glVertexPointer); |
819 |
|
✗ |
gate_library_get_function_name(opengl_lib_handle, "glViewport", &code.glViewport); |
820 |
|
|
|
821 |
|
✗ |
gate_mem_copy(&gate_gl_api, &code, sizeof(gate_gl_api_functions_t)); |
822 |
|
✗ |
opengl_lib_loaded = true; |
823 |
|
✗ |
ret = GATE_RESULT_OK; |
824 |
|
|
} while (0); |
825 |
|
|
} |
826 |
|
✗ |
return ret; |
827 |
|
|
} |
828 |
|
|
|
829 |
|
|
|
830 |
|
|
|
831 |
|
|
#endif |
832 |
|
|
|