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
);
140 for (i
= 0; i
< num_attribs
; i
++) {
141 switch(attribs
[i
* 2]) {
143 /* Keep a local copy for masking out DRI2 proto events as needed */
144 pdraw
->eventMask
= attribs
[i
* 2 + 1];
154 #ifdef GLX_DIRECT_RENDERING
156 determineTextureTarget(const int *attribs
, int numAttribs
)
161 for (i
= 0; i
< numAttribs
; i
++) {
162 if (attribs
[2 * i
] == GLX_TEXTURE_TARGET_EXT
) {
163 switch (attribs
[2 * i
+ 1]) {
164 case GLX_TEXTURE_2D_EXT
:
165 target
= GL_TEXTURE_2D
;
167 case GLX_TEXTURE_RECTANGLE_EXT
:
168 target
= GL_TEXTURE_RECTANGLE_ARB
;
178 determineTextureFormat(const int *attribs
, int numAttribs
)
182 for (i
= 0; i
< numAttribs
; i
++) {
183 if (attribs
[2 * i
] == GLX_TEXTURE_FORMAT_EXT
)
184 return attribs
[2 * i
+ 1];
191 CreateDRIDrawable(Display
*dpy
, struct glx_config
*config
,
192 XID drawable
, XID glxdrawable
,
193 const int *attrib_list
, size_t num_attribs
)
195 struct glx_display
*const priv
= __glXInitialize(dpy
);
196 __GLXDRIdrawable
*pdraw
;
197 struct glx_screen
*psc
;
199 psc
= priv
->screens
[config
->screen
];
200 if (psc
->driScreen
== NULL
)
203 pdraw
= psc
->driScreen
->createDrawable(psc
, drawable
,
204 glxdrawable
, config
);
206 fprintf(stderr
, "failed to create drawable\n");
210 if (__glxHashInsert(priv
->drawHash
, glxdrawable
, pdraw
)) {
211 (*pdraw
->destroyDrawable
) (pdraw
);
212 return; /* FIXME: Check what we're supposed to do here... */
215 pdraw
->textureTarget
= determineTextureTarget(attrib_list
, num_attribs
);
216 pdraw
->textureFormat
= determineTextureFormat(attrib_list
, num_attribs
);
220 DestroyDRIDrawable(Display
*dpy
, GLXDrawable drawable
, int destroy_xdrawable
)
222 struct glx_display
*const priv
= __glXInitialize(dpy
);
223 __GLXDRIdrawable
*pdraw
= GetGLXDRIDrawable(dpy
, drawable
);
227 xid
= pdraw
->xDrawable
;
228 (*pdraw
->destroyDrawable
) (pdraw
);
229 __glxHashDelete(priv
->drawHash
, drawable
);
230 if (destroy_xdrawable
)
231 XFreePixmap(priv
->dpy
, xid
);
238 CreateDRIDrawable(Display
*dpy
, const struct glx_config
* fbconfig
,
239 XID drawable
, XID glxdrawable
,
240 const int *attrib_list
, size_t num_attribs
)
245 DestroyDRIDrawable(Display
*dpy
, GLXDrawable drawable
, int destroy_xdrawable
)
252 * Get a drawable's attribute.
254 * This function is used to implement \c glXGetSelectedEvent and
255 * \c glXGetSelectedEventSGIX.
258 * This function dynamically determines whether to use the SGIX_pbuffer
259 * version of the protocol or the GLX 1.3 version of the protocol.
262 * The number of attributes returned is likely to be small, probably less than
263 * 10. Given that, this routine should try to use an array on the stack to
264 * capture the reply rather than always calling Xmalloc.
267 * This function needs to be modified to work with direct-rendering drivers.
270 GetDrawableAttribute(Display
* dpy
, GLXDrawable drawable
,
271 int attribute
, unsigned int *value
)
273 struct glx_display
*priv
;
274 xGLXGetDrawableAttributesReply reply
;
279 unsigned int num_attributes
;
280 GLboolean use_glx_1_3
;
282 if ((dpy
== NULL
) || (drawable
== 0)) {
286 priv
= __glXInitialize(dpy
);
287 use_glx_1_3
= ((priv
->majorVersion
> 1) || (priv
->minorVersion
>= 3));
292 opcode
= __glXSetupForCommand(dpy
);
299 xGLXGetDrawableAttributesReq
*req
;
301 GetReq(GLXGetDrawableAttributes
, req
);
302 req
->reqType
= opcode
;
303 req
->glxCode
= X_GLXGetDrawableAttributes
;
304 req
->drawable
= drawable
;
307 xGLXVendorPrivateWithReplyReq
*vpreq
;
309 GetReqExtra(GLXVendorPrivateWithReply
, 4, vpreq
);
310 data
= (CARD32
*) (vpreq
+ 1);
311 data
[0] = (CARD32
) drawable
;
313 vpreq
->reqType
= opcode
;
314 vpreq
->glxCode
= X_GLXVendorPrivateWithReply
;
315 vpreq
->vendorCode
= X_GLXvop_GetDrawableAttributesSGIX
;
318 _XReply(dpy
, (xReply
*) & reply
, 0, False
);
320 if (reply
.type
== X_Error
) {
326 length
= reply
.length
;
328 num_attributes
= (use_glx_1_3
) ? reply
.numAttribs
: length
/ 2;
329 data
= (CARD32
*) Xmalloc(length
* sizeof(CARD32
));
331 /* Throw data on the floor */
332 _XEatData(dpy
, length
);
335 _XRead(dpy
, (char *) data
, length
* sizeof(CARD32
));
337 /* Search the set of returned attributes for the attribute requested by
340 for (i
= 0; i
< num_attributes
; i
++) {
341 if (data
[i
* 2] == attribute
) {
342 *value
= data
[(i
* 2) + 1];
347 #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
349 __GLXDRIdrawable
*pdraw
= GetGLXDRIDrawable(dpy
, drawable
);
351 if (pdraw
!= NULL
&& !pdraw
->textureTarget
)
352 pdraw
->textureTarget
=
353 determineTextureTarget((const int *) data
, num_attributes
);
354 if (pdraw
!= NULL
&& !pdraw
->textureFormat
)
355 pdraw
->textureFormat
=
356 determineTextureFormat((const int *) data
, num_attributes
);
371 * Create a non-pbuffer GLX drawable.
374 * This function needs to be modified to work with direct-rendering drivers.
377 CreateDrawable(Display
*dpy
, struct glx_config
*config
,
378 Drawable drawable
, const int *attrib_list
, CARD8 glxCode
)
380 xGLXCreateWindowReq
*req
;
387 while (attrib_list
[i
* 2] != None
)
391 opcode
= __glXSetupForCommand(dpy
);
396 GetReqExtra(GLXCreateWindow
, 8 * i
, req
);
397 data
= (CARD32
*) (req
+ 1);
399 req
->reqType
= opcode
;
400 req
->glxCode
= glxCode
;
401 req
->screen
= config
->screen
;
402 req
->fbconfig
= config
->fbconfigID
;
403 req
->window
= drawable
;
404 req
->glxwindow
= XAllocID(dpy
);
408 memcpy(data
, attrib_list
, 8 * i
);
413 CreateDRIDrawable(dpy
, config
, drawable
, req
->glxwindow
, attrib_list
, i
);
415 return req
->glxwindow
;
420 * Destroy a non-pbuffer GLX drawable.
423 DestroyDrawable(Display
* dpy
, GLXDrawable drawable
, CARD32 glxCode
)
425 xGLXDestroyPbufferReq
*req
;
428 if ((dpy
== NULL
) || (drawable
== 0)) {
433 opcode
= __glXSetupForCommand(dpy
);
439 GetReq(GLXDestroyPbuffer
, req
);
440 req
->reqType
= opcode
;
441 req
->glxCode
= glxCode
;
442 req
->pbuffer
= (GLXPbuffer
) drawable
;
447 DestroyDRIDrawable(dpy
, drawable
, GL_FALSE
);
456 * This function is used to implement \c glXCreatePbuffer and
457 * \c glXCreateGLXPbufferSGIX.
460 * This function dynamically determines whether to use the SGIX_pbuffer
461 * version of the protocol or the GLX 1.3 version of the protocol.
464 * This function needs to be modified to work with direct-rendering drivers.
467 CreatePbuffer(Display
* dpy
, struct glx_config
*config
,
468 unsigned int width
, unsigned int height
,
469 const int *attrib_list
, GLboolean size_in_attribs
)
471 struct glx_display
*priv
= __glXInitialize(dpy
);
480 while (attrib_list
[i
* 2])
484 opcode
= __glXSetupForCommand(dpy
);
491 if ((priv
->majorVersion
> 1) || (priv
->minorVersion
>= 3)) {
492 xGLXCreatePbufferReq
*req
;
493 unsigned int extra
= (size_in_attribs
) ? 0 : 2;
495 GetReqExtra(GLXCreatePbuffer
, (8 * (i
+ extra
)), req
);
496 data
= (CARD32
*) (req
+ 1);
498 req
->reqType
= opcode
;
499 req
->glxCode
= X_GLXCreatePbuffer
;
500 req
->screen
= config
->screen
;
501 req
->fbconfig
= config
->fbconfigID
;
503 req
->numAttribs
= i
+ extra
;
505 if (!size_in_attribs
) {
506 data
[(2 * i
) + 0] = GLX_PBUFFER_WIDTH
;
507 data
[(2 * i
) + 1] = width
;
508 data
[(2 * i
) + 2] = GLX_PBUFFER_HEIGHT
;
509 data
[(2 * i
) + 3] = height
;
514 xGLXVendorPrivateReq
*vpreq
;
516 GetReqExtra(GLXVendorPrivate
, 20 + (8 * i
), vpreq
);
517 data
= (CARD32
*) (vpreq
+ 1);
519 vpreq
->reqType
= opcode
;
520 vpreq
->glxCode
= X_GLXVendorPrivate
;
521 vpreq
->vendorCode
= X_GLXvop_CreateGLXPbufferSGIX
;
523 data
[0] = config
->screen
;
524 data
[1] = config
->fbconfigID
;
531 (void) memcpy(data
, attrib_list
, sizeof(CARD32
) * 2 * i
);
536 pixmap
= XCreatePixmap(dpy
, RootWindow(dpy
, config
->screen
),
537 width
, height
, config
->rgbBits
);
539 CreateDRIDrawable(dpy
, config
, pixmap
, id
, attrib_list
, i
);
547 * This function is used to implement \c glXDestroyPbuffer and
548 * \c glXDestroyGLXPbufferSGIX.
551 * This function dynamically determines whether to use the SGIX_pbuffer
552 * version of the protocol or the GLX 1.3 version of the protocol.
555 DestroyPbuffer(Display
* dpy
, GLXDrawable drawable
)
557 struct glx_display
*priv
= __glXInitialize(dpy
);
560 if ((dpy
== NULL
) || (drawable
== 0)) {
564 opcode
= __glXSetupForCommand(dpy
);
570 if ((priv
->majorVersion
> 1) || (priv
->minorVersion
>= 3)) {
571 xGLXDestroyPbufferReq
*req
;
573 GetReq(GLXDestroyPbuffer
, req
);
574 req
->reqType
= opcode
;
575 req
->glxCode
= X_GLXDestroyPbuffer
;
576 req
->pbuffer
= (GLXPbuffer
) drawable
;
579 xGLXVendorPrivateWithReplyReq
*vpreq
;
582 GetReqExtra(GLXVendorPrivateWithReply
, 4, vpreq
);
583 data
= (CARD32
*) (vpreq
+ 1);
585 data
[0] = (CARD32
) drawable
;
587 vpreq
->reqType
= opcode
;
588 vpreq
->glxCode
= X_GLXVendorPrivateWithReply
;
589 vpreq
->vendorCode
= X_GLXvop_DestroyGLXPbufferSGIX
;
595 DestroyDRIDrawable(dpy
, drawable
, GL_TRUE
);
601 * Create a new pbuffer.
603 _X_EXPORT GLXPbufferSGIX
604 glXCreateGLXPbufferSGIX(Display
* dpy
, GLXFBConfigSGIX config
,
605 unsigned int width
, unsigned int height
,
608 return (GLXPbufferSGIX
) CreatePbuffer(dpy
, (struct glx_config
*) config
,
610 attrib_list
, GL_FALSE
);
613 #endif /* GLX_USE_APPLEGL */
616 * Create a new pbuffer.
619 glXCreatePbuffer(Display
* dpy
, GLXFBConfig config
, const int *attrib_list
)
621 int i
, width
, height
;
622 #ifdef GLX_USE_APPLEGL
630 WARN_ONCE_GLX_1_3(dpy
, __func__
);
632 #ifdef GLX_USE_APPLEGL
633 for (i
= 0; attrib_list
[i
]; ++i
) {
634 switch (attrib_list
[i
]) {
635 case GLX_PBUFFER_WIDTH
:
636 width
= attrib_list
[i
+ 1];
640 case GLX_PBUFFER_HEIGHT
:
641 height
= attrib_list
[i
+ 1];
645 case GLX_LARGEST_PBUFFER
:
646 /* This is a hint we should probably handle, but how? */
650 case GLX_PRESERVED_CONTENTS
:
651 /* The contents are always preserved with AppleSGLX with CGL. */
660 if (apple_glx_pbuffer_create(dpy
, config
, width
, height
, &errorcode
,
663 * apple_glx_pbuffer_create only sets the errorcode to core X11
666 __glXSendError(dpy
, errorcode
, 0, X_GLXCreatePbuffer
, true);
673 for (i
= 0; attrib_list
[i
* 2]; i
++) {
674 switch (attrib_list
[i
* 2]) {
675 case GLX_PBUFFER_WIDTH
:
676 width
= attrib_list
[i
* 2 + 1];
678 case GLX_PBUFFER_HEIGHT
:
679 height
= attrib_list
[i
* 2 + 1];
684 return (GLXPbuffer
) CreatePbuffer(dpy
, (struct glx_config
*) config
,
685 width
, height
, attrib_list
, GL_TRUE
);
691 * Destroy an existing pbuffer.
694 glXDestroyPbuffer(Display
* dpy
, GLXPbuffer pbuf
)
696 #ifdef GLX_USE_APPLEGL
697 if (apple_glx_pbuffer_destroy(dpy
, pbuf
)) {
698 __glXSendError(dpy
, GLXBadPbuffer
, pbuf
, X_GLXDestroyPbuffer
, false);
701 DestroyPbuffer(dpy
, pbuf
);
707 * Query an attribute of a drawable.
710 glXQueryDrawable(Display
* dpy
, GLXDrawable drawable
,
711 int attribute
, unsigned int *value
)
713 WARN_ONCE_GLX_1_3(dpy
, __func__
);
714 #ifdef GLX_USE_APPLEGL
717 unsigned int width
, height
, bd
, depth
;
719 if (apple_glx_pixmap_query(drawable
, attribute
, value
))
722 if (apple_glx_pbuffer_query(drawable
, attribute
, value
))
726 * The OpenGL spec states that we should report GLXBadDrawable if
727 * the drawable is invalid, however doing so would require that we
728 * use XSetErrorHandler(), which is known to not be thread safe.
729 * If we use a round-trip call to validate the drawable, there could
730 * be a race, so instead we just opt in favor of letting the
731 * XGetGeometry request fail with a GetGeometry request X error
732 * rather than GLXBadDrawable, in what is hoped to be a rare
733 * case of an invalid drawable. In practice most and possibly all
734 * X11 apps using GLX shouldn't notice a difference.
737 (dpy
, drawable
, &root
, &x
, &y
, &width
, &height
, &bd
, &depth
)) {
749 GetDrawableAttribute(dpy
, drawable
, attribute
, value
);
754 #ifndef GLX_USE_APPLEGL
756 * Query an attribute of a pbuffer.
759 glXQueryGLXPbufferSGIX(Display
* dpy
, GLXPbufferSGIX drawable
,
760 int attribute
, unsigned int *value
)
762 return GetDrawableAttribute(dpy
, drawable
, attribute
, value
);
767 * Select the event mask for a drawable.
770 glXSelectEvent(Display
* dpy
, GLXDrawable drawable
, unsigned long mask
)
772 #ifdef GLX_USE_APPLEGL
773 XWindowAttributes xwattr
;
775 if (apple_glx_pbuffer_set_event_mask(drawable
, mask
))
779 * The spec allows a window, but currently there are no valid
780 * events for a window, so do nothing.
782 if (XGetWindowAttributes(dpy
, drawable
, &xwattr
))
784 /* The drawable seems to be invalid. Report an error. */
786 __glXSendError(dpy
, GLXBadDrawable
, drawable
,
787 X_GLXChangeDrawableAttributes
, false);
791 attribs
[0] = (CARD32
) GLX_EVENT_MASK
;
792 attribs
[1] = (CARD32
) mask
;
794 ChangeDrawableAttribute(dpy
, drawable
, attribs
, 1);
800 * Get the selected event mask for a drawable.
803 glXGetSelectedEvent(Display
* dpy
, GLXDrawable drawable
, unsigned long *mask
)
805 #ifdef GLX_USE_APPLEGL
806 XWindowAttributes xwattr
;
808 if (apple_glx_pbuffer_get_event_mask(drawable
, mask
))
812 * The spec allows a window, but currently there are no valid
813 * events for a window, so do nothing, but set the mask to 0.
815 if (XGetWindowAttributes(dpy
, drawable
, &xwattr
)) {
816 /* The window is valid, so set the mask to 0. */
820 /* The drawable seems to be invalid. Report an error. */
822 __glXSendError(dpy
, GLXBadDrawable
, drawable
, X_GLXGetDrawableAttributes
,
828 /* The non-sense with value is required because on LP64 platforms
829 * sizeof(unsigned int) != sizeof(unsigned long). On little-endian
830 * we could just type-cast the pointer, but why?
833 GetDrawableAttribute(dpy
, drawable
, GLX_EVENT_MASK_SGIX
, &value
);
840 glXCreatePixmap(Display
* dpy
, GLXFBConfig config
, Pixmap pixmap
,
841 const int *attrib_list
)
843 WARN_ONCE_GLX_1_3(dpy
, __func__
);
845 #ifdef GLX_USE_APPLEGL
846 const struct glx_config
*modes
= (const __GLcontextModes
*) config
;
848 if (apple_glx_pixmap_create(dpy
, modes
->screen
, pixmap
, modes
))
853 return CreateDrawable(dpy
, (struct glx_config
*) config
,
854 (Drawable
) pixmap
, attrib_list
, X_GLXCreatePixmap
);
860 glXCreateWindow(Display
* dpy
, GLXFBConfig config
, Window win
,
861 const int *attrib_list
)
863 WARN_ONCE_GLX_1_3(dpy
, __func__
);
864 #ifdef GLX_USE_APPLEGL
865 XWindowAttributes xwattr
;
866 XVisualInfo
*visinfo
;
868 (void) attrib_list
; /*unused according to GLX 1.4 */
870 XGetWindowAttributes(dpy
, win
, &xwattr
);
872 visinfo
= glXGetVisualFromFBConfig(dpy
, config
);
874 if (NULL
== visinfo
) {
875 __glXSendError(dpy
, GLXBadFBConfig
, 0, X_GLXCreateWindow
, false);
879 if (visinfo
->visualid
!= XVisualIDFromVisual(xwattr
.visual
)) {
880 __glXSendError(dpy
, BadMatch
, 0, X_GLXCreateWindow
, true);
888 return CreateDrawable(dpy
, (struct glx_config
*) config
,
889 (Drawable
) win
, attrib_list
, X_GLXCreateWindow
);
895 glXDestroyPixmap(Display
* dpy
, GLXPixmap pixmap
)
897 WARN_ONCE_GLX_1_3(dpy
, __func__
);
898 #ifdef GLX_USE_APPLEGL
899 if (apple_glx_pixmap_destroy(dpy
, pixmap
))
900 __glXSendError(dpy
, GLXBadPixmap
, pixmap
, X_GLXDestroyPixmap
, false);
902 DestroyDrawable(dpy
, (GLXDrawable
) pixmap
, X_GLXDestroyPixmap
);
908 glXDestroyWindow(Display
* dpy
, GLXWindow win
)
910 WARN_ONCE_GLX_1_3(dpy
, __func__
);
911 #ifndef GLX_USE_APPLEGL
912 DestroyDrawable(dpy
, (GLXDrawable
) win
, X_GLXDestroyWindow
);
916 #ifndef GLX_USE_APPLEGL
918 GLX_ALIAS_VOID(glXDestroyGLXPbufferSGIX
,
919 (Display
* dpy
, GLXPbufferSGIX pbuf
),
920 (dpy
, pbuf
), glXDestroyPbuffer
)
923 GLX_ALIAS_VOID(glXSelectEventSGIX
,
924 (Display
* dpy
, GLXDrawable drawable
,
925 unsigned long mask
), (dpy
, drawable
, mask
), glXSelectEvent
)
928 GLX_ALIAS_VOID(glXGetSelectedEventSGIX
,
929 (Display
* dpy
, GLXDrawable drawable
,
930 unsigned long *mask
), (dpy
, drawable
, mask
),