diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/llwindow/llglheaders.h | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/llwindow/llglheaders.h')
-rw-r--r-- | linden/indra/llwindow/llglheaders.h | 68 |
1 files changed, 66 insertions, 2 deletions
diff --git a/linden/indra/llwindow/llglheaders.h b/linden/indra/llwindow/llglheaders.h index 7c4d8fd..1d815ee 100644 --- a/linden/indra/llwindow/llglheaders.h +++ b/linden/indra/llwindow/llglheaders.h | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 5 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * 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 | * 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 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -137,7 +138,7 @@ extern PFNGLGETUNIFORMFVARBPROC glGetUniformfvARB; | |||
137 | extern PFNGLGETUNIFORMIVARBPROC glGetUniformivARB; | 138 | extern PFNGLGETUNIFORMIVARBPROC glGetUniformivARB; |
138 | extern PFNGLGETSHADERSOURCEARBPROC glGetShaderSourceARB; | 139 | extern PFNGLGETSHADERSOURCEARBPROC glGetShaderSourceARB; |
139 | 140 | ||
140 | // GL_ARB;_vertex_shader | 141 | // GL_ARB_vertex_shader |
141 | extern PFNGLVERTEXATTRIB1DARBPROC glVertexAttrib1dARB; | 142 | extern PFNGLVERTEXATTRIB1DARBPROC glVertexAttrib1dARB; |
142 | extern PFNGLVERTEXATTRIB1DVARBPROC glVertexAttrib1dvARB; | 143 | extern PFNGLVERTEXATTRIB1DVARBPROC glVertexAttrib1dvARB; |
143 | extern PFNGLVERTEXATTRIB1FARBPROC glVertexAttrib1fARB; | 144 | extern PFNGLVERTEXATTRIB1FARBPROC glVertexAttrib1fARB; |
@@ -209,6 +210,26 @@ extern PFNGLGETCOMPRESSEDTEXIMAGEARBPROC glGetCompressedTexImageARB; | |||
209 | 210 | ||
210 | extern PFNGLCOLORTABLEEXTPROC glColorTableEXT; | 211 | extern PFNGLCOLORTABLEEXTPROC glColorTableEXT; |
211 | 212 | ||
213 | //GL_EXT_framebuffer_object | ||
214 | extern PFNGLISRENDERBUFFEREXTPROC glIsRenderbufferEXT; | ||
215 | extern PFNGLBINDRENDERBUFFEREXTPROC glBindRenderbufferEXT; | ||
216 | extern PFNGLDELETERENDERBUFFERSEXTPROC glDeleteRenderbuffersEXT; | ||
217 | extern PFNGLGENRENDERBUFFERSEXTPROC glGenRenderbuffersEXT; | ||
218 | extern PFNGLRENDERBUFFERSTORAGEEXTPROC glRenderbufferStorageEXT; | ||
219 | extern PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC glGetRenderbufferParameterivEXT; | ||
220 | extern PFNGLISFRAMEBUFFEREXTPROC glIsFramebufferEXT; | ||
221 | extern PFNGLBINDFRAMEBUFFEREXTPROC glBindFramebufferEXT; | ||
222 | extern PFNGLDELETEFRAMEBUFFERSEXTPROC glDeleteFramebuffersEXT; | ||
223 | extern PFNGLGENFRAMEBUFFERSEXTPROC glGenFramebuffersEXT; | ||
224 | extern PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC glCheckFramebufferStatusEXT; | ||
225 | extern PFNGLFRAMEBUFFERTEXTURE1DEXTPROC glFramebufferTexture1DEXT; | ||
226 | extern PFNGLFRAMEBUFFERTEXTURE2DEXTPROC glFramebufferTexture2DEXT; | ||
227 | extern PFNGLFRAMEBUFFERTEXTURE3DEXTPROC glFramebufferTexture3DEXT; | ||
228 | extern PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC glFramebufferRenderbufferEXT; | ||
229 | extern PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC glGetFramebufferAttachmentParameterivEXT; | ||
230 | extern PFNGLGENERATEMIPMAPEXTPROC glGenerateMipmapEXT; | ||
231 | |||
232 | |||
212 | #elif LL_WINDOWS | 233 | #elif LL_WINDOWS |
213 | //---------------------------------------------------------------------------- | 234 | //---------------------------------------------------------------------------- |
214 | #include <GL/gl.h> | 235 | #include <GL/gl.h> |
@@ -304,7 +325,7 @@ extern PFNGLGETUNIFORMFVARBPROC glGetUniformfvARB; | |||
304 | extern PFNGLGETUNIFORMIVARBPROC glGetUniformivARB; | 325 | extern PFNGLGETUNIFORMIVARBPROC glGetUniformivARB; |
305 | extern PFNGLGETSHADERSOURCEARBPROC glGetShaderSourceARB; | 326 | extern PFNGLGETSHADERSOURCEARBPROC glGetShaderSourceARB; |
306 | 327 | ||
307 | // GL_ARB;_vertex_shader | 328 | // GL_ARB_vertex_shader |
308 | extern PFNGLVERTEXATTRIB1DARBPROC glVertexAttrib1dARB; | 329 | extern PFNGLVERTEXATTRIB1DARBPROC glVertexAttrib1dARB; |
309 | extern PFNGLVERTEXATTRIB1DVARBPROC glVertexAttrib1dvARB; | 330 | extern PFNGLVERTEXATTRIB1DVARBPROC glVertexAttrib1dvARB; |
310 | extern PFNGLVERTEXATTRIB1FARBPROC glVertexAttrib1fARB; | 331 | extern PFNGLVERTEXATTRIB1FARBPROC glVertexAttrib1fARB; |
@@ -371,6 +392,25 @@ extern PFNGLBINDATTRIBLOCATIONARBPROC glBindAttribLocationARB; | |||
371 | extern PFNGLGETACTIVEATTRIBARBPROC glGetActiveAttribARB; | 392 | extern PFNGLGETACTIVEATTRIBARBPROC glGetActiveAttribARB; |
372 | extern PFNGLGETATTRIBLOCATIONARBPROC glGetAttribLocationARB; | 393 | extern PFNGLGETATTRIBLOCATIONARBPROC glGetAttribLocationARB; |
373 | 394 | ||
395 | //GL_EXT_framebuffer_object | ||
396 | extern PFNGLISRENDERBUFFEREXTPROC glIsRenderbufferEXT; | ||
397 | extern PFNGLBINDRENDERBUFFEREXTPROC glBindRenderbufferEXT; | ||
398 | extern PFNGLDELETERENDERBUFFERSEXTPROC glDeleteRenderbuffersEXT; | ||
399 | extern PFNGLGENRENDERBUFFERSEXTPROC glGenRenderbuffersEXT; | ||
400 | extern PFNGLRENDERBUFFERSTORAGEEXTPROC glRenderbufferStorageEXT; | ||
401 | extern PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC glGetRenderbufferParameterivEXT; | ||
402 | extern PFNGLISFRAMEBUFFEREXTPROC glIsFramebufferEXT; | ||
403 | extern PFNGLBINDFRAMEBUFFEREXTPROC glBindFramebufferEXT; | ||
404 | extern PFNGLDELETEFRAMEBUFFERSEXTPROC glDeleteFramebuffersEXT; | ||
405 | extern PFNGLGENFRAMEBUFFERSEXTPROC glGenFramebuffersEXT; | ||
406 | extern PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC glCheckFramebufferStatusEXT; | ||
407 | extern PFNGLFRAMEBUFFERTEXTURE1DEXTPROC glFramebufferTexture1DEXT; | ||
408 | extern PFNGLFRAMEBUFFERTEXTURE2DEXTPROC glFramebufferTexture2DEXT; | ||
409 | extern PFNGLFRAMEBUFFERTEXTURE3DEXTPROC glFramebufferTexture3DEXT; | ||
410 | extern PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC glFramebufferRenderbufferEXT; | ||
411 | extern PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC glGetFramebufferAttachmentParameterivEXT; | ||
412 | extern PFNGLGENERATEMIPMAPEXTPROC glGenerateMipmapEXT; | ||
413 | |||
374 | 414 | ||
375 | #elif LL_DARWIN | 415 | #elif LL_DARWIN |
376 | //---------------------------------------------------------------------------- | 416 | //---------------------------------------------------------------------------- |
@@ -384,6 +424,30 @@ extern PFNGLGETATTRIBLOCATIONARBPROC glGetAttribLocationARB; | |||
384 | 424 | ||
385 | #include "GL/glh_extensions.h" | 425 | #include "GL/glh_extensions.h" |
386 | 426 | ||
427 | // These symbols don't exist on 10.3.9, so they have to be declared weak. Redeclaring them here fixes the problem. | ||
428 | // Note that they also must not be called on 10.3.9. This should be taken care of by a runtime check for the existence of the GL extension. | ||
429 | #include <AvailabilityMacros.h> | ||
430 | |||
431 | // GL_EXT_framebuffer_object | ||
432 | extern GLboolean glIsRenderbufferEXT(GLuint renderbuffer) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
433 | extern void glBindRenderbufferEXT(GLenum target, GLuint renderbuffer) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
434 | extern void glDeleteRenderbuffersEXT(GLsizei n, const GLuint *renderbuffers) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
435 | extern void glGenRenderbuffersEXT(GLsizei n, GLuint *renderbuffers) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
436 | extern void glRenderbufferStorageEXT(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
437 | extern void glGetRenderbufferParameterivEXT(GLenum target, GLenum pname, GLint *params) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
438 | extern GLboolean glIsFramebufferEXT(GLuint framebuffer) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
439 | extern void glBindFramebufferEXT(GLenum target, GLuint framebuffer) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
440 | extern void glDeleteFramebuffersEXT(GLsizei n, const GLuint *framebuffers) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
441 | extern void glGenFramebuffersEXT(GLsizei n, GLuint *framebuffers) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
442 | extern GLenum glCheckFramebufferStatusEXT(GLenum target) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
443 | extern void glFramebufferTexture1DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
444 | extern void glFramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
445 | extern void glFramebufferTexture3DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
446 | extern void glFramebufferRenderbufferEXT(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
447 | extern void glGetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment, GLenum pname, GLint *params) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
448 | extern void glGenerateMipmapEXT(GLenum target) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; | ||
449 | |||
450 | |||
387 | #ifdef __cplusplus | 451 | #ifdef __cplusplus |
388 | extern "C" { | 452 | extern "C" { |
389 | #endif | 453 | #endif |