Lines Matching refs:drawable

73  * Change a drawable's attribute.
83 ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable,
94 if ((priv == NULL) || (dpy == NULL) || (drawable == 0)) {
112 req->drawable = drawable;
125 output[0] = (CARD32) drawable;
136 pdraw = GetGLXDRIDrawable(dpy, drawable);
193 XID drawable, XID glxdrawable,
201 fprintf(stderr, "failed to create drawable\n");
209 pdraw = psc->driScreen->createDrawable(psc, drawable,
212 fprintf(stderr, "failed to create drawable\n");
228 DestroyDRIDrawable(Display *dpy, GLXDrawable drawable, int destroy_xdrawable)
231 __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable);
237 __glxHashDelete(priv->drawHash, drawable);
247 XID drawable, XID glxdrawable,
254 DestroyDRIDrawable(Display *dpy, GLXDrawable drawable, int destroy_xdrawable)
261 * Get a drawable's attribute.
276 GetDrawableAttribute(Display * dpy, GLXDrawable drawable,
297 * "If drawable is not a valid GLX drawable, a GLXBadDrawable error is
300 if (drawable == 0) {
319 pdraw = GetGLXDRIDrawable(dpy, drawable);
332 (gc->currentDrawable != drawable &&
333 gc->currentReadable != drawable)) {
334 __glXSendError(dpy, GLXBadDrawable, drawable,
356 req->drawable = drawable;
363 data[0] = (CARD32) drawable;
421 protocolDestroyDrawable(Display *dpy, GLXDrawable drawable, CARD32 glxCode)
435 req->pbuffer = (GLXPbuffer) drawable;
442 * Create a non-pbuffer GLX drawable.
446 Drawable drawable, const int *attrib_list, CARD8 glxCode)
477 req->window = drawable;
487 if (InitGLXDrawable(dpy, glxDraw, drawable, xid)) {
492 if (!CreateDRIDrawable(dpy, config, drawable, xid, attrib_list, i)) {
506 * Destroy a non-pbuffer GLX drawable.
509 DestroyDrawable(Display * dpy, GLXDrawable drawable, CARD32 glxCode)
511 if ((dpy == NULL) || (drawable == 0)) {
515 protocolDestroyDrawable(dpy, drawable, glxCode);
517 DestroyGLXDrawable(dpy, drawable);
518 DestroyDRIDrawable(dpy, drawable, GL_FALSE);
634 DestroyPbuffer(Display * dpy, GLXDrawable drawable)
639 if ((priv == NULL) || (dpy == NULL) || (drawable == 0)) {
655 req->pbuffer = (GLXPbuffer) drawable;
664 data[0] = (CARD32) drawable;
674 DestroyDRIDrawable(dpy, drawable, GL_TRUE);
786 * Query an attribute of a drawable.
789 glXQueryDrawable(Display * dpy, GLXDrawable drawable,
798 if (apple_glx_pixmap_query(drawable, attribute, value))
801 if (apple_glx_pbuffer_query(drawable, attribute, value))
806 * the drawable is invalid, however doing so would require that we
808 * If we use a round-trip call to validate the drawable, there could
812 * case of an invalid drawable. In practice most and possibly all
816 (dpy, drawable, &root, &x, &y, &width, &height, &bd, &depth)) {
828 GetDrawableAttribute(dpy, drawable, attribute, value);
838 glXQueryGLXPbufferSGIX(Display * dpy, GLXPbufferSGIX drawable,
841 return GetDrawableAttribute(dpy, drawable, attribute, value);
846 * Select the event mask for a drawable.
849 glXSelectEvent(Display * dpy, GLXDrawable drawable, unsigned long mask)
854 if (apple_glx_pbuffer_set_event_mask(drawable, mask))
861 if (XGetWindowAttributes(dpy, drawable, &xwattr))
863 /* The drawable seems to be invalid. Report an error. */
865 __glXSendError(dpy, GLXBadDrawable, drawable,
873 ChangeDrawableAttribute(dpy, drawable, attribs, 1);
879 * Get the selected event mask for a drawable.
882 glXGetSelectedEvent(Display * dpy, GLXDrawable drawable, unsigned long *mask)
887 if (apple_glx_pbuffer_get_event_mask(drawable, mask))
894 if (XGetWindowAttributes(dpy, drawable, &xwattr)) {
899 /* The drawable seems to be invalid. Report an error. */
901 __glXSendError(dpy, GLXBadDrawable, drawable, X_GLXGetDrawableAttributes,
912 GetDrawableAttribute(dpy, drawable, GLX_EVENT_MASK_SGIX, &value);
1002 (Display * dpy, GLXDrawable drawable,
1003 unsigned long mask), (dpy, drawable, mask), glXSelectEvent)
1007 (Display * dpy, GLXDrawable drawable,
1008 unsigned long *mask), (dpy, drawable, mask),