Lines Matching refs:drawable

72  * Change a drawable's attribute.
82 ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable,
93 if ((dpy == NULL) || (drawable == 0)) {
111 req->drawable = drawable;
124 output[0] = (CARD32) drawable;
135 pdraw = GetGLXDRIDrawable(dpy, drawable);
192 XID drawable, XID glxdrawable,
203 pdraw = psc->driScreen->createDrawable(psc, drawable,
206 fprintf(stderr, "failed to create drawable\n");
222 DestroyDRIDrawable(Display *dpy, GLXDrawable drawable, int destroy_xdrawable)
225 __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable);
231 __glxHashDelete(priv->drawHash, drawable);
241 XID drawable, XID glxdrawable,
248 DestroyDRIDrawable(Display *dpy, GLXDrawable drawable, int destroy_xdrawable)
255 * Get a drawable's attribute.
270 GetDrawableAttribute(Display * dpy, GLXDrawable drawable,
282 if ((dpy == NULL) || (drawable == 0)) {
304 req->drawable = drawable;
311 data[0] = (CARD32) drawable;
349 __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable);
371 protocolDestroyDrawable(Display *dpy, GLXDrawable drawable, CARD32 glxCode)
385 req->pbuffer = (GLXPbuffer) drawable;
392 * Create a non-pbuffer GLX drawable.
396 Drawable drawable, const int *attrib_list, CARD8 glxCode)
427 req->window = drawable;
437 if (InitGLXDrawable(dpy, glxDraw, drawable, xid)) {
442 if (!CreateDRIDrawable(dpy, config, drawable, xid, attrib_list, i)) {
456 * Destroy a non-pbuffer GLX drawable.
459 DestroyDrawable(Display * dpy, GLXDrawable drawable, CARD32 glxCode)
461 if ((dpy == NULL) || (drawable == 0)) {
465 protocolDestroyDrawable(dpy, drawable, glxCode);
467 DestroyGLXDrawable(dpy, drawable);
468 DestroyDRIDrawable(dpy, drawable, GL_FALSE);
581 DestroyPbuffer(Display * dpy, GLXDrawable drawable)
586 if ((dpy == NULL) || (drawable == 0)) {
602 req->pbuffer = (GLXPbuffer) drawable;
611 data[0] = (CARD32) drawable;
621 DestroyDRIDrawable(dpy, drawable, GL_TRUE);
733 * Query an attribute of a drawable.
736 glXQueryDrawable(Display * dpy, GLXDrawable drawable,
745 if (apple_glx_pixmap_query(drawable, attribute, value))
748 if (apple_glx_pbuffer_query(drawable, attribute, value))
753 * the drawable is invalid, however doing so would require that we
755 * If we use a round-trip call to validate the drawable, there could
759 * case of an invalid drawable. In practice most and possibly all
763 (dpy, drawable, &root, &x, &y, &width, &height, &bd, &depth)) {
775 GetDrawableAttribute(dpy, drawable, attribute, value);
785 glXQueryGLXPbufferSGIX(Display * dpy, GLXPbufferSGIX drawable,
788 return GetDrawableAttribute(dpy, drawable, attribute, value);
793 * Select the event mask for a drawable.
796 glXSelectEvent(Display * dpy, GLXDrawable drawable, unsigned long mask)
801 if (apple_glx_pbuffer_set_event_mask(drawable, mask))
808 if (XGetWindowAttributes(dpy, drawable, &xwattr))
810 /* The drawable seems to be invalid. Report an error. */
812 __glXSendError(dpy, GLXBadDrawable, drawable,
820 ChangeDrawableAttribute(dpy, drawable, attribs, 1);
826 * Get the selected event mask for a drawable.
829 glXGetSelectedEvent(Display * dpy, GLXDrawable drawable, unsigned long *mask)
834 if (apple_glx_pbuffer_get_event_mask(drawable, mask))
841 if (XGetWindowAttributes(dpy, drawable, &xwattr)) {
846 /* The drawable seems to be invalid. Report an error. */
848 __glXSendError(dpy, GLXBadDrawable, drawable, X_GLXGetDrawableAttributes,
859 GetDrawableAttribute(dpy, drawable, GLX_EVENT_MASK_SGIX, &value);
950 (Display * dpy, GLXDrawable drawable,
951 unsigned long mask), (dpy, drawable, mask), glXSelectEvent)
955 (Display * dpy, GLXDrawable drawable,
956 unsigned long *mask), (dpy, drawable, mask),