#include <dri_interface.h>
__DRIscreenRec::createDrawable call. createDrawable is not called by libGL at this time. It's currently used via the dri_util.c utility code instead.
Definition at line 393 of file dri_interface.h.
Data Fields | |
| void(* | destroyDrawable )(__DRInativeDisplay *dpy, void *drawablePrivate) |
| Method to destroy the private DRI drawable data. | |
| int(* | frameTracking )(__DRInativeDisplay *dpy, void *drawablePrivate, GLboolean enable) |
| Enable or disable frame usage tracking. | |
| int(* | getSBC )(__DRInativeDisplay *dpy, void *drawablePrivate, int64_t *sbc) |
| Get the number of completed swap buffers for this drawable. | |
| void * | private |
| Opaque pointer to private per drawable direct rendering data. | |
| void * | private |
| Opaque pointer to private per drawable direct rendering data. | |
| int(* | queryFrameTracking )(__DRInativeDisplay *dpy, void *drawablePrivate, int64_t *sbc, int64_t *missedFrames, float *lastMissedUsage, float *usage) |
| Retrieve frame usage information. | |
| unsigned | swap_interval |
| Used by drivers that implement the GLX_SGI_swap_control or GLX_MESA_swap_control extension. | |
| void(* | swapBuffers )(__DRInativeDisplay *dpy, void *drawablePrivate) |
| Method to swap the front and back buffers. | |
| int64_t(* | swapBuffersMSC )(__DRInativeDisplay *dpy, void *drawablePrivate, int64_t target_msc, int64_t divisor, int64_t remainder) |
Like swapBuffers, but does NOT have an implicit glFlush. | |
| int(* | waitForMSC )(__DRInativeDisplay *dpy, void *drawablePriv, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *msc, int64_t *sbc) |
| Wait for the MSC to equal target_msc, or, if that has already passed, the next time (MSC % divisor) is equal to remainder. | |
| int(* | waitForSBC )(__DRInativeDisplay *dpy, void *drawablePriv, int64_t target_sbc, int64_t *msc, int64_t *sbc) |
| Wait for the SBC to be greater than or equal target_sbc. | |
| void(* __DRIdrawableRec::destroyDrawable)(__DRInativeDisplay *dpy, void *drawablePrivate) | ( | __DRInativeDisplay * | dpy, | |
| void * | drawablePrivate | |||
| ) |
| int(* __DRIdrawableRec::frameTracking)(__DRInativeDisplay *dpy, void *drawablePrivate, GLboolean enable) | ( | __DRInativeDisplay * | dpy, | |
| void * | drawablePrivate, | |||
| GLboolean | enable | |||
| ) |
| int(* __DRIdrawableRec::getSBC)(__DRInativeDisplay *dpy, void *drawablePrivate, int64_t *sbc) | ( | __DRInativeDisplay * | dpy, | |
| void * | drawablePrivate, | |||
| int64_t * | sbc | |||
| ) |
NULL if direct rendering is not supported on the display or screen used to create this drawable. Never dereferenced in libGL.
Definition at line 409 of file internal/dri_interface.h.
NULL if direct rendering is not supported on the display or screen used to create this drawable. Never dereferenced in libGL.
Definition at line 409 of file dri_interface.h.
| int(* __DRIdrawableRec::queryFrameTracking)(__DRInativeDisplay *dpy, void *drawablePrivate, int64_t *sbc, int64_t *missedFrames, float *lastMissedUsage, float *usage) | ( | __DRInativeDisplay * | dpy, | |
| void * | drawablePrivate, | |||
| int64_t * | sbc, | |||
| int64_t * | missedFrames, | |||
| float * | lastMissedUsage, | |||
| float * | usage | |||
| ) |
| unsigned __DRIdrawableRec::swap_interval |
| void(* __DRIdrawableRec::swapBuffers)(__DRInativeDisplay *dpy, void *drawablePrivate) | ( | __DRInativeDisplay * | dpy, | |
| void * | drawablePrivate | |||
| ) |
| int64_t(* __DRIdrawableRec::swapBuffersMSC)(__DRInativeDisplay *dpy, void *drawablePrivate, int64_t target_msc, int64_t divisor, int64_t remainder) | ( | __DRInativeDisplay * | dpy, | |
| void * | drawablePrivate, | |||
| int64_t | target_msc, | |||
| int64_t | divisor, | |||
| int64_t | remainder | |||
| ) |
Once rendering is complete, waits until MSC is equal to target_msc, or if that has already passed, waits until (MSC % divisor) is equal to remainder. If divisor is zero, the swap will happen as soon as MSC is greater than or equal to target_msc.
| int(* __DRIdrawableRec::waitForMSC)(__DRInativeDisplay *dpy, void *drawablePriv, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *msc, int64_t *sbc) | ( | __DRInativeDisplay * | dpy, | |
| void * | drawablePriv, | |||
| int64_t | target_msc, | |||
| int64_t | divisor, | |||
| int64_t | remainder, | |||
| int64_t * | msc, | |||
| int64_t * | sbc | |||
| ) |
If divisor is zero, the function will return as soon as MSC is greater than or equal to target_msc.
| int(* __DRIdrawableRec::waitForSBC)(__DRInativeDisplay *dpy, void *drawablePriv, int64_t target_sbc, int64_t *msc, int64_t *sbc) | ( | __DRInativeDisplay * | dpy, | |
| void * | drawablePriv, | |||
| int64_t | target_sbc, | |||
| int64_t * | msc, | |||
| int64_t * | sbc | |||
| ) |
1.5.3