Status PEXMatchRenderingTargets( Display *display, Drawable drawable, int depth, int type, Visual *visual, unsigned long max_targets, unsigned long *count_return, PEXRenderingTarget **targets_return )
Zero if unsuccessful; non-zero otherwise.
Invoke PEXMatchRenderingTargets to get information about which drawable types the implementation supports.
Specify with the drawable argument only the screen about which you want information. This function does not apply any of the other drawable attributes.
Specify with the depth argument the depth about which you want information. If you want information on all supported depths, then specify a value of zero.
Specify with the type argument the type of drawable about which you want information. The type field of the PEXRenderingTarget data structure has these same values with the exception of PEXAnyDrawable.
Specify with the visual argument the visual about which you want information. If you want information on all of the supported visuals, then specify a null pointer.
Indicate with the max_targets argument the number of targets that this function should return. If this number is less than the number of matching targets, then it is implementation-dependent which of the matching targets this function returns. If you want this function to return all matching targets, then specify a value of zero.
PEXlib allocates memory for the returned target values. Invoke the XFree function to deallocate the memory.
For an overview, see PEXlib Access and Information Functions.