mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-19 19:10:31 +08:00
SDL API renaming: SDL_pixels.h
Fixes https://github.com/libsdl-org/SDL/issues/6886
This commit is contained in:
@@ -17,12 +17,16 @@ General:
|
||||
* RW_SEEK_SET -> SDL_RW_SEEK_SET
|
||||
* SDL_FreeWAV has been removed and calls can be replaced with SDL_free
|
||||
* The following functions have been renamed:
|
||||
* SDL_AllocFormat => SDL_CreatePixelFormat
|
||||
* SDL_AllocPalette => SDL_CreatePalette
|
||||
* SDL_AudioStreamAvailable => SDL_GetAudioStreamAvailable
|
||||
* SDL_AudioStreamClear => SDL_ClearAudioStream
|
||||
* SDL_AudioStreamFlush => SDL_FlushAudioStream
|
||||
* SDL_AudioStreamGet => SDL_GetAudioStreamData
|
||||
* SDL_AudioStreamPut => SDL_PutAudioStreamData
|
||||
* SDL_FreeAudioStream => SDL_DestroyAudioStream
|
||||
* SDL_FreeFormat => SDL_DestroyPixelFormat
|
||||
* SDL_FreePalette => SDL_DestroyPalette
|
||||
* SDL_JoystickAttachVirtual => SDL_AttachVirtualJoystick
|
||||
* SDL_JoystickAttachVirtualEx => SDL_AttachVirtualJoystickEx
|
||||
* SDL_JoystickClose => SDL_CloseJoystick
|
||||
@@ -72,8 +76,10 @@ General:
|
||||
* SDL_JoystickSetVirtualButton => SDL_SetJoystickVirtualButton
|
||||
* SDL_JoystickSetVirtualHat => SDL_SetJoystickVirtualHat
|
||||
* SDL_JoystickUpdate => SDL_UpdateJoysticks
|
||||
* SDL_MasksToPixelFormatEnum => SDL_GetPixelFormatEnumForMasks
|
||||
* SDL_NewAudioStream => SDL_CreateAudioStream
|
||||
* SDL_NumJoysticks => SDL_GetNumJoysticks
|
||||
* SDL_PixelFormatEnumToMasks => SDL_GetMasksForPixelFormatEnum
|
||||
* Removed the following functions from the API, see docs/README-migration.md for details:
|
||||
* SDL_AudioInit()
|
||||
* SDL_AudioQuit()
|
||||
|
||||
Reference in New Issue
Block a user