mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 01:17:40 +00:00
Simplified SDL_Surface
SDL_Surface has been simplified and internal details are no longer in the public structure. The `format` member of SDL_Surface is now an enumerated pixel format value. You can get the full details of the pixel format by calling `SDL_GetPixelFormatDetails(surface->format)`. You can get the palette associated with the surface by calling SDL_GetSurfacePalette(). You can get the clip rectangle by calling SDL_GetSurfaceClipRect(). SDL_PixelFormat has been renamed SDL_PixelFormatDetails and just describes the pixel format, it does not include a palette for indexed pixel types. SDL_PixelFormatEnum has been renamed SDL_PixelFormat and is used instead of Uint32 for API functions that refer to pixel format by enumerated value. SDL_MapRGB(), SDL_MapRGBA(), SDL_GetRGB(), and SDL_GetRGBA() take an optional palette parameter for indexed color lookups.
This commit is contained in:
parent
40ed098ce8
commit
2ba76dbe80
123 changed files with 1865 additions and 1838 deletions
|
@ -58,8 +58,7 @@ SDL3_0.0.0 {
|
|||
SDL_ConvertPixels;
|
||||
SDL_ConvertPixelsAndColorspace;
|
||||
SDL_ConvertSurface;
|
||||
SDL_ConvertSurfaceFormat;
|
||||
SDL_ConvertSurfaceFormatAndColorspace;
|
||||
SDL_ConvertSurfaceAndColorspace;
|
||||
SDL_CopyProperties;
|
||||
SDL_CreateAudioStream;
|
||||
SDL_CreateColorCursor;
|
||||
|
@ -330,7 +329,7 @@ SDL3_0.0.0 {
|
|||
SDL_GetKeyboards;
|
||||
SDL_GetLogOutputFunction;
|
||||
SDL_GetLogPriority;
|
||||
SDL_GetMasksForPixelFormatEnum;
|
||||
SDL_GetMasksForPixelFormat;
|
||||
SDL_GetMaxHapticEffects;
|
||||
SDL_GetMaxHapticEffectsPlaying;
|
||||
SDL_GetMemoryFunctions;
|
||||
|
@ -364,7 +363,8 @@ SDL3_0.0.0 {
|
|||
SDL_GetPens;
|
||||
SDL_GetPerformanceCounter;
|
||||
SDL_GetPerformanceFrequency;
|
||||
SDL_GetPixelFormatEnumForMasks;
|
||||
SDL_GetPixelFormatDetails;
|
||||
SDL_GetPixelFormatForMasks;
|
||||
SDL_GetPixelFormatName;
|
||||
SDL_GetPlatform;
|
||||
SDL_GetPowerInfo;
|
||||
|
@ -436,6 +436,7 @@ SDL3_0.0.0 {
|
|||
SDL_GetSurfaceColorKey;
|
||||
SDL_GetSurfaceColorMod;
|
||||
SDL_GetSurfaceColorspace;
|
||||
SDL_GetSurfacePalette;
|
||||
SDL_GetSurfaceProperties;
|
||||
SDL_GetSystemRAM;
|
||||
SDL_GetSystemTheme;
|
||||
|
@ -568,6 +569,8 @@ SDL3_0.0.0 {
|
|||
SDL_LogWarn;
|
||||
SDL_MapRGB;
|
||||
SDL_MapRGBA;
|
||||
SDL_MapSurfaceRGB;
|
||||
SDL_MapSurfaceRGBA;
|
||||
SDL_MaximizeWindow;
|
||||
SDL_MemoryBarrierAcquireFunction;
|
||||
SDL_MemoryBarrierReleaseFunction;
|
||||
|
@ -724,7 +727,6 @@ SDL3_0.0.0 {
|
|||
SDL_SetModState;
|
||||
SDL_SetNumberProperty;
|
||||
SDL_SetPaletteColors;
|
||||
SDL_SetPixelFormatPalette;
|
||||
SDL_SetPrimarySelectionText;
|
||||
SDL_SetProperty;
|
||||
SDL_SetPropertyWithCleanup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue