get_pixel_format


int get_pixel_format(handle device)

This function obtains the index of the currently selected pixel format.

Parameters

handle device

The handle of the device context whose pixel format is being queried.

Return

int

Zero An error occurred.
Other The 1-based index of the currently selected pixel format.

Notes

The index returned by this function may be subsequently used in a call to the function describe_pixel_format.