Get the pixel format associated with the window.
Defined in SDL_video.h, but apps should use #include <SDL3/SDL.h>
Uint32 SDL_GetWindowPixelFormat(SDL_Window *window);
window | the window to query |
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.0.0.
CategoryAPI, CategoryAPIFunction, CategoryVideo