| SDL_GetMasksForPixelFormat(3) | SDL3 FUNCTIONS | SDL_GetMasksForPixelFormat(3) |
SDL_GetMasksForPixelFormat - Convert one of the enumerated pixel formats to a bpp value and RGBA masks.
Defined in SDL3/SDL_pixels.h
#include "SDL3/SDL.h"
bool SDL_GetMasksForPixelFormat(SDL_PixelFormat format, int *bpp, Uint32 *Rmask, Uint32 *Gmask, Uint32 *Bmask, Uint32 *Amask);
Returns true on success or false on failure; call
SDL_GetError () for more information.
It is safe to call this function from any thread.
This function is available since SDL 3.2.0.
| SDL 3.2.10 | Simple Directmedia Layer |