Get the pixel format associated with the window.
Defined in <SDL3/SDL_video.h>
SDL_PixelFormat SDL_GetWindowPixelFormat(SDL_Window *window);
SDL_Window * | window | the window to query. |
(SDL_PixelFormat) Returns the pixel format of the window on success or SDL_PIXELFORMAT_UNKNOWN on failure; call SDL_GetError() for more information.
This function is available since SDL 3.1.3.