SDL_GetPixelFormatName - Get the human readable name of a pixel format.
Contents
Availability
This function is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.10 SDL_GetPixelFormatName(3)
Function Parameters
format the pixel format to query.
Header File
Defined in SDL3/SDL_pixels.h
Name
SDL_GetPixelFormatName - Get the human readable name of a pixel format.
Return Value
Returns the human readable name of the specified pixel format or " SDL_PIXELFORMAT_UNKNOWN " if the
format isn't recognized.
Synopsis
#include"SDL3/SDL.h"constchar*SDL_GetPixelFormatName(SDL_PixelFormatformat);
Thread Safety
It is safe to call this function from any thread.
