|
@@ -1,5 +1,6 @@
|
|
|
/*
|
|
/*
|
|
|
** The OpenGL Extension Wrangler Library
|
|
** The OpenGL Extension Wrangler Library
|
|
|
|
|
+** Copyright (C) 2008-2015, Nigel Stewart <nigels[]users sourceforge net>
|
|
|
** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
|
** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
|
|
** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
|
** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
|
|
** Copyright (C) 2002, Lev Povalahev
|
|
** Copyright (C) 2002, Lev Povalahev
|
|
@@ -200,12 +201,12 @@ typedef Display* ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
|
|
|
#ifndef GLX_VERSION_1_3
|
|
#ifndef GLX_VERSION_1_3
|
|
|
#define GLX_VERSION_1_3 1
|
|
#define GLX_VERSION_1_3 1
|
|
|
|
|
|
|
|
-#define GLX_RGBA_BIT 0x00000001
|
|
|
|
|
#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
|
|
#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
|
|
|
|
|
+#define GLX_RGBA_BIT 0x00000001
|
|
|
#define GLX_WINDOW_BIT 0x00000001
|
|
#define GLX_WINDOW_BIT 0x00000001
|
|
|
#define GLX_COLOR_INDEX_BIT 0x00000002
|
|
#define GLX_COLOR_INDEX_BIT 0x00000002
|
|
|
-#define GLX_PIXMAP_BIT 0x00000002
|
|
|
|
|
#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
|
|
#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
|
|
|
|
|
+#define GLX_PIXMAP_BIT 0x00000002
|
|
|
#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
|
|
#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
|
|
|
#define GLX_PBUFFER_BIT 0x00000004
|
|
#define GLX_PBUFFER_BIT 0x00000004
|
|
|
#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
|
|
#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
|
|
@@ -362,10 +363,43 @@ extern void ( * glXGetProcAddress (const GLubyte *procName)) (void);
|
|
|
#define GLX_GPU_NUM_RB_AMD 0x21A7
|
|
#define GLX_GPU_NUM_RB_AMD 0x21A7
|
|
|
#define GLX_GPU_NUM_SPI_AMD 0x21A8
|
|
#define GLX_GPU_NUM_SPI_AMD 0x21A8
|
|
|
|
|
|
|
|
|
|
+typedef void ( * PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC) (GLXContext dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
|
|
|
|
|
+typedef GLXContext ( * PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC) (unsigned int id, GLXContext share_list);
|
|
|
|
|
+typedef GLXContext ( * PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (unsigned int id, GLXContext share_context, const int* attribList);
|
|
|
|
|
+typedef Bool ( * PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC) (GLXContext ctx);
|
|
|
|
|
+typedef unsigned int ( * PFNGLXGETCONTEXTGPUIDAMDPROC) (GLXContext ctx);
|
|
|
|
|
+typedef GLXContext ( * PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
|
|
|
|
|
+typedef unsigned int ( * PFNGLXGETGPUIDSAMDPROC) (unsigned int maxCount, unsigned int* ids);
|
|
|
|
|
+typedef int ( * PFNGLXGETGPUINFOAMDPROC) (unsigned int id, int property, GLenum dataType, unsigned int size, void* data);
|
|
|
|
|
+typedef Bool ( * PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (GLXContext ctx);
|
|
|
|
|
+
|
|
|
|
|
+#define glXBlitContextFramebufferAMD GLXEW_GET_FUN(__glewXBlitContextFramebufferAMD)
|
|
|
|
|
+#define glXCreateAssociatedContextAMD GLXEW_GET_FUN(__glewXCreateAssociatedContextAMD)
|
|
|
|
|
+#define glXCreateAssociatedContextAttribsAMD GLXEW_GET_FUN(__glewXCreateAssociatedContextAttribsAMD)
|
|
|
|
|
+#define glXDeleteAssociatedContextAMD GLXEW_GET_FUN(__glewXDeleteAssociatedContextAMD)
|
|
|
|
|
+#define glXGetContextGPUIDAMD GLXEW_GET_FUN(__glewXGetContextGPUIDAMD)
|
|
|
|
|
+#define glXGetCurrentAssociatedContextAMD GLXEW_GET_FUN(__glewXGetCurrentAssociatedContextAMD)
|
|
|
|
|
+#define glXGetGPUIDsAMD GLXEW_GET_FUN(__glewXGetGPUIDsAMD)
|
|
|
|
|
+#define glXGetGPUInfoAMD GLXEW_GET_FUN(__glewXGetGPUInfoAMD)
|
|
|
|
|
+#define glXMakeAssociatedContextCurrentAMD GLXEW_GET_FUN(__glewXMakeAssociatedContextCurrentAMD)
|
|
|
|
|
+
|
|
|
#define GLXEW_AMD_gpu_association GLXEW_GET_VAR(__GLXEW_AMD_gpu_association)
|
|
#define GLXEW_AMD_gpu_association GLXEW_GET_VAR(__GLXEW_AMD_gpu_association)
|
|
|
|
|
|
|
|
#endif /* GLX_AMD_gpu_association */
|
|
#endif /* GLX_AMD_gpu_association */
|
|
|
|
|
|
|
|
|
|
+/* --------------------- GLX_ARB_context_flush_control --------------------- */
|
|
|
|
|
+
|
|
|
|
|
+#ifndef GLX_ARB_context_flush_control
|
|
|
|
|
+#define GLX_ARB_context_flush_control 1
|
|
|
|
|
+
|
|
|
|
|
+#define GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0x0000
|
|
|
|
|
+#define GLX_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097
|
|
|
|
|
+#define GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
|
|
|
|
|
+
|
|
|
|
|
+#define GLXEW_ARB_context_flush_control GLXEW_GET_VAR(__GLXEW_ARB_context_flush_control)
|
|
|
|
|
+
|
|
|
|
|
+#endif /* GLX_ARB_context_flush_control */
|
|
|
|
|
+
|
|
|
/* ------------------------- GLX_ARB_create_context ------------------------ */
|
|
/* ------------------------- GLX_ARB_create_context ------------------------ */
|
|
|
|
|
|
|
|
#ifndef GLX_ARB_create_context
|
|
#ifndef GLX_ARB_create_context
|
|
@@ -417,8 +451,8 @@ typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display* dpy, GLXFBCo
|
|
|
#ifndef GLX_ARB_fbconfig_float
|
|
#ifndef GLX_ARB_fbconfig_float
|
|
|
#define GLX_ARB_fbconfig_float 1
|
|
#define GLX_ARB_fbconfig_float 1
|
|
|
|
|
|
|
|
-#define GLX_RGBA_FLOAT_BIT 0x00000004
|
|
|
|
|
-#define GLX_RGBA_FLOAT_TYPE 0x20B9
|
|
|
|
|
|
|
+#define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
|
|
|
|
|
+#define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
|
|
|
|
|
|
|
|
#define GLXEW_ARB_fbconfig_float GLXEW_GET_VAR(__GLXEW_ARB_fbconfig_float)
|
|
#define GLXEW_ARB_fbconfig_float GLXEW_GET_VAR(__GLXEW_ARB_fbconfig_float)
|
|
|
|
|
|
|
@@ -555,6 +589,17 @@ typedef void ( * PFNGLXRELEASETEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, i
|
|
|
|
|
|
|
|
#endif /* GLX_ATI_render_texture */
|
|
#endif /* GLX_ATI_render_texture */
|
|
|
|
|
|
|
|
|
|
+/* --------------------------- GLX_EXT_buffer_age -------------------------- */
|
|
|
|
|
+
|
|
|
|
|
+#ifndef GLX_EXT_buffer_age
|
|
|
|
|
+#define GLX_EXT_buffer_age 1
|
|
|
|
|
+
|
|
|
|
|
+#define GLX_BACK_BUFFER_AGE_EXT 0x20F4
|
|
|
|
|
+
|
|
|
|
|
+#define GLXEW_EXT_buffer_age GLXEW_GET_VAR(__GLXEW_EXT_buffer_age)
|
|
|
|
|
+
|
|
|
|
|
+#endif /* GLX_EXT_buffer_age */
|
|
|
|
|
+
|
|
|
/* ------------------- GLX_EXT_create_context_es2_profile ------------------ */
|
|
/* ------------------- GLX_EXT_create_context_es2_profile ------------------ */
|
|
|
|
|
|
|
|
#ifndef GLX_EXT_create_context_es2_profile
|
|
#ifndef GLX_EXT_create_context_es2_profile
|
|
@@ -634,6 +679,19 @@ typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display* dpy, GLXContext context
|
|
|
|
|
|
|
|
#endif /* GLX_EXT_scene_marker */
|
|
#endif /* GLX_EXT_scene_marker */
|
|
|
|
|
|
|
|
|
|
+/* -------------------------- GLX_EXT_stereo_tree -------------------------- */
|
|
|
|
|
+
|
|
|
|
|
+#ifndef GLX_EXT_stereo_tree
|
|
|
|
|
+#define GLX_EXT_stereo_tree 1
|
|
|
|
|
+
|
|
|
|
|
+#define GLX_STEREO_NOTIFY_EXT 0x00000000
|
|
|
|
|
+#define GLX_STEREO_NOTIFY_MASK_EXT 0x00000001
|
|
|
|
|
+#define GLX_STEREO_TREE_EXT 0x20F5
|
|
|
|
|
+
|
|
|
|
|
+#define GLXEW_EXT_stereo_tree GLXEW_GET_VAR(__GLXEW_EXT_stereo_tree)
|
|
|
|
|
+
|
|
|
|
|
+#endif /* GLX_EXT_stereo_tree */
|
|
|
|
|
+
|
|
|
/* -------------------------- GLX_EXT_swap_control ------------------------- */
|
|
/* -------------------------- GLX_EXT_swap_control ------------------------- */
|
|
|
|
|
|
|
|
#ifndef GLX_EXT_swap_control
|
|
#ifndef GLX_EXT_swap_control
|
|
@@ -800,6 +858,38 @@ typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display* dpy, XVisualInfo
|
|
|
|
|
|
|
|
#endif /* GLX_MESA_pixmap_colormap */
|
|
#endif /* GLX_MESA_pixmap_colormap */
|
|
|
|
|
|
|
|
|
|
+/* ------------------------ GLX_MESA_query_renderer ------------------------ */
|
|
|
|
|
+
|
|
|
|
|
+#ifndef GLX_MESA_query_renderer
|
|
|
|
|
+#define GLX_MESA_query_renderer 1
|
|
|
|
|
+
|
|
|
|
|
+#define GLX_RENDERER_VENDOR_ID_MESA 0x8183
|
|
|
|
|
+#define GLX_RENDERER_DEVICE_ID_MESA 0x8184
|
|
|
|
|
+#define GLX_RENDERER_VERSION_MESA 0x8185
|
|
|
|
|
+#define GLX_RENDERER_ACCELERATED_MESA 0x8186
|
|
|
|
|
+#define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187
|
|
|
|
|
+#define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
|
|
|
|
|
+#define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
|
|
|
|
|
+#define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
|
|
|
|
|
+#define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
|
|
|
|
|
+#define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
|
|
|
|
|
+#define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
|
|
|
|
|
+#define GLX_RENDERER_ID_MESA 0x818E
|
|
|
|
|
+
|
|
|
|
|
+typedef Bool ( * PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int* value);
|
|
|
|
|
+typedef const char* ( * PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
|
|
|
|
|
+typedef Bool ( * PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display* dpy, int screen, int renderer, int attribute, unsigned int *value);
|
|
|
|
|
+typedef const char* ( * PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute);
|
|
|
|
|
+
|
|
|
|
|
+#define glXQueryCurrentRendererIntegerMESA GLXEW_GET_FUN(__glewXQueryCurrentRendererIntegerMESA)
|
|
|
|
|
+#define glXQueryCurrentRendererStringMESA GLXEW_GET_FUN(__glewXQueryCurrentRendererStringMESA)
|
|
|
|
|
+#define glXQueryRendererIntegerMESA GLXEW_GET_FUN(__glewXQueryRendererIntegerMESA)
|
|
|
|
|
+#define glXQueryRendererStringMESA GLXEW_GET_FUN(__glewXQueryRendererStringMESA)
|
|
|
|
|
+
|
|
|
|
|
+#define GLXEW_MESA_query_renderer GLXEW_GET_VAR(__GLXEW_MESA_query_renderer)
|
|
|
|
|
+
|
|
|
|
|
+#endif /* GLX_MESA_query_renderer */
|
|
|
|
|
+
|
|
|
/* ------------------------ GLX_MESA_release_buffers ----------------------- */
|
|
/* ------------------------ GLX_MESA_release_buffers ----------------------- */
|
|
|
|
|
|
|
|
#ifndef GLX_MESA_release_buffers
|
|
#ifndef GLX_MESA_release_buffers
|
|
@@ -844,6 +934,21 @@ typedef int ( * PFNGLXSWAPINTERVALMESAPROC) (unsigned int interval);
|
|
|
|
|
|
|
|
#endif /* GLX_MESA_swap_control */
|
|
#endif /* GLX_MESA_swap_control */
|
|
|
|
|
|
|
|
|
|
+/* --------------------------- GLX_NV_copy_buffer -------------------------- */
|
|
|
|
|
+
|
|
|
|
|
+#ifndef GLX_NV_copy_buffer
|
|
|
|
|
+#define GLX_NV_copy_buffer 1
|
|
|
|
|
+
|
|
|
|
|
+typedef void ( * PFNGLXCOPYBUFFERSUBDATANVPROC) (Display* dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
|
|
|
|
|
+typedef void ( * PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display* dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
|
|
|
|
|
+
|
|
|
|
|
+#define glXCopyBufferSubDataNV GLXEW_GET_FUN(__glewXCopyBufferSubDataNV)
|
|
|
|
|
+#define glXNamedCopyBufferSubDataNV GLXEW_GET_FUN(__glewXNamedCopyBufferSubDataNV)
|
|
|
|
|
+
|
|
|
|
|
+#define GLXEW_NV_copy_buffer GLXEW_GET_VAR(__GLXEW_NV_copy_buffer)
|
|
|
|
|
+
|
|
|
|
|
+#endif /* GLX_NV_copy_buffer */
|
|
|
|
|
+
|
|
|
/* --------------------------- GLX_NV_copy_image --------------------------- */
|
|
/* --------------------------- GLX_NV_copy_image --------------------------- */
|
|
|
|
|
|
|
|
#ifndef GLX_NV_copy_image
|
|
#ifndef GLX_NV_copy_image
|
|
@@ -857,6 +962,19 @@ typedef void ( * PFNGLXCOPYIMAGESUBDATANVPROC) (Display *dpy, GLXContext srcCtx,
|
|
|
|
|
|
|
|
#endif /* GLX_NV_copy_image */
|
|
#endif /* GLX_NV_copy_image */
|
|
|
|
|
|
|
|
|
|
+/* ------------------------ GLX_NV_delay_before_swap ----------------------- */
|
|
|
|
|
+
|
|
|
|
|
+#ifndef GLX_NV_delay_before_swap
|
|
|
|
|
+#define GLX_NV_delay_before_swap 1
|
|
|
|
|
+
|
|
|
|
|
+typedef Bool ( * PFNGLXDELAYBEFORESWAPNVPROC) (Display* dpy, GLXDrawable drawable, GLfloat seconds);
|
|
|
|
|
+
|
|
|
|
|
+#define glXDelayBeforeSwapNV GLXEW_GET_FUN(__glewXDelayBeforeSwapNV)
|
|
|
|
|
+
|
|
|
|
|
+#define GLXEW_NV_delay_before_swap GLXEW_GET_VAR(__GLXEW_NV_delay_before_swap)
|
|
|
|
|
+
|
|
|
|
|
+#endif /* GLX_NV_delay_before_swap */
|
|
|
|
|
+
|
|
|
/* -------------------------- GLX_NV_float_buffer -------------------------- */
|
|
/* -------------------------- GLX_NV_float_buffer -------------------------- */
|
|
|
|
|
|
|
|
#ifndef GLX_NV_float_buffer
|
|
#ifndef GLX_NV_float_buffer
|
|
@@ -1047,16 +1165,6 @@ typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display* dpy, GLXDrawable drawable, i
|
|
|
#ifndef GLX_SGIS_color_range
|
|
#ifndef GLX_SGIS_color_range
|
|
|
#define GLX_SGIS_color_range 1
|
|
#define GLX_SGIS_color_range 1
|
|
|
|
|
|
|
|
-#define GLX_MIN_RED_SGIS 0
|
|
|
|
|
-#define GLX_MAX_GREEN_SGIS 0
|
|
|
|
|
-#define GLX_MIN_BLUE_SGIS 0
|
|
|
|
|
-#define GLX_MAX_ALPHA_SGIS 0
|
|
|
|
|
-#define GLX_MIN_GREEN_SGIS 0
|
|
|
|
|
-#define GLX_MIN_ALPHA_SGIS 0
|
|
|
|
|
-#define GLX_MAX_RED_SGIS 0
|
|
|
|
|
-#define GLX_EXTENDED_RANGE_SGIS 0
|
|
|
|
|
-#define GLX_MAX_BLUE_SGIS 0
|
|
|
|
|
-
|
|
|
|
|
#define GLXEW_SGIS_color_range GLXEW_GET_VAR(__GLXEW_SGIS_color_range)
|
|
#define GLXEW_SGIS_color_range GLXEW_GET_VAR(__GLXEW_SGIS_color_range)
|
|
|
|
|
|
|
|
#endif /* GLX_SGIS_color_range */
|
|
#endif /* GLX_SGIS_color_range */
|
|
@@ -1090,10 +1198,10 @@ typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display* dpy, GLXDrawable drawable, i
|
|
|
#ifndef GLX_SGIX_fbconfig
|
|
#ifndef GLX_SGIX_fbconfig
|
|
|
#define GLX_SGIX_fbconfig 1
|
|
#define GLX_SGIX_fbconfig 1
|
|
|
|
|
|
|
|
-#define GLX_WINDOW_BIT_SGIX 0x00000001
|
|
|
|
|
#define GLX_RGBA_BIT_SGIX 0x00000001
|
|
#define GLX_RGBA_BIT_SGIX 0x00000001
|
|
|
-#define GLX_PIXMAP_BIT_SGIX 0x00000002
|
|
|
|
|
|
|
+#define GLX_WINDOW_BIT_SGIX 0x00000001
|
|
|
#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
|
|
#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
|
|
|
|
|
+#define GLX_PIXMAP_BIT_SGIX 0x00000002
|
|
|
#define GLX_SCREEN_EXT 0x800C
|
|
#define GLX_SCREEN_EXT 0x800C
|
|
|
#define GLX_DRAWABLE_TYPE_SGIX 0x8010
|
|
#define GLX_DRAWABLE_TYPE_SGIX 0x8010
|
|
|
#define GLX_RENDER_TYPE_SGIX 0x8011
|
|
#define GLX_RENDER_TYPE_SGIX 0x8011
|
|
@@ -1130,8 +1238,8 @@ typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLX
|
|
|
|
|
|
|
|
#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
|
|
#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
|
|
|
#define GLX_PIPE_RECT_SGIX 0x00000001
|
|
#define GLX_PIPE_RECT_SGIX 0x00000001
|
|
|
-#define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
|
|
|
|
|
#define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
|
|
#define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
|
|
|
|
|
+#define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
|
|
|
#define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
|
|
#define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
|
|
|
#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
|
|
#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
|
|
|
#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
|
|
#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
|
|
@@ -1197,8 +1305,8 @@ typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Disp
|
|
|
|
|
|
|
|
#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
|
|
#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
|
|
|
#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
|
|
#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
|
|
|
-#define GLX_PBUFFER_BIT_SGIX 0x00000004
|
|
|
|
|
#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
|
|
#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
|
|
|
|
|
+#define GLX_PBUFFER_BIT_SGIX 0x00000004
|
|
|
#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
|
|
#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
|
|
|
#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
|
|
#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
|
|
|
#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
|
|
#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
|
|
@@ -1393,7 +1501,7 @@ typedef int ( * PFNGLXVIDEORESIZESUNPROC) (Display* display, GLXDrawable window,
|
|
|
/* ------------------------------------------------------------------------- */
|
|
/* ------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#ifdef GLEW_MX
|
|
#ifdef GLEW_MX
|
|
|
-#define GLXEW_FUN_EXPORT
|
|
|
|
|
|
|
+#define GLXEW_FUN_EXPORT GLEW_FUN_EXPORT
|
|
|
#define GLXEW_VAR_EXPORT
|
|
#define GLXEW_VAR_EXPORT
|
|
|
#else
|
|
#else
|
|
|
#define GLXEW_FUN_EXPORT GLEW_FUN_EXPORT
|
|
#define GLXEW_FUN_EXPORT GLEW_FUN_EXPORT
|
|
@@ -1420,6 +1528,16 @@ GLXEW_FUN_EXPORT PFNGLXQUERYCONTEXTPROC __glewXQueryContext;
|
|
|
GLXEW_FUN_EXPORT PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable;
|
|
GLXEW_FUN_EXPORT PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable;
|
|
|
GLXEW_FUN_EXPORT PFNGLXSELECTEVENTPROC __glewXSelectEvent;
|
|
GLXEW_FUN_EXPORT PFNGLXSELECTEVENTPROC __glewXSelectEvent;
|
|
|
|
|
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC __glewXBlitContextFramebufferAMD;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC __glewXCreateAssociatedContextAMD;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __glewXCreateAssociatedContextAttribsAMD;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC __glewXDeleteAssociatedContextAMD;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXGETCONTEXTGPUIDAMDPROC __glewXGetContextGPUIDAMD;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC __glewXGetCurrentAssociatedContextAMD;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXGETGPUIDSAMDPROC __glewXGetGPUIDsAMD;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXGETGPUINFOAMDPROC __glewXGetGPUInfoAMD;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __glewXMakeAssociatedContextCurrentAMD;
|
|
|
|
|
+
|
|
|
GLXEW_FUN_EXPORT PFNGLXCREATECONTEXTATTRIBSARBPROC __glewXCreateContextAttribsARB;
|
|
GLXEW_FUN_EXPORT PFNGLXCREATECONTEXTATTRIBSARBPROC __glewXCreateContextAttribsARB;
|
|
|
|
|
|
|
|
GLXEW_FUN_EXPORT PFNGLXBINDTEXIMAGEATIPROC __glewXBindTexImageATI;
|
|
GLXEW_FUN_EXPORT PFNGLXBINDTEXIMAGEATIPROC __glewXBindTexImageATI;
|
|
@@ -1442,6 +1560,11 @@ GLXEW_FUN_EXPORT PFNGLXCOPYSUBBUFFERMESAPROC __glewXCopySubBufferMESA;
|
|
|
|
|
|
|
|
GLXEW_FUN_EXPORT PFNGLXCREATEGLXPIXMAPMESAPROC __glewXCreateGLXPixmapMESA;
|
|
GLXEW_FUN_EXPORT PFNGLXCREATEGLXPIXMAPMESAPROC __glewXCreateGLXPixmapMESA;
|
|
|
|
|
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC __glewXQueryCurrentRendererIntegerMESA;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC __glewXQueryCurrentRendererStringMESA;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXQUERYRENDERERINTEGERMESAPROC __glewXQueryRendererIntegerMESA;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXQUERYRENDERERSTRINGMESAPROC __glewXQueryRendererStringMESA;
|
|
|
|
|
+
|
|
|
GLXEW_FUN_EXPORT PFNGLXRELEASEBUFFERSMESAPROC __glewXReleaseBuffersMESA;
|
|
GLXEW_FUN_EXPORT PFNGLXRELEASEBUFFERSMESAPROC __glewXReleaseBuffersMESA;
|
|
|
|
|
|
|
|
GLXEW_FUN_EXPORT PFNGLXSET3DFXMODEMESAPROC __glewXSet3DfxModeMESA;
|
|
GLXEW_FUN_EXPORT PFNGLXSET3DFXMODEMESAPROC __glewXSet3DfxModeMESA;
|
|
@@ -1449,8 +1572,13 @@ GLXEW_FUN_EXPORT PFNGLXSET3DFXMODEMESAPROC __glewXSet3DfxModeMESA;
|
|
|
GLXEW_FUN_EXPORT PFNGLXGETSWAPINTERVALMESAPROC __glewXGetSwapIntervalMESA;
|
|
GLXEW_FUN_EXPORT PFNGLXGETSWAPINTERVALMESAPROC __glewXGetSwapIntervalMESA;
|
|
|
GLXEW_FUN_EXPORT PFNGLXSWAPINTERVALMESAPROC __glewXSwapIntervalMESA;
|
|
GLXEW_FUN_EXPORT PFNGLXSWAPINTERVALMESAPROC __glewXSwapIntervalMESA;
|
|
|
|
|
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXCOPYBUFFERSUBDATANVPROC __glewXCopyBufferSubDataNV;
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC __glewXNamedCopyBufferSubDataNV;
|
|
|
|
|
+
|
|
|
GLXEW_FUN_EXPORT PFNGLXCOPYIMAGESUBDATANVPROC __glewXCopyImageSubDataNV;
|
|
GLXEW_FUN_EXPORT PFNGLXCOPYIMAGESUBDATANVPROC __glewXCopyImageSubDataNV;
|
|
|
|
|
|
|
|
|
|
+GLXEW_FUN_EXPORT PFNGLXDELAYBEFORESWAPNVPROC __glewXDelayBeforeSwapNV;
|
|
|
|
|
+
|
|
|
GLXEW_FUN_EXPORT PFNGLXBINDVIDEODEVICENVPROC __glewXBindVideoDeviceNV;
|
|
GLXEW_FUN_EXPORT PFNGLXBINDVIDEODEVICENVPROC __glewXBindVideoDeviceNV;
|
|
|
GLXEW_FUN_EXPORT PFNGLXENUMERATEVIDEODEVICESNVPROC __glewXEnumerateVideoDevicesNV;
|
|
GLXEW_FUN_EXPORT PFNGLXENUMERATEVIDEODEVICESNVPROC __glewXEnumerateVideoDevicesNV;
|
|
|
|
|
|
|
@@ -1543,6 +1671,7 @@ GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_3;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_4;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_4;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_3DFX_multisample;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_3DFX_multisample;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_AMD_gpu_association;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_AMD_gpu_association;
|
|
|
|
|
+GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_context_flush_control;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_profile;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_profile;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_robustness;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_robustness;
|
|
@@ -1555,12 +1684,14 @@ GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_robustness_share_group_isolation;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_vertex_buffer_object;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_vertex_buffer_object;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ATI_pixel_format_float;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ATI_pixel_format_float;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ATI_render_texture;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_ATI_render_texture;
|
|
|
|
|
+GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_buffer_age;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_create_context_es2_profile;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_create_context_es2_profile;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_create_context_es_profile;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_create_context_es_profile;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_fbconfig_packed_float;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_fbconfig_packed_float;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_framebuffer_sRGB;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_framebuffer_sRGB;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_import_context;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_import_context;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_scene_marker;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_scene_marker;
|
|
|
|
|
+GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_stereo_tree;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_swap_control;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_swap_control;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_swap_control_tear;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_swap_control_tear;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_texture_from_pixmap;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_texture_from_pixmap;
|
|
@@ -1570,10 +1701,13 @@ GLXEW_VAR_EXPORT GLboolean __GLXEW_INTEL_swap_event;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_agp_offset;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_agp_offset;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_copy_sub_buffer;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_copy_sub_buffer;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_pixmap_colormap;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_pixmap_colormap;
|
|
|
|
|
+GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_query_renderer;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_release_buffers;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_release_buffers;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_set_3dfx_mode;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_set_3dfx_mode;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_swap_control;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_swap_control;
|
|
|
|
|
+GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_copy_buffer;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_copy_image;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_copy_image;
|
|
|
|
|
+GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_delay_before_swap;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_float_buffer;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_float_buffer;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_multisample_coverage;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_multisample_coverage;
|
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_present_video;
|
|
GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_present_video;
|
|
@@ -1621,11 +1755,12 @@ GLEWAPI GLboolean GLEWAPIENTRY glxewContextIsSupported (const GLXEWContext *ctx,
|
|
|
|
|
|
|
|
#else /* GLEW_MX */
|
|
#else /* GLEW_MX */
|
|
|
|
|
|
|
|
|
|
+GLEWAPI GLenum GLEWAPIENTRY glxewInit ();
|
|
|
|
|
+GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name);
|
|
|
|
|
+
|
|
|
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
|
|
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
|
|
|
#define GLXEW_GET_FUN(x) x
|
|
#define GLXEW_GET_FUN(x) x
|
|
|
|
|
|
|
|
-GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name);
|
|
|
|
|
-
|
|
|
|
|
#endif /* GLEW_MX */
|
|
#endif /* GLEW_MX */
|
|
|
|
|
|
|
|
GLEWAPI GLboolean GLEWAPIENTRY glxewGetExtension (const char *name);
|
|
GLEWAPI GLboolean GLEWAPIENTRY glxewGetExtension (const char *name);
|