aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow/llglheaders.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/llwindow/llglheaders.h
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-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.h68
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;
137extern PFNGLGETUNIFORMIVARBPROC glGetUniformivARB; 138extern PFNGLGETUNIFORMIVARBPROC glGetUniformivARB;
138extern PFNGLGETSHADERSOURCEARBPROC glGetShaderSourceARB; 139extern PFNGLGETSHADERSOURCEARBPROC glGetShaderSourceARB;
139 140
140// GL_ARB;_vertex_shader 141// GL_ARB_vertex_shader
141extern PFNGLVERTEXATTRIB1DARBPROC glVertexAttrib1dARB; 142extern PFNGLVERTEXATTRIB1DARBPROC glVertexAttrib1dARB;
142extern PFNGLVERTEXATTRIB1DVARBPROC glVertexAttrib1dvARB; 143extern PFNGLVERTEXATTRIB1DVARBPROC glVertexAttrib1dvARB;
143extern PFNGLVERTEXATTRIB1FARBPROC glVertexAttrib1fARB; 144extern PFNGLVERTEXATTRIB1FARBPROC glVertexAttrib1fARB;
@@ -209,6 +210,26 @@ extern PFNGLGETCOMPRESSEDTEXIMAGEARBPROC glGetCompressedTexImageARB;
209 210
210extern PFNGLCOLORTABLEEXTPROC glColorTableEXT; 211extern PFNGLCOLORTABLEEXTPROC glColorTableEXT;
211 212
213//GL_EXT_framebuffer_object
214extern PFNGLISRENDERBUFFEREXTPROC glIsRenderbufferEXT;
215extern PFNGLBINDRENDERBUFFEREXTPROC glBindRenderbufferEXT;
216extern PFNGLDELETERENDERBUFFERSEXTPROC glDeleteRenderbuffersEXT;
217extern PFNGLGENRENDERBUFFERSEXTPROC glGenRenderbuffersEXT;
218extern PFNGLRENDERBUFFERSTORAGEEXTPROC glRenderbufferStorageEXT;
219extern PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC glGetRenderbufferParameterivEXT;
220extern PFNGLISFRAMEBUFFEREXTPROC glIsFramebufferEXT;
221extern PFNGLBINDFRAMEBUFFEREXTPROC glBindFramebufferEXT;
222extern PFNGLDELETEFRAMEBUFFERSEXTPROC glDeleteFramebuffersEXT;
223extern PFNGLGENFRAMEBUFFERSEXTPROC glGenFramebuffersEXT;
224extern PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC glCheckFramebufferStatusEXT;
225extern PFNGLFRAMEBUFFERTEXTURE1DEXTPROC glFramebufferTexture1DEXT;
226extern PFNGLFRAMEBUFFERTEXTURE2DEXTPROC glFramebufferTexture2DEXT;
227extern PFNGLFRAMEBUFFERTEXTURE3DEXTPROC glFramebufferTexture3DEXT;
228extern PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC glFramebufferRenderbufferEXT;
229extern PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC glGetFramebufferAttachmentParameterivEXT;
230extern 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;
304extern PFNGLGETUNIFORMIVARBPROC glGetUniformivARB; 325extern PFNGLGETUNIFORMIVARBPROC glGetUniformivARB;
305extern PFNGLGETSHADERSOURCEARBPROC glGetShaderSourceARB; 326extern PFNGLGETSHADERSOURCEARBPROC glGetShaderSourceARB;
306 327
307// GL_ARB;_vertex_shader 328// GL_ARB_vertex_shader
308extern PFNGLVERTEXATTRIB1DARBPROC glVertexAttrib1dARB; 329extern PFNGLVERTEXATTRIB1DARBPROC glVertexAttrib1dARB;
309extern PFNGLVERTEXATTRIB1DVARBPROC glVertexAttrib1dvARB; 330extern PFNGLVERTEXATTRIB1DVARBPROC glVertexAttrib1dvARB;
310extern PFNGLVERTEXATTRIB1FARBPROC glVertexAttrib1fARB; 331extern PFNGLVERTEXATTRIB1FARBPROC glVertexAttrib1fARB;
@@ -371,6 +392,25 @@ extern PFNGLBINDATTRIBLOCATIONARBPROC glBindAttribLocationARB;
371extern PFNGLGETACTIVEATTRIBARBPROC glGetActiveAttribARB; 392extern PFNGLGETACTIVEATTRIBARBPROC glGetActiveAttribARB;
372extern PFNGLGETATTRIBLOCATIONARBPROC glGetAttribLocationARB; 393extern PFNGLGETATTRIBLOCATIONARBPROC glGetAttribLocationARB;
373 394
395//GL_EXT_framebuffer_object
396extern PFNGLISRENDERBUFFEREXTPROC glIsRenderbufferEXT;
397extern PFNGLBINDRENDERBUFFEREXTPROC glBindRenderbufferEXT;
398extern PFNGLDELETERENDERBUFFERSEXTPROC glDeleteRenderbuffersEXT;
399extern PFNGLGENRENDERBUFFERSEXTPROC glGenRenderbuffersEXT;
400extern PFNGLRENDERBUFFERSTORAGEEXTPROC glRenderbufferStorageEXT;
401extern PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC glGetRenderbufferParameterivEXT;
402extern PFNGLISFRAMEBUFFEREXTPROC glIsFramebufferEXT;
403extern PFNGLBINDFRAMEBUFFEREXTPROC glBindFramebufferEXT;
404extern PFNGLDELETEFRAMEBUFFERSEXTPROC glDeleteFramebuffersEXT;
405extern PFNGLGENFRAMEBUFFERSEXTPROC glGenFramebuffersEXT;
406extern PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC glCheckFramebufferStatusEXT;
407extern PFNGLFRAMEBUFFERTEXTURE1DEXTPROC glFramebufferTexture1DEXT;
408extern PFNGLFRAMEBUFFERTEXTURE2DEXTPROC glFramebufferTexture2DEXT;
409extern PFNGLFRAMEBUFFERTEXTURE3DEXTPROC glFramebufferTexture3DEXT;
410extern PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC glFramebufferRenderbufferEXT;
411extern PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC glGetFramebufferAttachmentParameterivEXT;
412extern 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
432extern GLboolean glIsRenderbufferEXT(GLuint renderbuffer) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
433extern void glBindRenderbufferEXT(GLenum target, GLuint renderbuffer) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
434extern void glDeleteRenderbuffersEXT(GLsizei n, const GLuint *renderbuffers) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
435extern void glGenRenderbuffersEXT(GLsizei n, GLuint *renderbuffers) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
436extern void glRenderbufferStorageEXT(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
437extern void glGetRenderbufferParameterivEXT(GLenum target, GLenum pname, GLint *params) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
438extern GLboolean glIsFramebufferEXT(GLuint framebuffer) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
439extern void glBindFramebufferEXT(GLenum target, GLuint framebuffer) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
440extern void glDeleteFramebuffersEXT(GLsizei n, const GLuint *framebuffers) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
441extern void glGenFramebuffersEXT(GLsizei n, GLuint *framebuffers) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
442extern GLenum glCheckFramebufferStatusEXT(GLenum target) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
443extern void glFramebufferTexture1DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
444extern void glFramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
445extern void glFramebufferTexture3DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
446extern void glFramebufferRenderbufferEXT(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
447extern void glGetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment, GLenum pname, GLint *params) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
448extern void glGenerateMipmapEXT(GLenum target) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
449
450
387#ifdef __cplusplus 451#ifdef __cplusplus
388extern "C" { 452extern "C" {
389#endif 453#endif