sdl3/generated/lib_sdl_pixels library

Functions

sdlCreatePalette(int ncolors) Pointer<SdlPalette>
Create a palette structure with the specified number of color entries.
sdlDestroyPalette(Pointer<SdlPalette> palette) → void
Free a palette created with SDL_CreatePalette().
sdlGetMasksForPixelFormat(int format, Pointer<Int32> bpp, Pointer<Uint32> rmask, Pointer<Uint32> gmask, Pointer<Uint32> bmask, Pointer<Uint32> amask) bool
Convert one of the enumerated pixel formats to a bpp value and RGBA masks.
sdlGetPixelFormatDetails(int format) Pointer<SdlPixelFormatDetails>
Create an SDL_PixelFormatDetails structure corresponding to a pixel format.
sdlGetPixelFormatForMasks(int bpp, int rmask, int gmask, int bmask, int amask) int
Convert a bpp value and RGBA masks to an enumerated pixel format.
sdlGetPixelFormatName(int format) String?
Get the human readable name of a pixel format.
sdlGetRgb(int pixel, Pointer<SdlPixelFormatDetails> format, Pointer<SdlPalette> palette, Pointer<Uint8> r, Pointer<Uint8> g, Pointer<Uint8> b) → void
Get RGB values from a pixel in the specified format.
sdlGetRgba(int pixel, Pointer<SdlPixelFormatDetails> format, Pointer<SdlPalette> palette, Pointer<Uint8> r, Pointer<Uint8> g, Pointer<Uint8> b, Pointer<Uint8> a) → void
Get RGBA values from a pixel in the specified format.
sdlMapRgb(Pointer<SdlPixelFormatDetails> format, Pointer<SdlPalette> palette, int r, int g, int b) int
Map an RGB triple to an opaque pixel value for a given pixel format.
sdlMapRgba(Pointer<SdlPixelFormatDetails> format, Pointer<SdlPalette> palette, int r, int g, int b, int a) int
Map an RGBA quadruple to a pixel value for a given pixel format.
sdlSetPaletteColors(Pointer<SdlPalette> palette, Pointer<SdlColor> colors, int firstcolor, int ncolors) bool
Set a range of colors in a palette.