Status PEXGetAncillaryBufferInfo( Display *display, Drawable drawable, unsigned long num_visuals, unsigned long num_depths, VisualID *visual_ids, unsigned long *depths, PEXAncillaryBufferInfo ***visual_info, PEXAncillaryBufferInfo ***depth_info )
Zero if successful; otherwise, one of the following return values:
Invoke PEXGetAncillaryBufferInfo to retrieve information about Z-buffers, alpha buffers, and accumulation buffers associated with visuals or pixmap depths.
This function returns the address of an array of pointers to the PEXAncillaryBufferInfo data structure. You invoke the function and use the returned data as follows:
PEXAncillaryBufferInfo **info; unsigned long depths[]={8,24}; PEXGetAncillaryBufferInfo(display, win, 0, 2, NULL, depths, NULL, &info);
accum_depth8 = info[0]->accum_depth; accum_depth24 = info[1]->accum_depth; PEXFreeAncillaryBufferInfo(display, 0, 2, NULL, info);
PEXlib allocates memory for the returned array of pointers and PEXAncillaryBufferInfo structures. Invoke the PEXFreeAncillaryBufferInfo function to deallocate this memory. (See Freeing Memory Allocated by PEXlib functions.
For an overview, see PEXlib Access and Information Functions.