SDL_GetPixelFormatName

Get the human readable name of a pixel format.

extern (C) nothrow @nogc extern
const(char)*
SDL_GetPixelFormatName

Parameters

format SDL_PixelFormat

the pixel format to query.

Return Value

Type: const(char)*

The human readable name of the specified pixel format or "SDL_PIXELFORMAT_UNKNOWN" if the format isn't recognized.

Threadsafety: It is safe to call this function from any thread.

Meta