SDL_oldnames.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2022 Sam Lantinga <[email protected]>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. /**
  19. * \file SDL_oldnames.h
  20. *
  21. * Definitions to ease transition from SDL2 code
  22. */
  23. #ifndef SDL_oldnames_h_
  24. #define SDL_oldnames_h_
  25. #include <SDL3/SDL_platform.h>
  26. /* The new function names are recommended, but if you want to have the
  27. * old names available while you are in the process of migrating code
  28. * to SDL3, you can define `SDL_ENABLE_OLD_NAMES` in your project.
  29. *
  30. * You can use https://github.com/libsdl-org/SDL/blob/main/build-scripts/rename_symbols.py to mass rename the symbols defined here in your codebase:
  31. * rename_symbols.py --all-symbols source_code_path
  32. */
  33. #ifdef SDL_ENABLE_OLD_NAMES
  34. /* ##SDL_audio.h */
  35. #define SDL_AudioStreamAvailable SDL_GetAudioStreamAvailable
  36. #define SDL_AudioStreamClear SDL_ClearAudioStream
  37. #define SDL_AudioStreamFlush SDL_FlushAudioStream
  38. #define SDL_AudioStreamGet SDL_GetAudioStreamData
  39. #define SDL_AudioStreamPut SDL_PutAudioStreamData
  40. #define SDL_FreeAudioStream SDL_DestroyAudioStream
  41. #define SDL_FreeWAV SDL_free
  42. #define SDL_NewAudioStream SDL_CreateAudioStream
  43. /* ##SDL_joystick.h */
  44. #define SDL_JoystickAttachVirtual SDL_AttachVirtualJoystick
  45. #define SDL_JoystickAttachVirtualEx SDL_AttachVirtualJoystickEx
  46. #define SDL_JoystickClose SDL_CloseJoystick
  47. #define SDL_JoystickCurrentPowerLevel SDL_GetJoystickPowerLevel
  48. #define SDL_JoystickDetachVirtual SDL_DetachVirtualJoystick
  49. #define SDL_JoystickEventState SDL_GetJoystickEventState
  50. #define SDL_JoystickFromInstanceID SDL_GetJoystickFromInstanceID
  51. #define SDL_JoystickFromPlayerIndex SDL_GetJoystickFromPlayerIndex
  52. #define SDL_JoystickGetAttached SDL_IsJoystickConnected
  53. #define SDL_JoystickGetAxis SDL_GetJoystickAxis
  54. #define SDL_JoystickGetAxisInitialState SDL_GetJoystickAxisInitialState
  55. #define SDL_JoystickGetButton SDL_GetJoystickButton
  56. #define SDL_JoystickGetDeviceGUID SDL_GetJoystickDeviceGUID
  57. #define SDL_JoystickGetDeviceInstanceID SDL_GetJoystickDeviceInstanceID
  58. #define SDL_JoystickGetDevicePlayerIndex SDL_GetJoystickDevicePlayerIndex
  59. #define SDL_JoystickGetDeviceProduct SDL_GetJoystickDeviceProduct
  60. #define SDL_JoystickGetDeviceProductVersion SDL_GetJoystickDeviceProductVersion
  61. #define SDL_JoystickGetDeviceType SDL_GetJoystickDeviceType
  62. #define SDL_JoystickGetDeviceVendor SDL_GetJoystickDeviceVendor
  63. #define SDL_JoystickGetFirmwareVersion SDL_GetJoystickFirmwareVersion
  64. #define SDL_JoystickGetGUID SDL_GetJoystickGUID
  65. #define SDL_JoystickGetGUIDFromString SDL_GetJoystickGUIDFromString
  66. #define SDL_JoystickGetGUIDString SDL_GetJoystickGUIDString
  67. #define SDL_JoystickGetHat SDL_GetJoystickHat
  68. #define SDL_JoystickGetPlayerIndex SDL_GetJoystickPlayerIndex
  69. #define SDL_JoystickGetProduct SDL_GetJoystickProduct
  70. #define SDL_JoystickGetProductVersion SDL_GetJoystickProductVersion
  71. #define SDL_JoystickGetSerial SDL_GetJoystickSerial
  72. #define SDL_JoystickGetType SDL_GetJoystickType
  73. #define SDL_JoystickGetVendor SDL_GetJoystickVendor
  74. #define SDL_JoystickInstanceID SDL_GetJoystickInstanceID
  75. #define SDL_JoystickIsVirtual SDL_IsJoystickVirtual
  76. #define SDL_JoystickName SDL_GetJoystickName
  77. #define SDL_JoystickNameForIndex SDL_GetJoystickNameForIndex
  78. #define SDL_JoystickNumAxes SDL_GetNumJoystickAxes
  79. #define SDL_JoystickNumButtons SDL_GetNumJoystickButtons
  80. #define SDL_JoystickNumHats SDL_GetNumJoystickHats
  81. #define SDL_JoystickOpen SDL_OpenJoystick
  82. #define SDL_JoystickPath SDL_GetJoystickPath
  83. #define SDL_JoystickPathForIndex SDL_GetJoystickPathForIndex
  84. #define SDL_JoystickRumble SDL_RumbleJoystick
  85. #define SDL_JoystickRumbleTriggers SDL_RumbleJoystickTriggers
  86. #define SDL_JoystickSendEffect SDL_SendJoystickEffect
  87. #define SDL_JoystickSetLED SDL_SetJoystickLED
  88. #define SDL_JoystickSetPlayerIndex SDL_SetJoystickPlayerIndex
  89. #define SDL_JoystickSetVirtualAxis SDL_SetJoystickVirtualAxis
  90. #define SDL_JoystickSetVirtualButton SDL_SetJoystickVirtualButton
  91. #define SDL_JoystickSetVirtualHat SDL_SetJoystickVirtualHat
  92. #define SDL_JoystickUpdate SDL_UpdateJoysticks
  93. #define SDL_NumJoysticks SDL_GetNumJoysticks
  94. /* ##SDL_keycode.h */
  95. #define KMOD_ALT SDL_KMOD_ALT
  96. #define KMOD_CAPS SDL_KMOD_CAPS
  97. #define KMOD_CTRL SDL_KMOD_CTRL
  98. #define KMOD_GUI SDL_KMOD_GUI
  99. #define KMOD_LALT SDL_KMOD_LALT
  100. #define KMOD_LCTRL SDL_KMOD_LCTRL
  101. #define KMOD_LGUI SDL_KMOD_LGUI
  102. #define KMOD_LSHIFT SDL_KMOD_LSHIFT
  103. #define KMOD_MODE SDL_KMOD_MODE
  104. #define KMOD_NONE SDL_KMOD_NONE
  105. #define KMOD_NUM SDL_KMOD_NUM
  106. #define KMOD_RALT SDL_KMOD_RALT
  107. #define KMOD_RCTRL SDL_KMOD_RCTRL
  108. #define KMOD_RESERVED SDL_KMOD_RESERVED
  109. #define KMOD_RGUI SDL_KMOD_RGUI
  110. #define KMOD_RSHIFT SDL_KMOD_RSHIFT
  111. #define KMOD_SCROLL SDL_KMOD_SCROLL
  112. #define KMOD_SHIFT SDL_KMOD_SHIFT
  113. /* ##SDL_pixels.h */
  114. #define SDL_AllocFormat SDL_CreatePixelFormat
  115. #define SDL_AllocPalette SDL_CreatePalette
  116. #define SDL_FreeFormat SDL_DestroyPixelFormat
  117. #define SDL_FreePalette SDL_DestroyPalette
  118. #define SDL_MasksToPixelFormatEnum SDL_GetPixelFormatEnumForMasks
  119. #define SDL_PixelFormatEnumToMasks SDL_GetMasksForPixelFormatEnum
  120. /* ##SDL_platform.h */
  121. #ifdef __IOS__
  122. #define __IPHONEOS__ __IOS__
  123. #endif
  124. #ifdef __MACOS__
  125. #define __MACOSX__ __MACOS__
  126. #endif
  127. /* ##SDL_render.h */
  128. #define SDL_RenderCopy SDL_RenderTexture
  129. #define SDL_RenderCopyEx SDL_RenderTextureRotated
  130. #define SDL_RenderCopyExF SDL_RenderTextureRotatedF
  131. #define SDL_RenderCopyF SDL_RenderTextureF
  132. #define SDL_RenderDrawLine SDL_RenderLine
  133. #define SDL_RenderDrawLineF SDL_RenderLineF
  134. #define SDL_RenderDrawLines SDL_RenderLines
  135. #define SDL_RenderDrawLinesF SDL_RenderLinesF
  136. #define SDL_RenderDrawPoint SDL_RenderPoint
  137. #define SDL_RenderDrawPointF SDL_RenderPointF
  138. #define SDL_RenderDrawPoints SDL_RenderPoints
  139. #define SDL_RenderDrawPointsF SDL_RenderPointsF
  140. #define SDL_RenderDrawRect SDL_RenderRect
  141. #define SDL_RenderDrawRectF SDL_RenderRectF
  142. #define SDL_RenderDrawRects SDL_RenderRects
  143. #define SDL_RenderDrawRectsF SDL_RenderRectsF
  144. #define SDL_RenderGetClipRect SDL_GetRenderClipRect
  145. #define SDL_RenderGetIntegerScale SDL_GetRenderIntegerScale
  146. #define SDL_RenderGetLogicalSize SDL_GetRenderLogicalSize
  147. #define SDL_RenderGetMetalCommandEncoder SDL_GetRenderMetalCommandEncoder
  148. #define SDL_RenderGetMetalLayer SDL_GetRenderMetalLayer
  149. #define SDL_RenderGetScale SDL_GetRenderScale
  150. #define SDL_RenderGetViewport SDL_GetRenderViewport
  151. #define SDL_RenderGetWindow SDL_GetRenderWindow
  152. #define SDL_RenderIsClipEnabled SDL_IsRenderClipEnabled
  153. #define SDL_RenderSetClipRect SDL_SetRenderClipRect
  154. #define SDL_RenderSetIntegerScale SDL_SetRenderIntegerScale
  155. #define SDL_RenderSetLogicalSize SDL_SetRenderLogicalSize
  156. #define SDL_RenderSetScale SDL_SetRenderScale
  157. #define SDL_RenderSetVSync SDL_SetRenderVSync
  158. #define SDL_RenderSetViewport SDL_SetRenderViewport
  159. #define SDL_RenderTargetSupported SDL_IsRenderTargetSupported
  160. /* ##SDL_rwops.h */
  161. #define RW_SEEK_CUR SDL_RW_SEEK_CUR
  162. #define RW_SEEK_END SDL_RW_SEEK_END
  163. #define RW_SEEK_SET SDL_RW_SEEK_SET
  164. /* ##SDL_sensor.h */
  165. #define SDL_NumSensors SDL_GetNumSensors
  166. #define SDL_SensorClose SDL_CloseSensor
  167. #define SDL_SensorFromInstanceID SDL_GetSensorFromInstanceID
  168. #define SDL_SensorGetData SDL_GetSensorData
  169. #define SDL_SensorGetDeviceInstanceID SDL_GetSensorDeviceInstanceID
  170. #define SDL_SensorGetDeviceName SDL_GetSensorDeviceName
  171. #define SDL_SensorGetDeviceNonPortableType SDL_GetSensorDeviceNonPortableType
  172. #define SDL_SensorGetDeviceType SDL_GetSensorDeviceType
  173. #define SDL_SensorGetInstanceID SDL_GetSensorInstanceID
  174. #define SDL_SensorGetName SDL_GetSensorName
  175. #define SDL_SensorGetNonPortableType SDL_GetSensorNonPortableType
  176. #define SDL_SensorGetType SDL_GetSensorType
  177. #define SDL_SensorOpen SDL_OpenSensor
  178. #define SDL_SensorUpdate SDL_UpdateSensors
  179. #else /* !SDL_ENABLE_OLD_NAMES */
  180. /* ##SDL_audio.h */
  181. #define SDL_AudioStreamAvailable SDL_AudioStreamAvailable_renamed_SDL_GetAudioStreamAvailable
  182. #define SDL_AudioStreamClear SDL_AudioStreamClear_renamed_SDL_ClearAudioStream
  183. #define SDL_AudioStreamFlush SDL_AudioStreamFlush_renamed_SDL_FlushAudioStream
  184. #define SDL_AudioStreamGet SDL_AudioStreamGet_renamed_SDL_GetAudioStreamData
  185. #define SDL_AudioStreamPut SDL_AudioStreamPut_renamed_SDL_PutAudioStreamData
  186. #define SDL_FreeAudioStream SDL_FreeAudioStream_renamed_SDL_DestroyAudioStream
  187. #define SDL_FreeWAV SDL_FreeWAV_renamed_SDL_free
  188. #define SDL_NewAudioStream SDL_NewAudioStream_renamed_SDL_CreateAudioStream
  189. /* ##SDL_joystick.h */
  190. #define SDL_JoystickAttachVirtual SDL_JoystickAttachVirtual_renamed_SDL_AttachVirtualJoystick
  191. #define SDL_JoystickAttachVirtualEx SDL_JoystickAttachVirtualEx_renamed_SDL_AttachVirtualJoystickEx
  192. #define SDL_JoystickClose SDL_JoystickClose_renamed_SDL_CloseJoystick
  193. #define SDL_JoystickCurrentPowerLevel SDL_JoystickCurrentPowerLevel_renamed_SDL_GetJoystickPowerLevel
  194. #define SDL_JoystickDetachVirtual SDL_JoystickDetachVirtual_renamed_SDL_DetachVirtualJoystick
  195. #define SDL_JoystickEventState SDL_JoystickEventState_renamed_SDL_GetJoystickEventState
  196. #define SDL_JoystickFromInstanceID SDL_JoystickFromInstanceID_renamed_SDL_GetJoystickFromInstanceID
  197. #define SDL_JoystickFromPlayerIndex SDL_JoystickFromPlayerIndex_renamed_SDL_GetJoystickFromPlayerIndex
  198. #define SDL_JoystickGetAttached SDL_JoystickGetAttached_renamed_SDL_IsJoystickConnected
  199. #define SDL_JoystickGetAxis SDL_JoystickGetAxis_renamed_SDL_GetJoystickAxis
  200. #define SDL_JoystickGetAxisInitialState SDL_JoystickGetAxisInitialState_renamed_SDL_GetJoystickAxisInitialState
  201. #define SDL_JoystickGetButton SDL_JoystickGetButton_renamed_SDL_GetJoystickButton
  202. #define SDL_JoystickGetDeviceGUID SDL_JoystickGetDeviceGUID_renamed_SDL_GetJoystickDeviceGUID
  203. #define SDL_JoystickGetDeviceInstanceID SDL_JoystickGetDeviceInstanceID_renamed_SDL_GetJoystickDeviceInstanceID
  204. #define SDL_JoystickGetDevicePlayerIndex SDL_JoystickGetDevicePlayerIndex_renamed_SDL_GetJoystickDevicePlayerIndex
  205. #define SDL_JoystickGetDeviceProduct SDL_JoystickGetDeviceProduct_renamed_SDL_GetJoystickDeviceProduct
  206. #define SDL_JoystickGetDeviceProductVersion SDL_JoystickGetDeviceProductVersion_renamed_SDL_GetJoystickDeviceProductVersion
  207. #define SDL_JoystickGetDeviceType SDL_JoystickGetDeviceType_renamed_SDL_GetJoystickDeviceType
  208. #define SDL_JoystickGetDeviceVendor SDL_JoystickGetDeviceVendor_renamed_SDL_GetJoystickDeviceVendor
  209. #define SDL_JoystickGetFirmwareVersion SDL_JoystickGetFirmwareVersion_renamed_SDL_GetJoystickFirmwareVersion
  210. #define SDL_JoystickGetGUID SDL_JoystickGetGUID_renamed_SDL_GetJoystickGUID
  211. #define SDL_JoystickGetGUIDFromString SDL_JoystickGetGUIDFromString_renamed_SDL_GetJoystickGUIDFromString
  212. #define SDL_JoystickGetGUIDString SDL_JoystickGetGUIDString_renamed_SDL_GetJoystickGUIDString
  213. #define SDL_JoystickGetHat SDL_JoystickGetHat_renamed_SDL_GetJoystickHat
  214. #define SDL_JoystickGetPlayerIndex SDL_JoystickGetPlayerIndex_renamed_SDL_GetJoystickPlayerIndex
  215. #define SDL_JoystickGetProduct SDL_JoystickGetProduct_renamed_SDL_GetJoystickProduct
  216. #define SDL_JoystickGetProductVersion SDL_JoystickGetProductVersion_renamed_SDL_GetJoystickProductVersion
  217. #define SDL_JoystickGetSerial SDL_JoystickGetSerial_renamed_SDL_GetJoystickSerial
  218. #define SDL_JoystickGetType SDL_JoystickGetType_renamed_SDL_GetJoystickType
  219. #define SDL_JoystickGetVendor SDL_JoystickGetVendor_renamed_SDL_GetJoystickVendor
  220. #define SDL_JoystickInstanceID SDL_JoystickInstanceID_renamed_SDL_GetJoystickInstanceID
  221. #define SDL_JoystickIsVirtual SDL_JoystickIsVirtual_renamed_SDL_IsJoystickVirtual
  222. #define SDL_JoystickName SDL_JoystickName_renamed_SDL_GetJoystickName
  223. #define SDL_JoystickNameForIndex SDL_JoystickNameForIndex_renamed_SDL_GetJoystickNameForIndex
  224. #define SDL_JoystickNumAxes SDL_JoystickNumAxes_renamed_SDL_GetNumJoystickAxes
  225. #define SDL_JoystickNumButtons SDL_JoystickNumButtons_renamed_SDL_GetNumJoystickButtons
  226. #define SDL_JoystickNumHats SDL_JoystickNumHats_renamed_SDL_GetNumJoystickHats
  227. #define SDL_JoystickOpen SDL_JoystickOpen_renamed_SDL_OpenJoystick
  228. #define SDL_JoystickPath SDL_JoystickPath_renamed_SDL_GetJoystickPath
  229. #define SDL_JoystickPathForIndex SDL_JoystickPathForIndex_renamed_SDL_GetJoystickPathForIndex
  230. #define SDL_JoystickRumble SDL_JoystickRumble_renamed_SDL_RumbleJoystick
  231. #define SDL_JoystickRumbleTriggers SDL_JoystickRumbleTriggers_renamed_SDL_RumbleJoystickTriggers
  232. #define SDL_JoystickSendEffect SDL_JoystickSendEffect_renamed_SDL_SendJoystickEffect
  233. #define SDL_JoystickSetLED SDL_JoystickSetLED_renamed_SDL_SetJoystickLED
  234. #define SDL_JoystickSetPlayerIndex SDL_JoystickSetPlayerIndex_renamed_SDL_SetJoystickPlayerIndex
  235. #define SDL_JoystickSetVirtualAxis SDL_JoystickSetVirtualAxis_renamed_SDL_SetJoystickVirtualAxis
  236. #define SDL_JoystickSetVirtualButton SDL_JoystickSetVirtualButton_renamed_SDL_SetJoystickVirtualButton
  237. #define SDL_JoystickSetVirtualHat SDL_JoystickSetVirtualHat_renamed_SDL_SetJoystickVirtualHat
  238. #define SDL_JoystickUpdate SDL_JoystickUpdate_renamed_SDL_UpdateJoysticks
  239. #define SDL_NumJoysticks SDL_NumJoysticks_renamed_SDL_GetNumJoysticks
  240. /* ##SDL_keycode.h */
  241. #define KMOD_ALT KMOD_ALT_renamed_SDL_KMOD_ALT
  242. #define KMOD_CAPS KMOD_CAPS_renamed_SDL_KMOD_CAPS
  243. #define KMOD_CTRL KMOD_CTRL_renamed_SDL_KMOD_CTRL
  244. #define KMOD_GUI KMOD_GUI_renamed_SDL_KMOD_GUI
  245. #define KMOD_LALT KMOD_LALT_renamed_SDL_KMOD_LALT
  246. #define KMOD_LCTRL KMOD_LCTRL_renamed_SDL_KMOD_LCTRL
  247. #define KMOD_LGUI KMOD_LGUI_renamed_SDL_KMOD_LGUI
  248. #define KMOD_LSHIFT KMOD_LSHIFT_renamed_SDL_KMOD_LSHIFT
  249. #define KMOD_MODE KMOD_MODE_renamed_SDL_KMOD_MODE
  250. #define KMOD_NONE KMOD_NONE_renamed_SDL_KMOD_NONE
  251. #define KMOD_NUM KMOD_NUM_renamed_SDL_KMOD_NUM
  252. #define KMOD_RALT KMOD_RALT_renamed_SDL_KMOD_RALT
  253. #define KMOD_RCTRL KMOD_RCTRL_renamed_SDL_KMOD_RCTRL
  254. #define KMOD_RESERVED KMOD_RESERVED_renamed_SDL_KMOD_RESERVED
  255. #define KMOD_RGUI KMOD_RGUI_renamed_SDL_KMOD_RGUI
  256. #define KMOD_RSHIFT KMOD_RSHIFT_renamed_SDL_KMOD_RSHIFT
  257. #define KMOD_SCROLL KMOD_SCROLL_renamed_SDL_KMOD_SCROLL
  258. #define KMOD_SHIFT KMOD_SHIFT_renamed_SDL_KMOD_SHIFT
  259. /* ##SDL_pixels.h */
  260. #define SDL_AllocFormat SDL_AllocFormat_renamed_SDL_CreatePixelFormat
  261. #define SDL_AllocPalette SDL_AllocPalette_renamed_SDL_CreatePalette
  262. #define SDL_FreeFormat SDL_FreeFormat_renamed_SDL_DestroyPixelFormat
  263. #define SDL_FreePalette SDL_FreePalette_renamed_SDL_DestroyPalette
  264. #define SDL_MasksToPixelFormatEnum SDL_MasksToPixelFormatEnum_renamed_SDL_GetPixelFormatEnumForMasks
  265. #define SDL_PixelFormatEnumToMasks SDL_PixelFormatEnumToMasks_renamed_SDL_GetMasksForPixelFormatEnum
  266. /* ##SDL_platform.h */
  267. #ifdef __IOS__
  268. #define __IPHONEOS__ __IPHONEOS___renamed___IOS__
  269. #endif
  270. #ifdef __MACOS__
  271. #define __MACOSX__ __MACOSX___renamed___MACOS__
  272. #endif
  273. /* ##SDL_render.h */
  274. #define SDL_RenderCopy SDL_RenderCopy_renamed_SDL_RenderTexture
  275. #define SDL_RenderCopyEx SDL_RenderCopyEx_renamed_SDL_RenderTextureRotated
  276. #define SDL_RenderCopyExF SDL_RenderCopyExF_renamed_SDL_RenderTextureRotatedF
  277. #define SDL_RenderCopyF SDL_RenderCopyF_renamed_SDL_RenderTextureF
  278. #define SDL_RenderDrawLine SDL_RenderDrawLine_renamed_SDL_RenderLine
  279. #define SDL_RenderDrawLineF SDL_RenderDrawLineF_renamed_SDL_RenderLineF
  280. #define SDL_RenderDrawLines SDL_RenderDrawLines_renamed_SDL_RenderLines
  281. #define SDL_RenderDrawLinesF SDL_RenderDrawLinesF_renamed_SDL_RenderLinesF
  282. #define SDL_RenderDrawPoint SDL_RenderDrawPoint_renamed_SDL_RenderPoint
  283. #define SDL_RenderDrawPointF SDL_RenderDrawPointF_renamed_SDL_RenderPointF
  284. #define SDL_RenderDrawPoints SDL_RenderDrawPoints_renamed_SDL_RenderPoints
  285. #define SDL_RenderDrawPointsF SDL_RenderDrawPointsF_renamed_SDL_RenderPointsF
  286. #define SDL_RenderDrawRect SDL_RenderDrawRect_renamed_SDL_RenderRect
  287. #define SDL_RenderDrawRectF SDL_RenderDrawRectF_renamed_SDL_RenderRectF
  288. #define SDL_RenderDrawRects SDL_RenderDrawRects_renamed_SDL_RenderRects
  289. #define SDL_RenderDrawRectsF SDL_RenderDrawRectsF_renamed_SDL_RenderRectsF
  290. #define SDL_RenderGetClipRect SDL_RenderGetClipRect_renamed_SDL_GetRenderClipRect
  291. #define SDL_RenderGetIntegerScale SDL_RenderGetIntegerScale_renamed_SDL_GetRenderIntegerScale
  292. #define SDL_RenderGetLogicalSize SDL_RenderGetLogicalSize_renamed_SDL_GetRenderLogicalSize
  293. #define SDL_RenderGetMetalCommandEncoder SDL_RenderGetMetalCommandEncoder_renamed_SDL_GetRenderMetalCommandEncoder
  294. #define SDL_RenderGetMetalLayer SDL_RenderGetMetalLayer_renamed_SDL_GetRenderMetalLayer
  295. #define SDL_RenderGetScale SDL_RenderGetScale_renamed_SDL_GetRenderScale
  296. #define SDL_RenderGetViewport SDL_RenderGetViewport_renamed_SDL_GetRenderViewport
  297. #define SDL_RenderGetWindow SDL_RenderGetWindow_renamed_SDL_GetRenderWindow
  298. #define SDL_RenderIsClipEnabled SDL_RenderIsClipEnabled_renamed_SDL_IsRenderClipEnabled
  299. #define SDL_RenderSetClipRect SDL_RenderSetClipRect_renamed_SDL_SetRenderClipRect
  300. #define SDL_RenderSetIntegerScale SDL_RenderSetIntegerScale_renamed_SDL_SetRenderIntegerScale
  301. #define SDL_RenderSetLogicalSize SDL_RenderSetLogicalSize_renamed_SDL_SetRenderLogicalSize
  302. #define SDL_RenderSetScale SDL_RenderSetScale_renamed_SDL_SetRenderScale
  303. #define SDL_RenderSetVSync SDL_RenderSetVSync_renamed_SDL_SetRenderVSync
  304. #define SDL_RenderSetViewport SDL_RenderSetViewport_renamed_SDL_SetRenderViewport
  305. #define SDL_RenderTargetSupported SDL_RenderTargetSupported_renamed_SDL_IsRenderTargetSupported
  306. /* ##SDL_rwops.h */
  307. #define RW_SEEK_CUR RW_SEEK_CUR_renamed_SDL_RW_SEEK_CUR
  308. #define RW_SEEK_END RW_SEEK_END_renamed_SDL_RW_SEEK_END
  309. #define RW_SEEK_SET RW_SEEK_SET_renamed_SDL_RW_SEEK_SET
  310. /* ##SDL_sensor.h */
  311. #define SDL_NumSensors SDL_NumSensors_renamed_SDL_GetNumSensors
  312. #define SDL_SensorClose SDL_SensorClose_renamed_SDL_CloseSensor
  313. #define SDL_SensorFromInstanceID SDL_SensorFromInstanceID_renamed_SDL_GetSensorFromInstanceID
  314. #define SDL_SensorGetData SDL_SensorGetData_renamed_SDL_GetSensorData
  315. #define SDL_SensorGetDeviceInstanceID SDL_SensorGetDeviceInstanceID_renamed_SDL_GetSensorDeviceInstanceID
  316. #define SDL_SensorGetDeviceName SDL_SensorGetDeviceName_renamed_SDL_GetSensorDeviceName
  317. #define SDL_SensorGetDeviceNonPortableType SDL_SensorGetDeviceNonPortableType_renamed_SDL_GetSensorDeviceNonPortableType
  318. #define SDL_SensorGetDeviceType SDL_SensorGetDeviceType_renamed_SDL_GetSensorDeviceType
  319. #define SDL_SensorGetInstanceID SDL_SensorGetInstanceID_renamed_SDL_GetSensorInstanceID
  320. #define SDL_SensorGetName SDL_SensorGetName_renamed_SDL_GetSensorName
  321. #define SDL_SensorGetNonPortableType SDL_SensorGetNonPortableType_renamed_SDL_GetSensorNonPortableType
  322. #define SDL_SensorGetType SDL_SensorGetType_renamed_SDL_GetSensorType
  323. #define SDL_SensorOpen SDL_SensorOpen_renamed_SDL_OpenSensor
  324. #define SDL_SensorUpdate SDL_SensorUpdate_renamed_SDL_UpdateSensors
  325. #endif /* SDL_ENABLE_OLD_NAMES */
  326. #endif /* SDL_oldnames_h_ */