2 * (C) Copyright IBM Corporation 2004
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * on the rights to use, copy, modify, merge, publish, distribute, sub
9 * license, and/or sell copies of the Software, and to permit persons to whom
10 * the Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice (including the next
13 * paragraph) shall be included in all copies or substantial portions of the
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
19 * IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
27 * Implementation of pbuffer related functions.
29 * \author Ian Romanick <idr@us.ibm.com>
33 #include "glxclient.h"
34 #include <X11/extensions/extutil.h>
35 #include <X11/extensions/Xext.h>
38 #include "glxextensions.h"
40 #ifdef GLX_USE_APPLEGL
42 #include "apple_glx_drawable.h"
43 #include "glx_error.h"
46 #define WARN_ONCE_GLX_1_3(a, b) { \
47 static int warned=1; \
49 warn_GLX_1_3((a), b ); \
55 * Emit a warning when clients use GLX 1.3 functions on pre-1.3 systems.
58 warn_GLX_1_3(Display
* dpy
, const char *function_name
)
60 struct glx_display
*priv
= __glXInitialize(dpy
);
62 if (priv
->minorVersion
< 3) {
64 "WARNING: Application calling GLX 1.3 function \"%s\" "
65 "when GLX 1.3 is not supported! This is an application bug!\n",
70 #ifndef GLX_USE_APPLEGL
72 * Change a drawable's attribute.
74 * This function is used to implement \c glXSelectEvent and
75 * \c glXSelectEventSGIX.
78 * This function dynamically determines whether to use the SGIX_pbuffer
79 * version of the protocol or the GLX 1.3 version of the protocol.
82 * This function needs to be modified to work with direct-rendering drivers.
85 ChangeDrawableAttribute(Display
* dpy
, GLXDrawable drawable
,
86 const CARD32
* attribs
, size_t num_attribs
)
88 struct glx_display
*priv
= __glXInitialize(dpy
);
89 #ifdef GLX_DIRECT_RENDERING
90 __GLXDRIdrawable
*pdraw
;
96 if ((dpy
== NULL
) || (drawable
== 0)) {
100 opcode
= __glXSetupForCommand(dpy
);
106 if ((priv
->majorVersion
> 1) || (priv
->minorVersion
>= 3)) {
107 xGLXChangeDrawableAttributesReq
*req
;
109 GetReqExtra(GLXChangeDrawableAttributes
, 8 * num_attribs
, req
);
110 output
= (CARD32
*) (req
+ 1);
112 req
->reqType
= opcode
;
113 req
->glxCode
= X_GLXChangeDrawableAttributes
;
114 req
->drawable
= drawable
;
115 req
->numAttribs
= (CARD32
) num_attribs
;
118 xGLXVendorPrivateWithReplyReq
*vpreq
;
120 GetReqExtra(GLXVendorPrivateWithReply
, 8 + (8 * num_attribs
), vpreq
);
121 output
= (CARD32
*) (vpreq
+ 1);
123 vpreq
->reqType
= opcode
;
124 vpreq
->glxCode
= X_GLXVendorPrivateWithReply
;
125 vpreq
->vendorCode
= X_GLXvop_ChangeDrawableAttributesSGIX
;
127 output
[0] = (CARD32
) drawable
;
128 output
[1] = num_attribs
;
132 (void) memcpy(output
, attribs
, sizeof(CARD32
) * 2 * num_attribs
);
137 #ifdef GLX_DIRECT_RENDERING
138 pdraw
= GetGLXDRIDrawable(dpy
, drawable
);
143 for (i
= 0; i
< num_attribs
; i
++) {
144 switch(attribs
[i
* 2]) {
146 /* Keep a local copy for masking out DRI2 proto events as needed */
147 pdraw
->eventMask
= attribs
[i
* 2 + 1];
157 #ifdef GLX_DIRECT_RENDERING
159 determineTextureTarget(const int *attribs
, int numAttribs
)
164 for (i
= 0; i
< numAttribs
; i
++) {
165 if (attribs
[2 * i
] == GLX_TEXTURE_TARGET_EXT
) {
166 switch (attribs
[2 * i
+ 1]) {
167 case GLX_TEXTURE_2D_EXT
:
168 target
= GL_TEXTURE_2D
;
170 case GLX_TEXTURE_RECTANGLE_EXT
:
171 target
= GL_TEXTURE_RECTANGLE_ARB
;
181 determineTextureFormat(const int *attribs
, int numAttribs
)
185 for (i
= 0; i
< numAttribs
; i
++) {
186 if (attribs
[2 * i
] == GLX_TEXTURE_FORMAT_EXT
)
187 return attribs
[2 * i
+ 1];
194 CreateDRIDrawable(Display
*dpy
, struct glx_config
*config
,
195 XID drawable
, XID glxdrawable
,
196 const int *attrib_list
, size_t num_attribs
)
198 struct glx_display
*const priv
= __glXInitialize(dpy
);
199 __GLXDRIdrawable
*pdraw
;
200 struct glx_screen
*psc
;
202 psc
= priv
->screens
[config
->screen
];
203 if (psc
->driScreen
== NULL
)
206 pdraw
= psc
->driScreen
->createDrawable(psc
, drawable
,
207 glxdrawable
, config
);
209 fprintf(stderr
, "failed to create drawable\n");
213 if (__glxHashInsert(priv
->drawHash
, glxdrawable
, pdraw
)) {
214 (*pdraw
->destroyDrawable
) (pdraw
);
215 return; /* FIXME: Check what we're supposed to do here... */
218 pdraw
->textureTarget
= determineTextureTarget(attrib_list
, num_attribs
);
219 pdraw
->textureFormat
= determineTextureFormat(attrib_list
, num_attribs
);
223 DestroyDRIDrawable(Display
*dpy
, GLXDrawable drawable
, int destroy_xdrawable
)
225 struct glx_display
*const priv
= __glXInitialize(dpy
);
226 __GLXDRIdrawable
*pdraw
= GetGLXDRIDrawable(dpy
, drawable
);
230 xid
= pdraw
->xDrawable
;
231 (*pdraw
->destroyDrawable
) (pdraw
);
232 __glxHashDelete(priv
->drawHash
, drawable
);
233 if (destroy_xdrawable
)
234 XFreePixmap(priv
->dpy
, xid
);
241 CreateDRIDrawable(Display
*dpy
, const struct glx_config
* fbconfig
,
242 XID drawable
, XID glxdrawable
,
243 const int *attrib_list
, size_t num_attribs
)
248 DestroyDRIDrawable(Display
*dpy
, GLXDrawable drawable
, int destroy_xdrawable
)
255 * Get a drawable's attribute.
257 * This function is used to implement \c glXGetSelectedEvent and
258 * \c glXGetSelectedEventSGIX.
261 * This function dynamically determines whether to use the SGIX_pbuffer
262 * version of the protocol or the GLX 1.3 version of the protocol.
265 * The number of attributes returned is likely to be small, probably less than
266 * 10. Given that, this routine should try to use an array on the stack to
267 * capture the reply rather than always calling Xmalloc.
270 * This function needs to be modified to work with direct-rendering drivers.
273 GetDrawableAttribute(Display
* dpy
, GLXDrawable drawable
,
274 int attribute
, unsigned int *value
)
276 struct glx_display
*priv
;
277 xGLXGetDrawableAttributesReply reply
;
282 unsigned int num_attributes
;
283 GLboolean use_glx_1_3
;
285 if ((dpy
== NULL
) || (drawable
== 0)) {
289 priv
= __glXInitialize(dpy
);
290 use_glx_1_3
= ((priv
->majorVersion
> 1) || (priv
->minorVersion
>= 3));
295 opcode
= __glXSetupForCommand(dpy
);
302 xGLXGetDrawableAttributesReq
*req
;
304 GetReq(GLXGetDrawableAttributes
, req
);
305 req
->reqType
= opcode
;
306 req
->glxCode
= X_GLXGetDrawableAttributes
;
307 req
->drawable
= drawable
;
310 xGLXVendorPrivateWithReplyReq
*vpreq
;
312 GetReqExtra(GLXVendorPrivateWithReply
, 4, vpreq
);
313 data
= (CARD32
*) (vpreq
+ 1);
314 data
[0] = (CARD32
) drawable
;
316 vpreq
->reqType
= opcode
;
317 vpreq
->glxCode
= X_GLXVendorPrivateWithReply
;
318 vpreq
->vendorCode
= X_GLXvop_GetDrawableAttributesSGIX
;
321 _XReply(dpy
, (xReply
*) & reply
, 0, False
);
323 if (reply
.type
== X_Error
) {
329 length
= reply
.length
;
331 num_attributes
= (use_glx_1_3
) ? reply
.numAttribs
: length
/ 2;
332 data
= (CARD32
*) Xmalloc(length
* sizeof(CARD32
));
334 /* Throw data on the floor */
335 _XEatData(dpy
, length
);
338 _XRead(dpy
, (char *) data
, length
* sizeof(CARD32
));
340 /* Search the set of returned attributes for the attribute requested by
343 for (i
= 0; i
< num_attributes
; i
++) {
344 if (data
[i
* 2] == attribute
) {
345 *value
= data
[(i
* 2) + 1];
350 #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
352 __GLXDRIdrawable
*pdraw
= GetGLXDRIDrawable(dpy
, drawable
);
354 if (pdraw
!= NULL
&& !pdraw
->textureTarget
)
355 pdraw
->textureTarget
=
356 determineTextureTarget((const int *) data
, num_attributes
);
357 if (pdraw
!= NULL
&& !pdraw
->textureFormat
)
358 pdraw
->textureFormat
=
359 determineTextureFormat((const int *) data
, num_attributes
);
374 * Create a non-pbuffer GLX drawable.
377 * This function needs to be modified to work with direct-rendering drivers.
380 CreateDrawable(Display
*dpy
, struct glx_config
*config
,
381 Drawable drawable
, const int *attrib_list
, CARD8 glxCode
)
383 xGLXCreateWindowReq
*req
;
390 while (attrib_list
[i
* 2] != None
)
394 opcode
= __glXSetupForCommand(dpy
);
399 GetReqExtra(GLXCreateWindow
, 8 * i
, req
);
400 data
= (CARD32
*) (req
+ 1);
402 req
->reqType
= opcode
;
403 req
->glxCode
= glxCode
;
404 req
->screen
= config
->screen
;
405 req
->fbconfig
= config
->fbconfigID
;
406 req
->window
= drawable
;
407 req
->glxwindow
= XAllocID(dpy
);
411 memcpy(data
, attrib_list
, 8 * i
);
416 CreateDRIDrawable(dpy
, config
, drawable
, req
->glxwindow
, attrib_list
, i
);
418 return req
->glxwindow
;
423 * Destroy a non-pbuffer GLX drawable.
426 DestroyDrawable(Display
* dpy
, GLXDrawable drawable
, CARD32 glxCode
)
428 xGLXDestroyPbufferReq
*req
;
431 if ((dpy
== NULL
) || (drawable
== 0)) {
436 opcode
= __glXSetupForCommand(dpy
);
442 GetReq(GLXDestroyPbuffer
, req
);
443 req
->reqType
= opcode
;
444 req
->glxCode
= glxCode
;
445 req
->pbuffer
= (GLXPbuffer
) drawable
;
450 DestroyDRIDrawable(dpy
, drawable
, GL_FALSE
);
459 * This function is used to implement \c glXCreatePbuffer and
460 * \c glXCreateGLXPbufferSGIX.
463 * This function dynamically determines whether to use the SGIX_pbuffer
464 * version of the protocol or the GLX 1.3 version of the protocol.
467 * This function needs to be modified to work with direct-rendering drivers.
470 CreatePbuffer(Display
* dpy
, struct glx_config
*config
,
471 unsigned int width
, unsigned int height
,
472 const int *attrib_list
, GLboolean size_in_attribs
)
474 struct glx_display
*priv
= __glXInitialize(dpy
);
483 while (attrib_list
[i
* 2])
487 opcode
= __glXSetupForCommand(dpy
);
494 if ((priv
->majorVersion
> 1) || (priv
->minorVersion
>= 3)) {
495 xGLXCreatePbufferReq
*req
;
496 unsigned int extra
= (size_in_attribs
) ? 0 : 2;
498 GetReqExtra(GLXCreatePbuffer
, (8 * (i
+ extra
)), req
);
499 data
= (CARD32
*) (req
+ 1);
501 req
->reqType
= opcode
;
502 req
->glxCode
= X_GLXCreatePbuffer
;
503 req
->screen
= config
->screen
;
504 req
->fbconfig
= config
->fbconfigID
;
506 req
->numAttribs
= i
+ extra
;
508 if (!size_in_attribs
) {
509 data
[(2 * i
) + 0] = GLX_PBUFFER_WIDTH
;
510 data
[(2 * i
) + 1] = width
;
511 data
[(2 * i
) + 2] = GLX_PBUFFER_HEIGHT
;
512 data
[(2 * i
) + 3] = height
;
517 xGLXVendorPrivateReq
*vpreq
;
519 GetReqExtra(GLXVendorPrivate
, 20 + (8 * i
), vpreq
);
520 data
= (CARD32
*) (vpreq
+ 1);
522 vpreq
->reqType
= opcode
;
523 vpreq
->glxCode
= X_GLXVendorPrivate
;
524 vpreq
->vendorCode
= X_GLXvop_CreateGLXPbufferSGIX
;
526 data
[0] = config
->screen
;
527 data
[1] = config
->fbconfigID
;
534 (void) memcpy(data
, attrib_list
, sizeof(CARD32
) * 2 * i
);
539 pixmap
= XCreatePixmap(dpy
, RootWindow(dpy
, config
->screen
),
540 width
, height
, config
->rgbBits
);
542 CreateDRIDrawable(dpy
, config
, pixmap
, id
, attrib_list
, i
);
550 * This function is used to implement \c glXDestroyPbuffer and
551 * \c glXDestroyGLXPbufferSGIX.
554 * This function dynamically determines whether to use the SGIX_pbuffer
555 * version of the protocol or the GLX 1.3 version of the protocol.
558 DestroyPbuffer(Display
* dpy
, GLXDrawable drawable
)
560 struct glx_display
*priv
= __glXInitialize(dpy
);
563 if ((dpy
== NULL
) || (drawable
== 0)) {
567 opcode
= __glXSetupForCommand(dpy
);
573 if ((priv
->majorVersion
> 1) || (priv
->minorVersion
>= 3)) {
574 xGLXDestroyPbufferReq
*req
;
576 GetReq(GLXDestroyPbuffer
, req
);
577 req
->reqType
= opcode
;
578 req
->glxCode
= X_GLXDestroyPbuffer
;
579 req
->pbuffer
= (GLXPbuffer
) drawable
;
582 xGLXVendorPrivateWithReplyReq
*vpreq
;
585 GetReqExtra(GLXVendorPrivateWithReply
, 4, vpreq
);
586 data
= (CARD32
*) (vpreq
+ 1);
588 data
[0] = (CARD32
) drawable
;
590 vpreq
->reqType
= opcode
;
591 vpreq
->glxCode
= X_GLXVendorPrivateWithReply
;
592 vpreq
->vendorCode
= X_GLXvop_DestroyGLXPbufferSGIX
;
598 DestroyDRIDrawable(dpy
, drawable
, GL_TRUE
);
604 * Create a new pbuffer.
606 _X_EXPORT GLXPbufferSGIX
607 glXCreateGLXPbufferSGIX(Display
* dpy
, GLXFBConfigSGIX config
,
608 unsigned int width
, unsigned int height
,
611 return (GLXPbufferSGIX
) CreatePbuffer(dpy
, (struct glx_config
*) config
,
613 attrib_list
, GL_FALSE
);
616 #endif /* GLX_USE_APPLEGL */
619 * Create a new pbuffer.
622 glXCreatePbuffer(Display
* dpy
, GLXFBConfig config
, const int *attrib_list
)
624 int i
, width
, height
;
625 #ifdef GLX_USE_APPLEGL
633 WARN_ONCE_GLX_1_3(dpy
, __func__
);
635 #ifdef GLX_USE_APPLEGL
636 for (i
= 0; attrib_list
[i
]; ++i
) {
637 switch (attrib_list
[i
]) {
638 case GLX_PBUFFER_WIDTH
:
639 width
= attrib_list
[i
+ 1];
643 case GLX_PBUFFER_HEIGHT
:
644 height
= attrib_list
[i
+ 1];
648 case GLX_LARGEST_PBUFFER
:
649 /* This is a hint we should probably handle, but how? */
653 case GLX_PRESERVED_CONTENTS
:
654 /* The contents are always preserved with AppleSGLX with CGL. */
663 if (apple_glx_pbuffer_create(dpy
, config
, width
, height
, &errorcode
,
666 * apple_glx_pbuffer_create only sets the errorcode to core X11
669 __glXSendError(dpy
, errorcode
, 0, X_GLXCreatePbuffer
, true);
676 for (i
= 0; attrib_list
[i
* 2]; i
++) {
677 switch (attrib_list
[i
* 2]) {
678 case GLX_PBUFFER_WIDTH
:
679 width
= attrib_list
[i
* 2 + 1];
681 case GLX_PBUFFER_HEIGHT
:
682 height
= attrib_list
[i
* 2 + 1];
687 return (GLXPbuffer
) CreatePbuffer(dpy
, (struct glx_config
*) config
,
688 width
, height
, attrib_list
, GL_TRUE
);
694 * Destroy an existing pbuffer.
697 glXDestroyPbuffer(Display
* dpy
, GLXPbuffer pbuf
)
699 #ifdef GLX_USE_APPLEGL
700 if (apple_glx_pbuffer_destroy(dpy
, pbuf
)) {
701 __glXSendError(dpy
, GLXBadPbuffer
, pbuf
, X_GLXDestroyPbuffer
, false);
704 DestroyPbuffer(dpy
, pbuf
);
710 * Query an attribute of a drawable.
713 glXQueryDrawable(Display
* dpy
, GLXDrawable drawable
,
714 int attribute
, unsigned int *value
)
716 WARN_ONCE_GLX_1_3(dpy
, __func__
);
717 #ifdef GLX_USE_APPLEGL
720 unsigned int width
, height
, bd
, depth
;
722 if (apple_glx_pixmap_query(drawable
, attribute
, value
))
725 if (apple_glx_pbuffer_query(drawable
, attribute
, value
))
729 * The OpenGL spec states that we should report GLXBadDrawable if
730 * the drawable is invalid, however doing so would require that we
731 * use XSetErrorHandler(), which is known to not be thread safe.
732 * If we use a round-trip call to validate the drawable, there could
733 * be a race, so instead we just opt in favor of letting the
734 * XGetGeometry request fail with a GetGeometry request X error
735 * rather than GLXBadDrawable, in what is hoped to be a rare
736 * case of an invalid drawable. In practice most and possibly all
737 * X11 apps using GLX shouldn't notice a difference.
740 (dpy
, drawable
, &root
, &x
, &y
, &width
, &height
, &bd
, &depth
)) {
752 GetDrawableAttribute(dpy
, drawable
, attribute
, value
);
757 #ifndef GLX_USE_APPLEGL
759 * Query an attribute of a pbuffer.
762 glXQueryGLXPbufferSGIX(Display
* dpy
, GLXPbufferSGIX drawable
,
763 int attribute
, unsigned int *value
)
765 return GetDrawableAttribute(dpy
, drawable
, attribute
, value
);
770 * Select the event mask for a drawable.
773 glXSelectEvent(Display
* dpy
, GLXDrawable drawable
, unsigned long mask
)
775 #ifdef GLX_USE_APPLEGL
776 XWindowAttributes xwattr
;
778 if (apple_glx_pbuffer_set_event_mask(drawable
, mask
))
782 * The spec allows a window, but currently there are no valid
783 * events for a window, so do nothing.
785 if (XGetWindowAttributes(dpy
, drawable
, &xwattr
))
787 /* The drawable seems to be invalid. Report an error. */
789 __glXSendError(dpy
, GLXBadDrawable
, drawable
,
790 X_GLXChangeDrawableAttributes
, false);
794 attribs
[0] = (CARD32
) GLX_EVENT_MASK
;
795 attribs
[1] = (CARD32
) mask
;
797 ChangeDrawableAttribute(dpy
, drawable
, attribs
, 1);
803 * Get the selected event mask for a drawable.
806 glXGetSelectedEvent(Display
* dpy
, GLXDrawable drawable
, unsigned long *mask
)
808 #ifdef GLX_USE_APPLEGL
809 XWindowAttributes xwattr
;
811 if (apple_glx_pbuffer_get_event_mask(drawable
, mask
))
815 * The spec allows a window, but currently there are no valid
816 * events for a window, so do nothing, but set the mask to 0.
818 if (XGetWindowAttributes(dpy
, drawable
, &xwattr
)) {
819 /* The window is valid, so set the mask to 0. */
823 /* The drawable seems to be invalid. Report an error. */
825 __glXSendError(dpy
, GLXBadDrawable
, drawable
, X_GLXGetDrawableAttributes
,
831 /* The non-sense with value is required because on LP64 platforms
832 * sizeof(unsigned int) != sizeof(unsigned long). On little-endian
833 * we could just type-cast the pointer, but why?
836 GetDrawableAttribute(dpy
, drawable
, GLX_EVENT_MASK_SGIX
, &value
);
843 glXCreatePixmap(Display
* dpy
, GLXFBConfig config
, Pixmap pixmap
,
844 const int *attrib_list
)
846 WARN_ONCE_GLX_1_3(dpy
, __func__
);
848 #ifdef GLX_USE_APPLEGL
849 const struct glx_config
*modes
= (const __GLcontextModes
*) config
;
851 if (apple_glx_pixmap_create(dpy
, modes
->screen
, pixmap
, modes
))
856 return CreateDrawable(dpy
, (struct glx_config
*) config
,
857 (Drawable
) pixmap
, attrib_list
, X_GLXCreatePixmap
);
863 glXCreateWindow(Display
* dpy
, GLXFBConfig config
, Window win
,
864 const int *attrib_list
)
866 WARN_ONCE_GLX_1_3(dpy
, __func__
);
867 #ifdef GLX_USE_APPLEGL
868 XWindowAttributes xwattr
;
869 XVisualInfo
*visinfo
;
871 (void) attrib_list
; /*unused according to GLX 1.4 */
873 XGetWindowAttributes(dpy
, win
, &xwattr
);
875 visinfo
= glXGetVisualFromFBConfig(dpy
, config
);
877 if (NULL
== visinfo
) {
878 __glXSendError(dpy
, GLXBadFBConfig
, 0, X_GLXCreateWindow
, false);
882 if (visinfo
->visualid
!= XVisualIDFromVisual(xwattr
.visual
)) {
883 __glXSendError(dpy
, BadMatch
, 0, X_GLXCreateWindow
, true);
891 return CreateDrawable(dpy
, (struct glx_config
*) config
,
892 (Drawable
) win
, attrib_list
, X_GLXCreateWindow
);
898 glXDestroyPixmap(Display
* dpy
, GLXPixmap pixmap
)
900 WARN_ONCE_GLX_1_3(dpy
, __func__
);
901 #ifdef GLX_USE_APPLEGL
902 if (apple_glx_pixmap_destroy(dpy
, pixmap
))
903 __glXSendError(dpy
, GLXBadPixmap
, pixmap
, X_GLXDestroyPixmap
, false);
905 DestroyDrawable(dpy
, (GLXDrawable
) pixmap
, X_GLXDestroyPixmap
);
911 glXDestroyWindow(Display
* dpy
, GLXWindow win
)
913 WARN_ONCE_GLX_1_3(dpy
, __func__
);
914 #ifndef GLX_USE_APPLEGL
915 DestroyDrawable(dpy
, (GLXDrawable
) win
, X_GLXDestroyWindow
);
919 #ifndef GLX_USE_APPLEGL
921 GLX_ALIAS_VOID(glXDestroyGLXPbufferSGIX
,
922 (Display
* dpy
, GLXPbufferSGIX pbuf
),
923 (dpy
, pbuf
), glXDestroyPbuffer
)
926 GLX_ALIAS_VOID(glXSelectEventSGIX
,
927 (Display
* dpy
, GLXDrawable drawable
,
928 unsigned long mask
), (dpy
, drawable
, mask
), glXSelectEvent
)
931 GLX_ALIAS_VOID(glXGetSelectedEventSGIX
,
932 (Display
* dpy
, GLXDrawable drawable
,
933 unsigned long *mask
), (dpy
, drawable
, mask
),