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 + (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
, 4 + (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
;
131 (void) memcpy(output
, attribs
, sizeof(CARD32
) * 2 * num_attribs
);
136 #ifdef GLX_DIRECT_RENDERING
137 pdraw
= GetGLXDRIDrawable(dpy
, drawable
);
139 for (i
= 0; i
< num_attribs
; i
++) {
140 switch(attribs
[i
* 2]) {
142 /* Keep a local copy for masking out DRI2 proto events as needed */
143 pdraw
->eventMask
= attribs
[i
* 2 + 1];
153 #ifdef GLX_DIRECT_RENDERING
155 determineTextureTarget(const int *attribs
, int numAttribs
)
160 for (i
= 0; i
< numAttribs
; i
++) {
161 if (attribs
[2 * i
] == GLX_TEXTURE_TARGET_EXT
) {
162 switch (attribs
[2 * i
+ 1]) {
163 case GLX_TEXTURE_2D_EXT
:
164 target
= GL_TEXTURE_2D
;
166 case GLX_TEXTURE_RECTANGLE_EXT
:
167 target
= GL_TEXTURE_RECTANGLE_ARB
;
177 determineTextureFormat(const int *attribs
, int numAttribs
)
181 for (i
= 0; i
< numAttribs
; i
++) {
182 if (attribs
[2 * i
] == GLX_TEXTURE_FORMAT_EXT
)
183 return attribs
[2 * i
+ 1];
190 CreateDRIDrawable(Display
*dpy
, struct glx_config
*config
,
191 XID drawable
, XID glxdrawable
,
192 const int *attrib_list
, size_t num_attribs
)
194 struct glx_display
*const priv
= __glXInitialize(dpy
);
195 __GLXDRIdrawable
*pdraw
;
196 struct glx_screen
*psc
;
198 psc
= priv
->screens
[config
->screen
];
199 if (psc
->driScreen
== NULL
)
202 pdraw
= psc
->driScreen
->createDrawable(psc
, drawable
,
203 glxdrawable
, config
);
205 fprintf(stderr
, "failed to create drawable\n");
209 if (__glxHashInsert(priv
->drawHash
, glxdrawable
, pdraw
)) {
210 (*pdraw
->destroyDrawable
) (pdraw
);
211 return; /* FIXME: Check what we're supposed to do here... */
214 pdraw
->textureTarget
= determineTextureTarget(attrib_list
, num_attribs
);
215 pdraw
->textureFormat
= determineTextureFormat(attrib_list
, num_attribs
);
219 DestroyDRIDrawable(Display
*dpy
, GLXDrawable drawable
, int destroy_xdrawable
)
221 struct glx_display
*const priv
= __glXInitialize(dpy
);
222 __GLXDRIdrawable
*pdraw
= GetGLXDRIDrawable(dpy
, drawable
);
226 xid
= pdraw
->xDrawable
;
227 (*pdraw
->destroyDrawable
) (pdraw
);
228 __glxHashDelete(priv
->drawHash
, drawable
);
229 if (destroy_xdrawable
)
230 XFreePixmap(priv
->dpy
, xid
);
237 CreateDRIDrawable(Display
*dpy
, const struct glx_config
* fbconfig
,
238 XID drawable
, XID glxdrawable
,
239 const int *attrib_list
, size_t num_attribs
)
244 DestroyDRIDrawable(Display
*dpy
, GLXDrawable drawable
, int destroy_xdrawable
)
251 * Get a drawable's attribute.
253 * This function is used to implement \c glXGetSelectedEvent and
254 * \c glXGetSelectedEventSGIX.
257 * This function dynamically determines whether to use the SGIX_pbuffer
258 * version of the protocol or the GLX 1.3 version of the protocol.
261 * The number of attributes returned is likely to be small, probably less than
262 * 10. Given that, this routine should try to use an array on the stack to
263 * capture the reply rather than always calling Xmalloc.
266 * This function needs to be modified to work with direct-rendering drivers.
269 GetDrawableAttribute(Display
* dpy
, GLXDrawable drawable
,
270 int attribute
, unsigned int *value
)
272 struct glx_display
*priv
;
273 xGLXGetDrawableAttributesReply reply
;
278 unsigned int num_attributes
;
279 GLboolean use_glx_1_3
;
281 if ((dpy
== NULL
) || (drawable
== 0)) {
285 priv
= __glXInitialize(dpy
);
286 use_glx_1_3
= ((priv
->majorVersion
> 1) || (priv
->minorVersion
>= 3));
291 opcode
= __glXSetupForCommand(dpy
);
298 xGLXGetDrawableAttributesReq
*req
;
300 GetReqExtra(GLXGetDrawableAttributes
, 4, req
);
301 req
->reqType
= opcode
;
302 req
->glxCode
= X_GLXGetDrawableAttributes
;
303 req
->drawable
= drawable
;
306 xGLXVendorPrivateWithReplyReq
*vpreq
;
308 GetReqExtra(GLXVendorPrivateWithReply
, 4, vpreq
);
309 data
= (CARD32
*) (vpreq
+ 1);
310 data
[0] = (CARD32
) drawable
;
312 vpreq
->reqType
= opcode
;
313 vpreq
->glxCode
= X_GLXVendorPrivateWithReply
;
314 vpreq
->vendorCode
= X_GLXvop_GetDrawableAttributesSGIX
;
317 _XReply(dpy
, (xReply
*) & reply
, 0, False
);
319 if (reply
.type
== X_Error
) {
325 length
= reply
.length
;
327 num_attributes
= (use_glx_1_3
) ? reply
.numAttribs
: length
/ 2;
328 data
= (CARD32
*) Xmalloc(length
* sizeof(CARD32
));
330 /* Throw data on the floor */
331 _XEatData(dpy
, length
);
334 _XRead(dpy
, (char *) data
, length
* sizeof(CARD32
));
336 /* Search the set of returned attributes for the attribute requested by
339 for (i
= 0; i
< num_attributes
; i
++) {
340 if (data
[i
* 2] == attribute
) {
341 *value
= data
[(i
* 2) + 1];
346 #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
348 __GLXDRIdrawable
*pdraw
= GetGLXDRIDrawable(dpy
, drawable
);
350 if (pdraw
!= NULL
&& !pdraw
->textureTarget
)
351 pdraw
->textureTarget
=
352 determineTextureTarget((const int *) data
, num_attributes
);
353 if (pdraw
!= NULL
&& !pdraw
->textureFormat
)
354 pdraw
->textureFormat
=
355 determineTextureFormat((const int *) data
, num_attributes
);
370 * Create a non-pbuffer GLX drawable.
373 * This function needs to be modified to work with direct-rendering drivers.
376 CreateDrawable(Display
*dpy
, struct glx_config
*config
,
377 Drawable drawable
, const int *attrib_list
, CARD8 glxCode
)
379 xGLXCreateWindowReq
*req
;
386 while (attrib_list
[i
* 2] != None
)
390 opcode
= __glXSetupForCommand(dpy
);
395 GetReqExtra(GLXCreateWindow
, 8 * i
, req
);
396 data
= (CARD32
*) (req
+ 1);
398 req
->reqType
= opcode
;
399 req
->glxCode
= glxCode
;
400 req
->screen
= config
->screen
;
401 req
->fbconfig
= config
->fbconfigID
;
402 req
->window
= drawable
;
403 req
->glxwindow
= XAllocID(dpy
);
407 memcpy(data
, attrib_list
, 8 * i
);
412 CreateDRIDrawable(dpy
, config
, drawable
, req
->glxwindow
, attrib_list
, i
);
414 return req
->glxwindow
;
419 * Destroy a non-pbuffer GLX drawable.
422 DestroyDrawable(Display
* dpy
, GLXDrawable drawable
, CARD32 glxCode
)
424 xGLXDestroyPbufferReq
*req
;
427 if ((dpy
== NULL
) || (drawable
== 0)) {
432 opcode
= __glXSetupForCommand(dpy
);
438 GetReqExtra(GLXDestroyPbuffer
, 4, req
);
439 req
->reqType
= opcode
;
440 req
->glxCode
= glxCode
;
441 req
->pbuffer
= (GLXPbuffer
) drawable
;
446 DestroyDRIDrawable(dpy
, drawable
, GL_FALSE
);
455 * This function is used to implement \c glXCreatePbuffer and
456 * \c glXCreateGLXPbufferSGIX.
459 * This function dynamically determines whether to use the SGIX_pbuffer
460 * version of the protocol or the GLX 1.3 version of the protocol.
463 * This function needs to be modified to work with direct-rendering drivers.
466 CreatePbuffer(Display
* dpy
, struct glx_config
*config
,
467 unsigned int width
, unsigned int height
,
468 const int *attrib_list
, GLboolean size_in_attribs
)
470 struct glx_display
*priv
= __glXInitialize(dpy
);
479 while (attrib_list
[i
* 2])
483 opcode
= __glXSetupForCommand(dpy
);
490 if ((priv
->majorVersion
> 1) || (priv
->minorVersion
>= 3)) {
491 xGLXCreatePbufferReq
*req
;
492 unsigned int extra
= (size_in_attribs
) ? 0 : 2;
494 GetReqExtra(GLXCreatePbuffer
, (8 * (i
+ extra
)), req
);
495 data
= (CARD32
*) (req
+ 1);
497 req
->reqType
= opcode
;
498 req
->glxCode
= X_GLXCreatePbuffer
;
499 req
->screen
= config
->screen
;
500 req
->fbconfig
= config
->fbconfigID
;
502 req
->numAttribs
= i
+ extra
;
504 if (!size_in_attribs
) {
505 data
[(2 * i
) + 0] = GLX_PBUFFER_WIDTH
;
506 data
[(2 * i
) + 1] = width
;
507 data
[(2 * i
) + 2] = GLX_PBUFFER_HEIGHT
;
508 data
[(2 * i
) + 3] = height
;
513 xGLXVendorPrivateReq
*vpreq
;
515 GetReqExtra(GLXVendorPrivate
, 20 + (8 * i
), vpreq
);
516 data
= (CARD32
*) (vpreq
+ 1);
518 vpreq
->reqType
= opcode
;
519 vpreq
->glxCode
= X_GLXVendorPrivate
;
520 vpreq
->vendorCode
= X_GLXvop_CreateGLXPbufferSGIX
;
522 data
[0] = config
->screen
;
523 data
[1] = config
->fbconfigID
;
530 (void) memcpy(data
, attrib_list
, sizeof(CARD32
) * 2 * i
);
535 pixmap
= XCreatePixmap(dpy
, RootWindow(dpy
, config
->screen
),
536 width
, height
, config
->rgbBits
);
538 CreateDRIDrawable(dpy
, config
, pixmap
, id
, attrib_list
, i
);
546 * This function is used to implement \c glXDestroyPbuffer and
547 * \c glXDestroyGLXPbufferSGIX.
550 * This function dynamically determines whether to use the SGIX_pbuffer
551 * version of the protocol or the GLX 1.3 version of the protocol.
554 DestroyPbuffer(Display
* dpy
, GLXDrawable drawable
)
556 struct glx_display
*priv
= __glXInitialize(dpy
);
559 if ((dpy
== NULL
) || (drawable
== 0)) {
563 opcode
= __glXSetupForCommand(dpy
);
569 if ((priv
->majorVersion
> 1) || (priv
->minorVersion
>= 3)) {
570 xGLXDestroyPbufferReq
*req
;
572 GetReq(GLXDestroyPbuffer
, req
);
573 req
->reqType
= opcode
;
574 req
->glxCode
= X_GLXDestroyPbuffer
;
575 req
->pbuffer
= (GLXPbuffer
) drawable
;
578 xGLXVendorPrivateWithReplyReq
*vpreq
;
581 GetReqExtra(GLXVendorPrivateWithReply
, 4, vpreq
);
582 data
= (CARD32
*) (vpreq
+ 1);
584 data
[0] = (CARD32
) drawable
;
586 vpreq
->reqType
= opcode
;
587 vpreq
->glxCode
= X_GLXVendorPrivateWithReply
;
588 vpreq
->vendorCode
= X_GLXvop_DestroyGLXPbufferSGIX
;
594 DestroyDRIDrawable(dpy
, drawable
, GL_TRUE
);
600 * Create a new pbuffer.
602 _X_EXPORT GLXPbufferSGIX
603 glXCreateGLXPbufferSGIX(Display
* dpy
, GLXFBConfigSGIX config
,
604 unsigned int width
, unsigned int height
,
607 return (GLXPbufferSGIX
) CreatePbuffer(dpy
, (struct glx_config
*) config
,
609 attrib_list
, GL_FALSE
);
612 #endif /* GLX_USE_APPLEGL */
615 * Create a new pbuffer.
618 glXCreatePbuffer(Display
* dpy
, GLXFBConfig config
, const int *attrib_list
)
620 int i
, width
, height
;
621 #ifdef GLX_USE_APPLEGL
629 WARN_ONCE_GLX_1_3(dpy
, __func__
);
631 #ifdef GLX_USE_APPLEGL
632 for (i
= 0; attrib_list
[i
]; ++i
) {
633 switch (attrib_list
[i
]) {
634 case GLX_PBUFFER_WIDTH
:
635 width
= attrib_list
[i
+ 1];
639 case GLX_PBUFFER_HEIGHT
:
640 height
= attrib_list
[i
+ 1];
644 case GLX_LARGEST_PBUFFER
:
645 /* This is a hint we should probably handle, but how? */
649 case GLX_PRESERVED_CONTENTS
:
650 /* The contents are always preserved with AppleSGLX with CGL. */
659 if (apple_glx_pbuffer_create(dpy
, config
, width
, height
, &errorcode
,
662 * apple_glx_pbuffer_create only sets the errorcode to core X11
665 __glXSendError(dpy
, errorcode
, 0, X_GLXCreatePbuffer
, true);
672 for (i
= 0; attrib_list
[i
* 2]; i
++) {
673 switch (attrib_list
[i
* 2]) {
674 case GLX_PBUFFER_WIDTH
:
675 width
= attrib_list
[i
* 2 + 1];
677 case GLX_PBUFFER_HEIGHT
:
678 height
= attrib_list
[i
* 2 + 1];
683 return (GLXPbuffer
) CreatePbuffer(dpy
, (struct glx_config
*) config
,
684 width
, height
, attrib_list
, GL_TRUE
);
690 * Destroy an existing pbuffer.
693 glXDestroyPbuffer(Display
* dpy
, GLXPbuffer pbuf
)
695 #ifdef GLX_USE_APPLEGL
696 if (apple_glx_pbuffer_destroy(dpy
, pbuf
)) {
697 __glXSendError(dpy
, GLXBadPbuffer
, pbuf
, X_GLXDestroyPbuffer
, false);
700 DestroyPbuffer(dpy
, pbuf
);
706 * Query an attribute of a drawable.
709 glXQueryDrawable(Display
* dpy
, GLXDrawable drawable
,
710 int attribute
, unsigned int *value
)
712 WARN_ONCE_GLX_1_3(dpy
, __func__
);
713 #ifdef GLX_USE_APPLEGL
716 unsigned int width
, height
, bd
, depth
;
718 if (apple_glx_pixmap_query(drawable
, attribute
, value
))
721 if (apple_glx_pbuffer_query(drawable
, attribute
, value
))
725 * The OpenGL spec states that we should report GLXBadDrawable if
726 * the drawable is invalid, however doing so would require that we
727 * use XSetErrorHandler(), which is known to not be thread safe.
728 * If we use a round-trip call to validate the drawable, there could
729 * be a race, so instead we just opt in favor of letting the
730 * XGetGeometry request fail with a GetGeometry request X error
731 * rather than GLXBadDrawable, in what is hoped to be a rare
732 * case of an invalid drawable. In practice most and possibly all
733 * X11 apps using GLX shouldn't notice a difference.
736 (dpy
, drawable
, &root
, &x
, &y
, &width
, &height
, &bd
, &depth
)) {
748 GetDrawableAttribute(dpy
, drawable
, attribute
, value
);
753 #ifndef GLX_USE_APPLEGL
755 * Query an attribute of a pbuffer.
758 glXQueryGLXPbufferSGIX(Display
* dpy
, GLXPbufferSGIX drawable
,
759 int attribute
, unsigned int *value
)
761 return GetDrawableAttribute(dpy
, drawable
, attribute
, value
);
766 * Select the event mask for a drawable.
769 glXSelectEvent(Display
* dpy
, GLXDrawable drawable
, unsigned long mask
)
771 #ifdef GLX_USE_APPLEGL
772 XWindowAttributes xwattr
;
774 if (apple_glx_pbuffer_set_event_mask(drawable
, mask
))
778 * The spec allows a window, but currently there are no valid
779 * events for a window, so do nothing.
781 if (XGetWindowAttributes(dpy
, drawable
, &xwattr
))
783 /* The drawable seems to be invalid. Report an error. */
785 __glXSendError(dpy
, GLXBadDrawable
, drawable
,
786 X_GLXChangeDrawableAttributes
, false);
790 attribs
[0] = (CARD32
) GLX_EVENT_MASK
;
791 attribs
[1] = (CARD32
) mask
;
793 ChangeDrawableAttribute(dpy
, drawable
, attribs
, 1);
799 * Get the selected event mask for a drawable.
802 glXGetSelectedEvent(Display
* dpy
, GLXDrawable drawable
, unsigned long *mask
)
804 #ifdef GLX_USE_APPLEGL
805 XWindowAttributes xwattr
;
807 if (apple_glx_pbuffer_get_event_mask(drawable
, mask
))
811 * The spec allows a window, but currently there are no valid
812 * events for a window, so do nothing, but set the mask to 0.
814 if (XGetWindowAttributes(dpy
, drawable
, &xwattr
)) {
815 /* The window is valid, so set the mask to 0. */
819 /* The drawable seems to be invalid. Report an error. */
821 __glXSendError(dpy
, GLXBadDrawable
, drawable
, X_GLXGetDrawableAttributes
,
827 /* The non-sense with value is required because on LP64 platforms
828 * sizeof(unsigned int) != sizeof(unsigned long). On little-endian
829 * we could just type-cast the pointer, but why?
832 GetDrawableAttribute(dpy
, drawable
, GLX_EVENT_MASK_SGIX
, &value
);
839 glXCreatePixmap(Display
* dpy
, GLXFBConfig config
, Pixmap pixmap
,
840 const int *attrib_list
)
842 WARN_ONCE_GLX_1_3(dpy
, __func__
);
844 #ifdef GLX_USE_APPLEGL
845 const struct glx_config
*modes
= (const __GLcontextModes
*) config
;
847 if (apple_glx_pixmap_create(dpy
, modes
->screen
, pixmap
, modes
))
852 return CreateDrawable(dpy
, (struct glx_config
*) config
,
853 (Drawable
) pixmap
, attrib_list
, X_GLXCreatePixmap
);
859 glXCreateWindow(Display
* dpy
, GLXFBConfig config
, Window win
,
860 const int *attrib_list
)
862 WARN_ONCE_GLX_1_3(dpy
, __func__
);
863 #ifdef GLX_USE_APPLEGL
864 XWindowAttributes xwattr
;
865 XVisualInfo
*visinfo
;
867 (void) attrib_list
; /*unused according to GLX 1.4 */
869 XGetWindowAttributes(dpy
, win
, &xwattr
);
871 visinfo
= glXGetVisualFromFBConfig(dpy
, config
);
873 if (NULL
== visinfo
) {
874 __glXSendError(dpy
, GLXBadFBConfig
, 0, X_GLXCreateWindow
, false);
878 if (visinfo
->visualid
!= XVisualIDFromVisual(xwattr
.visual
)) {
879 __glXSendError(dpy
, BadMatch
, 0, X_GLXCreateWindow
, true);
887 return CreateDrawable(dpy
, (struct glx_config
*) config
,
888 (Drawable
) win
, attrib_list
, X_GLXCreateWindow
);
894 glXDestroyPixmap(Display
* dpy
, GLXPixmap pixmap
)
896 WARN_ONCE_GLX_1_3(dpy
, __func__
);
897 #ifdef GLX_USE_APPLEGL
898 if (apple_glx_pixmap_destroy(dpy
, pixmap
))
899 __glXSendError(dpy
, GLXBadPixmap
, pixmap
, X_GLXDestroyPixmap
, false);
901 DestroyDrawable(dpy
, (GLXDrawable
) pixmap
, X_GLXDestroyPixmap
);
907 glXDestroyWindow(Display
* dpy
, GLXWindow win
)
909 WARN_ONCE_GLX_1_3(dpy
, __func__
);
910 #ifndef GLX_USE_APPLEGL
911 DestroyDrawable(dpy
, (GLXDrawable
) win
, X_GLXDestroyWindow
);
915 #ifndef GLX_USE_APPLEGL
917 GLX_ALIAS_VOID(glXDestroyGLXPbufferSGIX
,
918 (Display
* dpy
, GLXPbufferSGIX pbuf
),
919 (dpy
, pbuf
), glXDestroyPbuffer
)
922 GLX_ALIAS_VOID(glXSelectEventSGIX
,
923 (Display
* dpy
, GLXDrawable drawable
,
924 unsigned long mask
), (dpy
, drawable
, mask
), glXSelectEvent
)
927 GLX_ALIAS_VOID(glXGetSelectedEventSGIX
,
928 (Display
* dpy
, GLXDrawable drawable
,
929 unsigned long *mask
), (dpy
, drawable
, mask
),