Lines Matching defs:drawable
53 * Change a drawable's attribute.
63 ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable,
74 if ((priv == NULL) || (dpy == NULL) || (drawable == 0)) {
92 req->drawable = drawable;
105 output[0] = (CARD32) drawable;
116 pdraw = GetGLXDRIDrawable(dpy, drawable);
174 XID drawable, XID glxdrawable, int type,
183 fprintf(stderr, "failed to create drawable\n");
191 pdraw = psc->driScreen->createDrawable(psc, drawable, glxdrawable,
194 fprintf(stderr, "failed to create drawable\n");
213 DestroyDRIDrawable(Display *dpy, GLXDrawable drawable)
217 __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable);
221 __glxHashDelete(priv->drawHash, drawable);
227 * Get a drawable's attribute.
242 __glXGetDrawableAttribute(Display * dpy, GLXDrawable drawable,
263 * "If drawable is not a valid GLX drawable, a GLXBadDrawable error is
266 if (drawable == 0) {
282 pdraw = GetGLXDRIDrawable(dpy, drawable);
295 (gc->currentDrawable != drawable &&
296 gc->currentReadable != drawable)) {
297 __glXSendError(dpy, GLXBadDrawable, drawable,
333 req->drawable = drawable;
340 data[0] = (CARD32) drawable;
397 /* If we failed to lookup the GLX_FBCONFIG_ID, it may be because the drawable is
407 cookie = xcb_get_window_attributes(conn, drawable);
443 protocolDestroyDrawable(Display *dpy, GLXDrawable drawable, CARD32 glxCode)
457 req->pbuffer = (GLXPbuffer) drawable;
477 * Create a non-pbuffer GLX drawable.
481 Drawable drawable, int type, const int *attrib_list)
514 req->window = drawable;
529 if (InitGLXDrawable(dpy, glxDraw, drawable, xid)) {
534 if (!CreateDRIDrawable(dpy, config, drawable, xid, type, attrib_list, i)) {
549 * Destroy a non-pbuffer GLX drawable.
552 DestroyDrawable(Display * dpy, GLXDrawable drawable, CARD32 glxCode)
554 protocolDestroyDrawable(dpy, drawable, glxCode);
556 DestroyGLXDrawable(dpy, drawable);
557 DestroyDRIDrawable(dpy, drawable);
669 DestroyPbuffer(Display * dpy, GLXDrawable drawable)
674 if ((priv == NULL) || (dpy == NULL) || (drawable == 0)) {
690 req->pbuffer = (GLXPbuffer) drawable;
699 data[0] = (CARD32) drawable;
709 DestroyDRIDrawable(dpy, drawable);
819 * Query an attribute of a drawable.
822 glXQueryDrawable(Display * dpy, GLXDrawable drawable,
830 if (apple_glx_pixmap_query(drawable, attribute, value))
833 if (apple_glx_pbuffer_query(drawable, attribute, value))
838 * the drawable is invalid, however doing so would require that we
840 * If we use a round-trip call to validate the drawable, there could
844 * case of an invalid drawable. In practice most and possibly all
848 (dpy, drawable, &root, &x, &y, &width, &height, &bd, &depth)) {
860 __glXGetDrawableAttribute(dpy, drawable, attribute, value);
870 glXQueryGLXPbufferSGIX(Display * dpy, GLXPbufferSGIX drawable,
873 __glXGetDrawableAttribute(dpy, drawable, attribute, value);
878 * Select the event mask for a drawable.
881 glXSelectEvent(Display * dpy, GLXDrawable drawable, unsigned long mask)
886 if (apple_glx_pbuffer_set_event_mask(drawable, mask))
893 if (XGetWindowAttributes(dpy, drawable, &xwattr))
895 /* The drawable seems to be invalid. Report an error. */
897 __glXSendError(dpy, GLXBadDrawable, drawable,
905 ChangeDrawableAttribute(dpy, drawable, attribs, 1);
911 * Get the selected event mask for a drawable.
914 glXGetSelectedEvent(Display * dpy, GLXDrawable drawable, unsigned long *mask)
919 if (apple_glx_pbuffer_get_event_mask(drawable, mask))
926 if (XGetWindowAttributes(dpy, drawable, &xwattr)) {
931 /* The drawable seems to be invalid. Report an error. */
933 __glXSendError(dpy, GLXBadDrawable, drawable, X_GLXGetDrawableAttributes,
944 __glXGetDrawableAttribute(dpy, drawable, GLX_EVENT_MASK_SGIX, &value);
1029 (Display * dpy, GLXDrawable drawable,
1030 unsigned long mask), (dpy, drawable, mask), glXSelectEvent)
1034 (Display * dpy, GLXDrawable drawable,
1035 unsigned long *mask), (dpy, drawable, mask),