mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 08:56:25 +00:00
Added support for textures with palettes
Closes https://github.com/libsdl-org/SDL/pull/6192
This commit is contained in:
@@ -327,6 +327,8 @@ extern SDL_DECLSPEC SDL_Palette * SDLCALL SDL_CreateSurfacePalette(SDL_Surface *
|
||||
/**
|
||||
* Set the palette used by a surface.
|
||||
*
|
||||
* Setting the palette keeps an internal reference to the palette, which can be safely destroyed afterwards.
|
||||
*
|
||||
* A single palette can be shared with many surfaces.
|
||||
*
|
||||
* \param surface the SDL_Surface structure to update.
|
||||
|
Reference in New Issue
Block a user