Uses of Interface
club.doki7.sdl3.datatype.ISDL_Palette
Packages that use ISDL_Palette
-
Uses of ISDL_Palette in club.doki7.sdl3
Methods in club.doki7.sdl3 that return ISDL_PaletteModifier and TypeMethodDescriptionSDL3.createPalette
(int ncolors) Create a palette structure with the specified number of color entries.SDL3.createSurfacePalette
(@Nullable SDL_Surface surface) Create a palette and associate it with a surface.SDL3.getSurfacePalette
(@Nullable SDL_Surface surface) Get the palette used by a surface.Methods in club.doki7.sdl3 with parameters of type ISDL_PaletteModifier and TypeMethodDescriptionSDL3.convertSurfaceAndColorspace
(@Nullable SDL_Surface surface, int format, @Nullable ISDL_Palette palette, int colorspace, int props) Copy an existing surface to a new surface of the specified format and colorspace.void
SDL3.destroyPalette
(@Nullable ISDL_Palette palette) Free a palette created with SDL_CreatePalette().void
SDL3.getRGB
(int pixel, @Nullable ISDL_PixelFormatDetails format, @Nullable ISDL_Palette palette, @Nullable BytePtr r, @Nullable BytePtr g, @Nullable BytePtr b) Get RGB values from a pixel in the specified format.void
SDL3.getRGBA
(int pixel, @Nullable ISDL_PixelFormatDetails format, @Nullable ISDL_Palette palette, @Nullable BytePtr r, @Nullable BytePtr g, @Nullable BytePtr b, @Nullable BytePtr a) Get RGBA values from a pixel in the specified format.int
SDL3.mapRGB
(@Nullable ISDL_PixelFormatDetails format, @Nullable ISDL_Palette palette, byte r, byte g, byte b) Map an RGB triple to an opaque pixel value for a given pixel format.int
SDL3.mapRGBA
(@Nullable ISDL_PixelFormatDetails format, @Nullable ISDL_Palette palette, byte r, byte g, byte b, byte a) Map an RGBA quadruple to a pixel value for a given pixel format.boolean
SDL3.setPaletteColors
(@Nullable ISDL_Palette palette, @Nullable ISDL_Color colors, int firstcolor, int ncolors) Set a range of colors in a palette.boolean
SDL3.setSurfacePalette
(@Nullable SDL_Surface surface, @Nullable ISDL_Palette palette) Set the palette used by a surface. -
Uses of ISDL_Palette in club.doki7.sdl3.datatype
Classes in club.doki7.sdl3.datatype that implement ISDL_PaletteModifier and TypeClassDescriptionfinal record
A set of indexed colors representing a palette.static final record
Represents a pointer to / an array of null structure(s) in native memory.