diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llwindow/llglheaders.h | |
parent | README.txt (diff) | |
download | meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2 meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz |
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/llwindow/llglheaders.h')
-rw-r--r-- | linden/indra/llwindow/llglheaders.h | 486 |
1 files changed, 486 insertions, 0 deletions
diff --git a/linden/indra/llwindow/llglheaders.h b/linden/indra/llwindow/llglheaders.h new file mode 100644 index 0000000..e67b6c7 --- /dev/null +++ b/linden/indra/llwindow/llglheaders.h | |||
@@ -0,0 +1,486 @@ | |||
1 | /** | ||
2 | * @file llglheaders.h | ||
3 | * @brief LLGL definitions | ||
4 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
8 | * to you under the terms of the GNU General Public License, version 2.0 | ||
9 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
10 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
11 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
12 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
13 | * | ||
14 | * There are special exceptions to the terms and conditions of the GPL as | ||
15 | * it is applied to this Source Code. View the full text of the exception | ||
16 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
17 | * online at http://secondlife.com/developers/opensource/flossexception | ||
18 | * | ||
19 | * By copying, modifying or distributing this software, you acknowledge | ||
20 | * that you have read and understood your obligations described above, | ||
21 | * and agree to abide by those obligations. | ||
22 | * | ||
23 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
24 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
25 | * COMPLETENESS OR PERFORMANCE. | ||
26 | */ | ||
27 | |||
28 | #ifndef LL_LLGLHEADERS_H | ||
29 | #define LL_LLGLHEADERS_H | ||
30 | |||
31 | #if LL_LINUX | ||
32 | # ifndef LL_MESA | ||
33 | # define LL_MESA 1 // force MESA | ||
34 | # endif | ||
35 | # ifndef LL_MESA_HEADLESS | ||
36 | # define LL_MESA_HEADLESS 1 // force MESA HEADLESS | ||
37 | # endif | ||
38 | #endif | ||
39 | |||
40 | #if LL_MESA | ||
41 | //---------------------------------------------------------------------------- | ||
42 | // MESA headers | ||
43 | // quotes so we get libraries/.../GL/ version | ||
44 | #define GL_GLEXT_PROTOTYPES | ||
45 | #include "GL/gl.h" | ||
46 | #include "GL/glext.h" | ||
47 | #include "GL/glu.h" | ||
48 | |||
49 | #elif LL_LINUX | ||
50 | //---------------------------------------------------------------------------- | ||
51 | // Linux, MESA headers, but not necessarily assuming MESA runtime. | ||
52 | // quotes so we get libraries/.../GL/ version | ||
53 | #include "GL/gl.h" | ||
54 | #include "GL/glext.h" | ||
55 | #include "GL/glu.h" | ||
56 | |||
57 | // GL_ARB_vertex_buffer_object | ||
58 | extern PFNGLBINDBUFFERARBPROC glBindBufferARB; | ||
59 | extern PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB; | ||
60 | extern PFNGLGENBUFFERSARBPROC glGenBuffersARB; | ||
61 | extern PFNGLISBUFFERARBPROC glIsBufferARB; | ||
62 | extern PFNGLBUFFERDATAARBPROC glBufferDataARB; | ||
63 | extern PFNGLBUFFERSUBDATAARBPROC glBufferSubDataARB; | ||
64 | extern PFNGLGETBUFFERSUBDATAARBPROC glGetBufferSubDataARB; | ||
65 | extern PFNGLMAPBUFFERARBPROC glMapBufferARB; | ||
66 | extern PFNGLUNMAPBUFFERARBPROC glUnmapBufferARB; | ||
67 | extern PFNGLGETBUFFERPARAMETERIVARBPROC glGetBufferParameterivARB; | ||
68 | extern PFNGLGETBUFFERPOINTERVARBPROC glGetBufferPointervARB; | ||
69 | |||
70 | // GL_ATI_vertex_array_object | ||
71 | extern PFNGLNEWOBJECTBUFFERATIPROC glNewObjectBufferATI; | ||
72 | extern PFNGLISOBJECTBUFFERATIPROC glIsObjectBufferATI; | ||
73 | extern PFNGLUPDATEOBJECTBUFFERATIPROC glUpdateObjectBufferATI; | ||
74 | extern PFNGLGETOBJECTBUFFERFVATIPROC glGetObjectBufferfvATI; | ||
75 | extern PFNGLGETOBJECTBUFFERIVATIPROC glGetObjectBufferivATI; | ||
76 | extern PFNGLFREEOBJECTBUFFERATIPROC glFreeObjectBufferATI; | ||
77 | extern PFNGLARRAYOBJECTATIPROC glArrayObjectATI; | ||
78 | extern PFNGLVERTEXATTRIBARRAYOBJECTATIPROC glVertexAttribArrayObjectATI; | ||
79 | extern PFNGLGETARRAYOBJECTFVATIPROC glGetArrayObjectfvATI; | ||
80 | extern PFNGLGETARRAYOBJECTIVATIPROC glGetArrayObjectivATI; | ||
81 | extern PFNGLVARIANTARRAYOBJECTATIPROC glVariantObjectArrayATI; | ||
82 | extern PFNGLGETVARIANTARRAYOBJECTFVATIPROC glGetVariantArrayObjectfvATI; | ||
83 | extern PFNGLGETVARIANTARRAYOBJECTIVATIPROC glGetVariantArrayObjectivATI; | ||
84 | |||
85 | // GL_ARB_occlusion_query | ||
86 | extern PFNGLGENQUERIESARBPROC glGenQueriesARB; | ||
87 | extern PFNGLDELETEQUERIESARBPROC glDeleteQueriesARB; | ||
88 | extern PFNGLISQUERYARBPROC glIsQueryARB; | ||
89 | extern PFNGLBEGINQUERYARBPROC glBeginQueryARB; | ||
90 | extern PFNGLENDQUERYARBPROC glEndQueryARB; | ||
91 | extern PFNGLGETQUERYIVARBPROC glGetQueryivARB; | ||
92 | extern PFNGLGETQUERYOBJECTIVARBPROC glGetQueryObjectivARB; | ||
93 | extern PFNGLGETQUERYOBJECTUIVARBPROC glGetQueryObjectuivARB; | ||
94 | |||
95 | // GL_ARB_shader_objects | ||
96 | extern PFNGLDELETEOBJECTARBPROC glDeleteObjectARB; | ||
97 | extern PFNGLGETHANDLEARBPROC glGetHandleARB; | ||
98 | extern PFNGLDETACHOBJECTARBPROC glDetachObjectARB; | ||
99 | extern PFNGLCREATESHADEROBJECTARBPROC glCreateShaderObjectARB; | ||
100 | extern PFNGLSHADERSOURCEARBPROC glShaderSourceARB; | ||
101 | extern PFNGLCOMPILESHADERARBPROC glCompileShaderARB; | ||
102 | extern PFNGLCREATEPROGRAMOBJECTARBPROC glCreateProgramObjectARB; | ||
103 | extern PFNGLATTACHOBJECTARBPROC glAttachObjectARB; | ||
104 | extern PFNGLLINKPROGRAMARBPROC glLinkProgramARB; | ||
105 | extern PFNGLUSEPROGRAMOBJECTARBPROC glUseProgramObjectARB; | ||
106 | extern PFNGLVALIDATEPROGRAMARBPROC glValidateProgramARB; | ||
107 | extern PFNGLUNIFORM1FARBPROC glUniform1fARB; | ||
108 | extern PFNGLUNIFORM2FARBPROC glUniform2fARB; | ||
109 | extern PFNGLUNIFORM3FARBPROC glUniform3fARB; | ||
110 | extern PFNGLUNIFORM4FARBPROC glUniform4fARB; | ||
111 | extern PFNGLUNIFORM1IARBPROC glUniform1iARB; | ||
112 | extern PFNGLUNIFORM2IARBPROC glUniform2iARB; | ||
113 | extern PFNGLUNIFORM3IARBPROC glUniform3iARB; | ||
114 | extern PFNGLUNIFORM4IARBPROC glUniform4iARB; | ||
115 | extern PFNGLUNIFORM1FVARBPROC glUniform1fvARB; | ||
116 | extern PFNGLUNIFORM2FVARBPROC glUniform2fvARB; | ||
117 | extern PFNGLUNIFORM3FVARBPROC glUniform3fvARB; | ||
118 | extern PFNGLUNIFORM4FVARBPROC glUniform4fvARB; | ||
119 | extern PFNGLUNIFORM1IVARBPROC glUniform1ivARB; | ||
120 | extern PFNGLUNIFORM2IVARBPROC glUniform2ivARB; | ||
121 | extern PFNGLUNIFORM3IVARBPROC glUniform3ivARB; | ||
122 | extern PFNGLUNIFORM4IVARBPROC glUniform4ivARB; | ||
123 | extern PFNGLUNIFORMMATRIX2FVARBPROC glUniformMatrix2fvARB; | ||
124 | extern PFNGLUNIFORMMATRIX3FVARBPROC glUniformMatrix3fvARB; | ||
125 | extern PFNGLUNIFORMMATRIX4FVARBPROC glUniformMatrix4fvARB; | ||
126 | extern PFNGLGETOBJECTPARAMETERFVARBPROC glGetObjectParameterfvARB; | ||
127 | extern PFNGLGETOBJECTPARAMETERIVARBPROC glGetObjectParameterivARB; | ||
128 | extern PFNGLGETINFOLOGARBPROC glGetInfoLogARB; | ||
129 | extern PFNGLGETATTACHEDOBJECTSARBPROC glGetAttachedObjectsARB; | ||
130 | extern PFNGLGETUNIFORMLOCATIONARBPROC glGetUniformLocationARB; | ||
131 | extern PFNGLGETACTIVEUNIFORMARBPROC glGetActiveUniformARB; | ||
132 | extern PFNGLGETUNIFORMFVARBPROC glGetUniformfvARB; | ||
133 | extern PFNGLGETUNIFORMIVARBPROC glGetUniformivARB; | ||
134 | extern PFNGLGETSHADERSOURCEARBPROC glGetShaderSourceARB; | ||
135 | |||
136 | // GL_ARB;_vertex_shader | ||
137 | extern PFNGLVERTEXATTRIB1DARBPROC glVertexAttrib1dARB; | ||
138 | extern PFNGLVERTEXATTRIB1DVARBPROC glVertexAttrib1dvARB; | ||
139 | extern PFNGLVERTEXATTRIB1FARBPROC glVertexAttrib1fARB; | ||
140 | extern PFNGLVERTEXATTRIB1FVARBPROC glVertexAttrib1fvARB; | ||
141 | extern PFNGLVERTEXATTRIB1SARBPROC glVertexAttrib1sARB; | ||
142 | extern PFNGLVERTEXATTRIB1SVARBPROC glVertexAttrib1svARB; | ||
143 | extern PFNGLVERTEXATTRIB2DARBPROC glVertexAttrib2dARB; | ||
144 | extern PFNGLVERTEXATTRIB2DVARBPROC glVertexAttrib2dvARB; | ||
145 | extern PFNGLVERTEXATTRIB2FARBPROC glVertexAttrib2fARB; | ||
146 | extern PFNGLVERTEXATTRIB2FVARBPROC glVertexAttrib2fvARB; | ||
147 | extern PFNGLVERTEXATTRIB2SARBPROC glVertexAttrib2sARB; | ||
148 | extern PFNGLVERTEXATTRIB2SVARBPROC glVertexAttrib2svARB; | ||
149 | extern PFNGLVERTEXATTRIB3DARBPROC glVertexAttrib3dARB; | ||
150 | extern PFNGLVERTEXATTRIB3DVARBPROC glVertexAttrib3dvARB; | ||
151 | extern PFNGLVERTEXATTRIB3FARBPROC glVertexAttrib3fARB; | ||
152 | extern PFNGLVERTEXATTRIB3FVARBPROC glVertexAttrib3fvARB; | ||
153 | extern PFNGLVERTEXATTRIB3SARBPROC glVertexAttrib3sARB; | ||
154 | extern PFNGLVERTEXATTRIB3SVARBPROC glVertexAttrib3svARB; | ||
155 | extern PFNGLVERTEXATTRIB4NBVARBPROC glVertexAttrib4nbvARB; | ||
156 | extern PFNGLVERTEXATTRIB4NIVARBPROC glVertexAttrib4nivARB; | ||
157 | extern PFNGLVERTEXATTRIB4NSVARBPROC glVertexAttrib4nsvARB; | ||
158 | extern PFNGLVERTEXATTRIB4NUBARBPROC glVertexAttrib4nubARB; | ||
159 | extern PFNGLVERTEXATTRIB4NUBVARBPROC glVertexAttrib4nubvARB; | ||
160 | extern PFNGLVERTEXATTRIB4NUIVARBPROC glVertexAttrib4nuivARB; | ||
161 | extern PFNGLVERTEXATTRIB4NUSVARBPROC glVertexAttrib4nusvARB; | ||
162 | extern PFNGLVERTEXATTRIB4BVARBPROC glVertexAttrib4bvARB; | ||
163 | extern PFNGLVERTEXATTRIB4DARBPROC glVertexAttrib4dARB; | ||
164 | extern PFNGLVERTEXATTRIB4DVARBPROC glVertexAttrib4dvARB; | ||
165 | extern PFNGLVERTEXATTRIB4FARBPROC glVertexAttrib4fARB; | ||
166 | extern PFNGLVERTEXATTRIB4FVARBPROC glVertexAttrib4fvARB; | ||
167 | extern PFNGLVERTEXATTRIB4IVARBPROC glVertexAttrib4ivARB; | ||
168 | extern PFNGLVERTEXATTRIB4SARBPROC glVertexAttrib4sARB; | ||
169 | extern PFNGLVERTEXATTRIB4SVARBPROC glVertexAttrib4svARB; | ||
170 | extern PFNGLVERTEXATTRIB4UBVARBPROC glVertexAttrib4ubvARB; | ||
171 | extern PFNGLVERTEXATTRIB4UIVARBPROC glVertexAttrib4uivARB; | ||
172 | extern PFNGLVERTEXATTRIB4USVARBPROC glVertexAttrib4usvARB; | ||
173 | extern PFNGLVERTEXATTRIBPOINTERARBPROC glVertexAttribPointerARB; | ||
174 | extern PFNGLENABLEVERTEXATTRIBARRAYARBPROC glEnableVertexAttribArrayARB; | ||
175 | extern PFNGLDISABLEVERTEXATTRIBARRAYARBPROC glDisableVertexAttribArrayARB; | ||
176 | extern PFNGLPROGRAMSTRINGARBPROC glProgramStringARB; | ||
177 | extern PFNGLBINDPROGRAMARBPROC glBindProgramARB; | ||
178 | extern PFNGLDELETEPROGRAMSARBPROC glDeleteProgramsARB; | ||
179 | extern PFNGLGENPROGRAMSARBPROC glGenProgramsARB; | ||
180 | extern PFNGLPROGRAMENVPARAMETER4DARBPROC glProgramEnvParameter4dARB; | ||
181 | extern PFNGLPROGRAMENVPARAMETER4DVARBPROC glProgramEnvParameter4dvARB; | ||
182 | extern PFNGLPROGRAMENVPARAMETER4FARBPROC glProgramEnvParameter4fARB; | ||
183 | extern PFNGLPROGRAMENVPARAMETER4FVARBPROC glProgramEnvParameter4fvARB; | ||
184 | extern PFNGLPROGRAMLOCALPARAMETER4DARBPROC glProgramLocalParameter4dARB; | ||
185 | extern PFNGLPROGRAMLOCALPARAMETER4DVARBPROC glProgramLocalParameter4dvARB; | ||
186 | extern PFNGLPROGRAMLOCALPARAMETER4FARBPROC glProgramLocalParameter4fARB; | ||
187 | extern PFNGLPROGRAMLOCALPARAMETER4FVARBPROC glProgramLocalParameter4fvARB; | ||
188 | extern PFNGLGETPROGRAMENVPARAMETERDVARBPROC glGetProgramEnvParameterdvARB; | ||
189 | extern PFNGLGETPROGRAMENVPARAMETERFVARBPROC glGetProgramEnvParameterfvARB; | ||
190 | extern PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC glGetProgramLocalParameterdvARB; | ||
191 | extern PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC glGetProgramLocalParameterfvARB; | ||
192 | extern PFNGLGETPROGRAMIVARBPROC glGetProgramivARB; | ||
193 | extern PFNGLGETPROGRAMSTRINGARBPROC glGetProgramStringARB; | ||
194 | extern PFNGLGETVERTEXATTRIBDVARBPROC glGetVertexAttribdvARB; | ||
195 | extern PFNGLGETVERTEXATTRIBFVARBPROC glGetVertexAttribfvARB; | ||
196 | extern PFNGLGETVERTEXATTRIBIVARBPROC glGetVertexAttribivARB; | ||
197 | extern PFNGLGETVERTEXATTRIBPOINTERVARBPROC glGetVertexAttribPointervARB; | ||
198 | extern PFNGLISPROGRAMARBPROC glIsProgramARB; | ||
199 | extern PFNGLBINDATTRIBLOCATIONARBPROC glBindAttribLocationARB; | ||
200 | extern PFNGLGETACTIVEATTRIBARBPROC glGetActiveAttribARB; | ||
201 | extern PFNGLGETATTRIBLOCATIONARBPROC glGetAttribLocationARB; | ||
202 | |||
203 | extern PFNGLCOMPRESSEDTEXIMAGE2DARBPROC glCompressedTexImage2DARB; | ||
204 | extern PFNGLGETCOMPRESSEDTEXIMAGEARBPROC glGetCompressedTexImageARB; | ||
205 | |||
206 | extern PFNGLCOLORTABLEEXTPROC glColorTableEXT; | ||
207 | |||
208 | #elif LL_WINDOWS | ||
209 | //---------------------------------------------------------------------------- | ||
210 | #include <GL/gl.h> | ||
211 | #include <GL/glu.h> | ||
212 | |||
213 | // quotes so we get libraries/.../GL/ version | ||
214 | #include "GL/glext.h" | ||
215 | #include "GL/glh_extensions.h" | ||
216 | |||
217 | |||
218 | // GL_ARB_vertex_buffer_object | ||
219 | extern PFNGLBINDBUFFERARBPROC glBindBufferARB; | ||
220 | extern PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB; | ||
221 | extern PFNGLGENBUFFERSARBPROC glGenBuffersARB; | ||
222 | extern PFNGLISBUFFERARBPROC glIsBufferARB; | ||
223 | extern PFNGLBUFFERDATAARBPROC glBufferDataARB; | ||
224 | extern PFNGLBUFFERSUBDATAARBPROC glBufferSubDataARB; | ||
225 | extern PFNGLGETBUFFERSUBDATAARBPROC glGetBufferSubDataARB; | ||
226 | extern PFNGLMAPBUFFERARBPROC glMapBufferARB; | ||
227 | extern PFNGLUNMAPBUFFERARBPROC glUnmapBufferARB; | ||
228 | extern PFNGLGETBUFFERPARAMETERIVARBPROC glGetBufferParameterivARB; | ||
229 | extern PFNGLGETBUFFERPOINTERVARBPROC glGetBufferPointervARB; | ||
230 | |||
231 | // GL_ATI_vertex_array_object | ||
232 | extern PFNGLNEWOBJECTBUFFERATIPROC glNewObjectBufferATI; | ||
233 | extern PFNGLISOBJECTBUFFERATIPROC glIsObjectBufferATI; | ||
234 | extern PFNGLUPDATEOBJECTBUFFERATIPROC glUpdateObjectBufferATI; | ||
235 | extern PFNGLGETOBJECTBUFFERFVATIPROC glGetObjectBufferfvATI; | ||
236 | extern PFNGLGETOBJECTBUFFERIVATIPROC glGetObjectBufferivATI; | ||
237 | extern PFNGLFREEOBJECTBUFFERATIPROC glFreeObjectBufferATI; | ||
238 | extern PFNGLARRAYOBJECTATIPROC glArrayObjectATI; | ||
239 | extern PFNGLVERTEXATTRIBARRAYOBJECTATIPROC glVertexAttribArrayObjectATI; | ||
240 | extern PFNGLGETARRAYOBJECTFVATIPROC glGetArrayObjectfvATI; | ||
241 | extern PFNGLGETARRAYOBJECTIVATIPROC glGetArrayObjectivATI; | ||
242 | extern PFNGLVARIANTARRAYOBJECTATIPROC glVariantObjectArrayATI; | ||
243 | extern PFNGLGETVARIANTARRAYOBJECTFVATIPROC glGetVariantArrayObjectfvATI; | ||
244 | extern PFNGLGETVARIANTARRAYOBJECTIVATIPROC glGetVariantArrayObjectivATI; | ||
245 | |||
246 | extern PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT; | ||
247 | |||
248 | // GL_ARB_occlusion_query | ||
249 | extern PFNGLGENQUERIESARBPROC glGenQueriesARB; | ||
250 | extern PFNGLDELETEQUERIESARBPROC glDeleteQueriesARB; | ||
251 | extern PFNGLISQUERYARBPROC glIsQueryARB; | ||
252 | extern PFNGLBEGINQUERYARBPROC glBeginQueryARB; | ||
253 | extern PFNGLENDQUERYARBPROC glEndQueryARB; | ||
254 | extern PFNGLGETQUERYIVARBPROC glGetQueryivARB; | ||
255 | extern PFNGLGETQUERYOBJECTIVARBPROC glGetQueryObjectivARB; | ||
256 | extern PFNGLGETQUERYOBJECTUIVARBPROC glGetQueryObjectuivARB; | ||
257 | |||
258 | // GL_ARB_shader_objects | ||
259 | extern PFNGLDELETEOBJECTARBPROC glDeleteObjectARB; | ||
260 | extern PFNGLGETHANDLEARBPROC glGetHandleARB; | ||
261 | extern PFNGLDETACHOBJECTARBPROC glDetachObjectARB; | ||
262 | extern PFNGLCREATESHADEROBJECTARBPROC glCreateShaderObjectARB; | ||
263 | extern PFNGLSHADERSOURCEARBPROC glShaderSourceARB; | ||
264 | extern PFNGLCOMPILESHADERARBPROC glCompileShaderARB; | ||
265 | extern PFNGLCREATEPROGRAMOBJECTARBPROC glCreateProgramObjectARB; | ||
266 | extern PFNGLATTACHOBJECTARBPROC glAttachObjectARB; | ||
267 | extern PFNGLLINKPROGRAMARBPROC glLinkProgramARB; | ||
268 | extern PFNGLUSEPROGRAMOBJECTARBPROC glUseProgramObjectARB; | ||
269 | extern PFNGLVALIDATEPROGRAMARBPROC glValidateProgramARB; | ||
270 | extern PFNGLUNIFORM1FARBPROC glUniform1fARB; | ||
271 | extern PFNGLUNIFORM2FARBPROC glUniform2fARB; | ||
272 | extern PFNGLUNIFORM3FARBPROC glUniform3fARB; | ||
273 | extern PFNGLUNIFORM4FARBPROC glUniform4fARB; | ||
274 | extern PFNGLUNIFORM1IARBPROC glUniform1iARB; | ||
275 | extern PFNGLUNIFORM2IARBPROC glUniform2iARB; | ||
276 | extern PFNGLUNIFORM3IARBPROC glUniform3iARB; | ||
277 | extern PFNGLUNIFORM4IARBPROC glUniform4iARB; | ||
278 | extern PFNGLUNIFORM1FVARBPROC glUniform1fvARB; | ||
279 | extern PFNGLUNIFORM2FVARBPROC glUniform2fvARB; | ||
280 | extern PFNGLUNIFORM3FVARBPROC glUniform3fvARB; | ||
281 | extern PFNGLUNIFORM4FVARBPROC glUniform4fvARB; | ||
282 | extern PFNGLUNIFORM1IVARBPROC glUniform1ivARB; | ||
283 | extern PFNGLUNIFORM2IVARBPROC glUniform2ivARB; | ||
284 | extern PFNGLUNIFORM3IVARBPROC glUniform3ivARB; | ||
285 | extern PFNGLUNIFORM4IVARBPROC glUniform4ivARB; | ||
286 | extern PFNGLUNIFORMMATRIX2FVARBPROC glUniformMatrix2fvARB; | ||
287 | extern PFNGLUNIFORMMATRIX3FVARBPROC glUniformMatrix3fvARB; | ||
288 | extern PFNGLUNIFORMMATRIX4FVARBPROC glUniformMatrix4fvARB; | ||
289 | extern PFNGLGETOBJECTPARAMETERFVARBPROC glGetObjectParameterfvARB; | ||
290 | extern PFNGLGETOBJECTPARAMETERIVARBPROC glGetObjectParameterivARB; | ||
291 | extern PFNGLGETINFOLOGARBPROC glGetInfoLogARB; | ||
292 | extern PFNGLGETATTACHEDOBJECTSARBPROC glGetAttachedObjectsARB; | ||
293 | extern PFNGLGETUNIFORMLOCATIONARBPROC glGetUniformLocationARB; | ||
294 | extern PFNGLGETACTIVEUNIFORMARBPROC glGetActiveUniformARB; | ||
295 | extern PFNGLGETUNIFORMFVARBPROC glGetUniformfvARB; | ||
296 | extern PFNGLGETUNIFORMIVARBPROC glGetUniformivARB; | ||
297 | extern PFNGLGETSHADERSOURCEARBPROC glGetShaderSourceARB; | ||
298 | |||
299 | // GL_ARB;_vertex_shader | ||
300 | extern PFNGLVERTEXATTRIB1DARBPROC glVertexAttrib1dARB; | ||
301 | extern PFNGLVERTEXATTRIB1DVARBPROC glVertexAttrib1dvARB; | ||
302 | extern PFNGLVERTEXATTRIB1FARBPROC glVertexAttrib1fARB; | ||
303 | extern PFNGLVERTEXATTRIB1FVARBPROC glVertexAttrib1fvARB; | ||
304 | extern PFNGLVERTEXATTRIB1SARBPROC glVertexAttrib1sARB; | ||
305 | extern PFNGLVERTEXATTRIB1SVARBPROC glVertexAttrib1svARB; | ||
306 | extern PFNGLVERTEXATTRIB2DARBPROC glVertexAttrib2dARB; | ||
307 | extern PFNGLVERTEXATTRIB2DVARBPROC glVertexAttrib2dvARB; | ||
308 | extern PFNGLVERTEXATTRIB2FARBPROC glVertexAttrib2fARB; | ||
309 | extern PFNGLVERTEXATTRIB2FVARBPROC glVertexAttrib2fvARB; | ||
310 | extern PFNGLVERTEXATTRIB2SARBPROC glVertexAttrib2sARB; | ||
311 | extern PFNGLVERTEXATTRIB2SVARBPROC glVertexAttrib2svARB; | ||
312 | extern PFNGLVERTEXATTRIB3DARBPROC glVertexAttrib3dARB; | ||
313 | extern PFNGLVERTEXATTRIB3DVARBPROC glVertexAttrib3dvARB; | ||
314 | extern PFNGLVERTEXATTRIB3FARBPROC glVertexAttrib3fARB; | ||
315 | extern PFNGLVERTEXATTRIB3FVARBPROC glVertexAttrib3fvARB; | ||
316 | extern PFNGLVERTEXATTRIB3SARBPROC glVertexAttrib3sARB; | ||
317 | extern PFNGLVERTEXATTRIB3SVARBPROC glVertexAttrib3svARB; | ||
318 | extern PFNGLVERTEXATTRIB4NBVARBPROC glVertexAttrib4nbvARB; | ||
319 | extern PFNGLVERTEXATTRIB4NIVARBPROC glVertexAttrib4nivARB; | ||
320 | extern PFNGLVERTEXATTRIB4NSVARBPROC glVertexAttrib4nsvARB; | ||
321 | extern PFNGLVERTEXATTRIB4NUBARBPROC glVertexAttrib4nubARB; | ||
322 | extern PFNGLVERTEXATTRIB4NUBVARBPROC glVertexAttrib4nubvARB; | ||
323 | extern PFNGLVERTEXATTRIB4NUIVARBPROC glVertexAttrib4nuivARB; | ||
324 | extern PFNGLVERTEXATTRIB4NUSVARBPROC glVertexAttrib4nusvARB; | ||
325 | extern PFNGLVERTEXATTRIB4BVARBPROC glVertexAttrib4bvARB; | ||
326 | extern PFNGLVERTEXATTRIB4DARBPROC glVertexAttrib4dARB; | ||
327 | extern PFNGLVERTEXATTRIB4DVARBPROC glVertexAttrib4dvARB; | ||
328 | extern PFNGLVERTEXATTRIB4FARBPROC glVertexAttrib4fARB; | ||
329 | extern PFNGLVERTEXATTRIB4FVARBPROC glVertexAttrib4fvARB; | ||
330 | extern PFNGLVERTEXATTRIB4IVARBPROC glVertexAttrib4ivARB; | ||
331 | extern PFNGLVERTEXATTRIB4SARBPROC glVertexAttrib4sARB; | ||
332 | extern PFNGLVERTEXATTRIB4SVARBPROC glVertexAttrib4svARB; | ||
333 | extern PFNGLVERTEXATTRIB4UBVARBPROC glVertexAttrib4ubvARB; | ||
334 | extern PFNGLVERTEXATTRIB4UIVARBPROC glVertexAttrib4uivARB; | ||
335 | extern PFNGLVERTEXATTRIB4USVARBPROC glVertexAttrib4usvARB; | ||
336 | extern PFNGLVERTEXATTRIBPOINTERARBPROC glVertexAttribPointerARB; | ||
337 | extern PFNGLENABLEVERTEXATTRIBARRAYARBPROC glEnableVertexAttribArrayARB; | ||
338 | extern PFNGLDISABLEVERTEXATTRIBARRAYARBPROC glDisableVertexAttribArrayARB; | ||
339 | extern PFNGLPROGRAMSTRINGARBPROC glProgramStringARB; | ||
340 | extern PFNGLBINDPROGRAMARBPROC glBindProgramARB; | ||
341 | extern PFNGLDELETEPROGRAMSARBPROC glDeleteProgramsARB; | ||
342 | extern PFNGLGENPROGRAMSARBPROC glGenProgramsARB; | ||
343 | extern PFNGLPROGRAMENVPARAMETER4DARBPROC glProgramEnvParameter4dARB; | ||
344 | extern PFNGLPROGRAMENVPARAMETER4DVARBPROC glProgramEnvParameter4dvARB; | ||
345 | extern PFNGLPROGRAMENVPARAMETER4FARBPROC glProgramEnvParameter4fARB; | ||
346 | extern PFNGLPROGRAMENVPARAMETER4FVARBPROC glProgramEnvParameter4fvARB; | ||
347 | extern PFNGLPROGRAMLOCALPARAMETER4DARBPROC glProgramLocalParameter4dARB; | ||
348 | extern PFNGLPROGRAMLOCALPARAMETER4DVARBPROC glProgramLocalParameter4dvARB; | ||
349 | extern PFNGLPROGRAMLOCALPARAMETER4FARBPROC glProgramLocalParameter4fARB; | ||
350 | extern PFNGLPROGRAMLOCALPARAMETER4FVARBPROC glProgramLocalParameter4fvARB; | ||
351 | extern PFNGLGETPROGRAMENVPARAMETERDVARBPROC glGetProgramEnvParameterdvARB; | ||
352 | extern PFNGLGETPROGRAMENVPARAMETERFVARBPROC glGetProgramEnvParameterfvARB; | ||
353 | extern PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC glGetProgramLocalParameterdvARB; | ||
354 | extern PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC glGetProgramLocalParameterfvARB; | ||
355 | extern PFNGLGETPROGRAMIVARBPROC glGetProgramivARB; | ||
356 | extern PFNGLGETPROGRAMSTRINGARBPROC glGetProgramStringARB; | ||
357 | extern PFNGLGETVERTEXATTRIBDVARBPROC glGetVertexAttribdvARB; | ||
358 | extern PFNGLGETVERTEXATTRIBFVARBPROC glGetVertexAttribfvARB; | ||
359 | extern PFNGLGETVERTEXATTRIBIVARBPROC glGetVertexAttribivARB; | ||
360 | extern PFNGLGETVERTEXATTRIBPOINTERVARBPROC glGetVertexAttribPointervARB; | ||
361 | extern PFNGLISPROGRAMARBPROC glIsProgramARB; | ||
362 | extern PFNGLBINDATTRIBLOCATIONARBPROC glBindAttribLocationARB; | ||
363 | extern PFNGLGETACTIVEATTRIBARBPROC glGetActiveAttribARB; | ||
364 | extern PFNGLGETATTRIBLOCATIONARBPROC glGetAttribLocationARB; | ||
365 | |||
366 | |||
367 | #elif LL_DARWIN | ||
368 | //---------------------------------------------------------------------------- | ||
369 | // LL_DARWIN | ||
370 | |||
371 | #include <OpenGL/gl.h> | ||
372 | #include <OpenGL/glu.h> | ||
373 | |||
374 | #define GL_EXT_separate_specular_color 1 | ||
375 | #include <OpenGL/glext.h> | ||
376 | |||
377 | #include "GL/glh_extensions.h" | ||
378 | |||
379 | #ifdef __cplusplus | ||
380 | extern "C" { | ||
381 | #endif | ||
382 | // | ||
383 | // Define vertex buffer object headers on Mac | ||
384 | // | ||
385 | #ifndef GL_ARB_vertex_buffer_object | ||
386 | #define GL_BUFFER_SIZE_ARB 0x8764 | ||
387 | #define GL_BUFFER_USAGE_ARB 0x8765 | ||
388 | #define GL_ARRAY_BUFFER_ARB 0x8892 | ||
389 | #define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893 | ||
390 | #define GL_ARRAY_BUFFER_BINDING_ARB 0x8894 | ||
391 | #define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895 | ||
392 | #define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896 | ||
393 | #define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897 | ||
394 | #define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898 | ||
395 | #define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899 | ||
396 | #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A | ||
397 | #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B | ||
398 | #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C | ||
399 | #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D | ||
400 | #define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E | ||
401 | #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F | ||
402 | #define GL_READ_ONLY_ARB 0x88B8 | ||
403 | #define GL_WRITE_ONLY_ARB 0x88B9 | ||
404 | #define GL_READ_WRITE_ARB 0x88BA | ||
405 | #define GL_BUFFER_ACCESS_ARB 0x88BB | ||
406 | #define GL_BUFFER_MAPPED_ARB 0x88BC | ||
407 | #define GL_BUFFER_MAP_POINTER_ARB 0x88BD | ||
408 | #define GL_STREAM_DRAW_ARB 0x88E0 | ||
409 | #define GL_STREAM_READ_ARB 0x88E1 | ||
410 | #define GL_STREAM_COPY_ARB 0x88E2 | ||
411 | #define GL_STATIC_DRAW_ARB 0x88E4 | ||
412 | #define GL_STATIC_READ_ARB 0x88E5 | ||
413 | #define GL_STATIC_COPY_ARB 0x88E6 | ||
414 | #define GL_DYNAMIC_DRAW_ARB 0x88E8 | ||
415 | #define GL_DYNAMIC_READ_ARB 0x88E9 | ||
416 | #define GL_DYNAMIC_COPY_ARB 0x88EA | ||
417 | #endif | ||
418 | |||
419 | |||
420 | |||
421 | #ifndef GL_ARB_vertex_buffer_object | ||
422 | /* GL types for handling large vertex buffer objects */ | ||
423 | typedef intptr_t GLintptrARB; | ||
424 | typedef intptr_t GLsizeiptrARB; | ||
425 | #endif | ||
426 | |||
427 | |||
428 | #ifndef GL_ARB_vertex_buffer_object | ||
429 | #define GL_ARB_vertex_buffer_object 1 | ||
430 | #ifdef GL_GLEXT_FUNCTION_POINTERS | ||
431 | typedef void (* glBindBufferARBProcPtr) (GLenum target, GLuint buffer); | ||
432 | typedef void (* glDeleteBufferARBProcPtr) (GLsizei n, const GLuint *buffers); | ||
433 | typedef void (* glGenBuffersARBProcPtr) (GLsizei n, GLuint *buffers); | ||
434 | typedef GLboolean (* glIsBufferARBProcPtr) (GLuint buffer); | ||
435 | typedef void (* glBufferDataARBProcPtr) (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage); | ||
436 | typedef void (* glBufferSubDataARBProcPtr) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data); | ||
437 | typedef void (* glGetBufferSubDataARBProcPtr) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data); | ||
438 | typedef GLvoid* (* glMapBufferARBProcPtr) (GLenum target, GLenum access); | ||
439 | typedef GLboolean (* glUnmapBufferARBProcPtr) (GLenum target); | ||
440 | typedef void (* glGetBufferParameterivARBProcPtr) (GLenum target, GLenum pname, GLint *params); | ||
441 | typedef void (* glGetBufferPointervARBProcPtr) (GLenum target, GLenum pname, GLvoid* *params); | ||
442 | #else | ||
443 | extern void glBindBufferARB (GLenum, GLuint); | ||
444 | extern void glDeleteBuffersARB (GLsizei, const GLuint *); | ||
445 | extern void glGenBuffersARB (GLsizei, GLuint *); | ||
446 | extern GLboolean glIsBufferARB (GLuint); | ||
447 | extern void glBufferDataARB (GLenum, GLsizeiptrARB, const GLvoid *, GLenum); | ||
448 | extern void glBufferSubDataARB (GLenum, GLintptrARB, GLsizeiptrARB, const GLvoid *); | ||
449 | extern void glGetBufferSubDataARB (GLenum, GLintptrARB, GLsizeiptrARB, GLvoid *); | ||
450 | extern GLvoid* glMapBufferARB (GLenum, GLenum); | ||
451 | extern GLboolean glUnmapBufferARB (GLenum); | ||
452 | extern void glGetBufferParameterivARB (GLenum, GLenum, GLint *); | ||
453 | extern void glGetBufferPointervARB (GLenum, GLenum, GLvoid* *); | ||
454 | #endif /* GL_GLEXT_FUNCTION_POINTERS */ | ||
455 | #endif | ||
456 | |||
457 | // May be needed for DARWIN... | ||
458 | // #ifndef GL_ARB_compressed_tex_image | ||
459 | // #define GL_ARB_compressed_tex_image 1 | ||
460 | // #ifdef GL_GLEXT_FUNCTION_POINTERS | ||
461 | // typedef void (* glCompressedTexImage1D) (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid*); | ||
462 | // typedef void (* glCompressedTexImage2D) (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid*); | ||
463 | // typedef void (* glCompressedTexImage3D) (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid*); | ||
464 | // typedef void (* glCompressedTexSubImage1D) (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid*); | ||
465 | // typedef void (* glCompressedTexSubImage2D) (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid*); | ||
466 | // typedef void (* glCompressedTexSubImage3D) (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid*); | ||
467 | // typedef void (* glGetCompressedTexImage) (GLenum, GLint, GLvoid*); | ||
468 | // #else | ||
469 | // extern void glCompressedTexImage1D (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid*); | ||
470 | // extern void glCompressedTexImage2D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid*); | ||
471 | // extern void glCompressedTexImage3D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid*); | ||
472 | // extern void glCompressedTexSubImage1D (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid*); | ||
473 | // extern void glCompressedTexSubImage2D (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid*); | ||
474 | // extern void glCompressedTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid*); | ||
475 | // extern void glGetCompressedTexImage (GLenum, GLint, GLvoid*); | ||
476 | // #endif /* GL_GLEXT_FUNCTION_POINTERS */ | ||
477 | // #endif | ||
478 | |||
479 | #ifdef __cplusplus | ||
480 | } | ||
481 | #endif | ||
482 | |||
483 | #endif // LL_MESA / LL_WINDOWS / LL_DARWIN | ||
484 | |||
485 | |||
486 | #endif // LL_LLGLHEADERS_H | ||