diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llwindow/llglheaders.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/llwindow/llglheaders.h')
-rw-r--r-- | linden/indra/llwindow/llglheaders.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/linden/indra/llwindow/llglheaders.h b/linden/indra/llwindow/llglheaders.h index 45310ef..d66fbe4 100644 --- a/linden/indra/llwindow/llglheaders.h +++ b/linden/indra/llwindow/llglheaders.h | |||
@@ -50,6 +50,11 @@ | |||
50 | #include "GL/glext.h" | 50 | #include "GL/glext.h" |
51 | #include "GL/glu.h" | 51 | #include "GL/glu.h" |
52 | 52 | ||
53 | // The __APPLE__ kludge is to make glh_extensions.h not symbol-clash horribly | ||
54 | # define __APPLE__ | ||
55 | # include "GL/glh_extensions.h" | ||
56 | # undef __APPLE__ | ||
57 | |||
53 | #elif LL_LINUX | 58 | #elif LL_LINUX |
54 | //---------------------------------------------------------------------------- | 59 | //---------------------------------------------------------------------------- |
55 | // Linux, MESA headers, but not necessarily assuming MESA runtime. | 60 | // Linux, MESA headers, but not necessarily assuming MESA runtime. |
@@ -58,6 +63,29 @@ | |||
58 | #include "GL/glext.h" | 63 | #include "GL/glext.h" |
59 | #include "GL/glu.h" | 64 | #include "GL/glu.h" |
60 | 65 | ||
66 | |||
67 | #if LL_LINUX && !LL_MESA_HEADLESS | ||
68 | // The __APPLE__ kludge is to make glh_extensions.h not symbol-clash horribly | ||
69 | # define __APPLE__ | ||
70 | # include "GL/glh_extensions.h" | ||
71 | # undef __APPLE__ | ||
72 | |||
73 | /* Although SDL very likely ends up calling glXGetProcAddress() itself, | ||
74 | if we use SDL_GL_GetProcAddress() then we get bogus addresses back on | ||
75 | some systems. Weird. */ | ||
76 | /*# include "SDL/SDL.h" | ||
77 | # define GLH_EXT_GET_PROC_ADDRESS(p) SDL_GL_GetProcAddress(p) */ | ||
78 | #define GLX_GLXEXT_PROTOTYPES 1 | ||
79 | # include "GL/glx.h" | ||
80 | # include "GL/glxext.h" | ||
81 | // Use glXGetProcAddressARB instead of glXGetProcAddress - the ARB symbol | ||
82 | // is considered 'legacy' but works on more machines. | ||
83 | # define GLH_EXT_GET_PROC_ADDRESS(p) glXGetProcAddressARB((const GLubyte*)(p)) | ||
84 | // Whee, the X headers define 'Status'. Undefine to avoid confusion. | ||
85 | #undef Status | ||
86 | #endif // LL_LINUX && !LL_MESA_HEADLESS | ||
87 | |||
88 | |||
61 | // GL_ARB_vertex_buffer_object | 89 | // GL_ARB_vertex_buffer_object |
62 | extern PFNGLBINDBUFFERARBPROC glBindBufferARB; | 90 | extern PFNGLBINDBUFFERARBPROC glBindBufferARB; |
63 | extern PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB; | 91 | extern PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB; |
@@ -234,6 +262,12 @@ extern PFNGLGENERATEMIPMAPEXTPROC glGenerateMipmapEXT; | |||
234 | 262 | ||
235 | 263 | ||
236 | #elif LL_WINDOWS | 264 | #elif LL_WINDOWS |
265 | |||
266 | // windows gl headers depend on things like APIENTRY, so include windows. | ||
267 | #define WIN32_LEAN_AND_MEAN | ||
268 | #include <winsock2.h> | ||
269 | #include <windows.h> | ||
270 | |||
237 | //---------------------------------------------------------------------------- | 271 | //---------------------------------------------------------------------------- |
238 | #include <GL/gl.h> | 272 | #include <GL/gl.h> |
239 | #include <GL/glu.h> | 273 | #include <GL/glu.h> |
@@ -555,6 +589,8 @@ extern void glGetBufferPointervARB (GLenum, GLenum, GLvoid* *); | |||
555 | } | 589 | } |
556 | #endif | 590 | #endif |
557 | 591 | ||
592 | #include <AGL/gl.h> | ||
593 | |||
558 | #endif // LL_MESA / LL_WINDOWS / LL_DARWIN | 594 | #endif // LL_MESA / LL_WINDOWS / LL_DARWIN |
559 | 595 | ||
560 | 596 | ||