SDL_migration.cocci 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744
  1. //
  2. //
  3. // This is a coccinelle semantic patch (https://github.com/coccinelle/coccinelle)
  4. // to ease migration of your project, from SDL2 to SDL3.
  5. //
  6. // It generates a 'diff' of your SDL2 project, that you can apply
  7. // to build for SDL3.
  8. //
  9. //
  10. // install:
  11. // $> apt-get install coccinelle
  12. //
  13. // apply the semantic patch to generate a diff file:
  14. // $> spatch --sp-file path/to/SDL_migration.cocci . > your_diff.txt
  15. //
  16. // A few options:
  17. // --c++=11 to parse cpp file
  18. // --max-width 200 to increase line witdth of generated source
  19. //
  20. // patch you project (make a copy before..):
  21. // $> patch -p1 < your_diff.txt
  22. //
  23. //
  24. //
  25. // #############
  26. // What it does ?
  27. // - all function renaming (without parameter change) as in SDL_oldnames.h
  28. // - remove SDL_WINDOW_SHOWN
  29. // - migrate SDL_CreateRGB* and SDL_ConvertSurface* functions
  30. //
  31. // #############
  32. // In very short, a patch is composed of two sub-blocks, like
  33. //
  34. // @@
  35. // declaration
  36. // @@
  37. // rule / transformation
  38. //
  39. // So this file, is a set of many patches, mostly independant.
  40. // it can be incremented by inserting new patches as SDL3 api evolves.
  41. //
  42. // SDL_PauseAudioDevice / SDL_PlayAudioDevice
  43. @@
  44. expression e;
  45. @@
  46. (
  47. - SDL_PauseAudioDevice(e, 1)
  48. + SDL_PauseAudioDevice(e)
  49. |
  50. - SDL_PauseAudioDevice(e, SDL_TRUE)
  51. + SDL_PauseAudioDevice(e)
  52. |
  53. - SDL_PauseAudioDevice(e, 0)
  54. + SDL_PlayAudioDevice(e)
  55. |
  56. - SDL_PauseAudioDevice(e, SDL_FALSE)
  57. + SDL_PlayAudioDevice(e)
  58. )
  59. @@
  60. expression e, pause_on;
  61. @@
  62. - SDL_PauseAudioDevice(e, pause_on);
  63. + if (pause_on) {
  64. + SDL_PauseAudioDevice(e);
  65. + } else {
  66. + SDL_PlayAudioDevice(e);
  67. + }
  68. // Remove SDL_WINDOW_SHOWN
  69. @@
  70. expression e;
  71. @@
  72. (
  73. - SDL_WINDOW_SHOWN | e
  74. + e
  75. |
  76. - SDL_WINDOW_SHOWN
  77. + 0
  78. )
  79. @@
  80. // Remove parameter from SDL_ConvertSurface
  81. expression e1, e2, e3;
  82. @@
  83. SDL_ConvertSurface(e1, e2
  84. - ,e3)
  85. + )
  86. @@
  87. // Remove parameter from SDL_ConvertSurfaceFormat
  88. expression e1, e2, e3;
  89. @@
  90. SDL_ConvertSurfaceFormat(e1, e2
  91. - ,e3)
  92. + )
  93. @@
  94. // SDL_CreateRGBSurfaceWithFormat
  95. // remove 'flags'
  96. // remove 'depth'
  97. // rename to SDL_CreateSurface
  98. expression e1, e2, e3, e4, e5;
  99. @@
  100. - SDL_CreateRGBSurfaceWithFormat(e1, e2, e3, e4, e5)
  101. + SDL_CreateSurface(e2, e3, e5)
  102. @@
  103. // SDL_CreateRGBSurfaceWithFormat:
  104. // remove 'depth'
  105. // rename to SDL_CreateSurfaceFrom
  106. expression e1, e2, e3, e4, e5, e6;
  107. @@
  108. - SDL_CreateRGBSurfaceWithFormatFrom(e1, e2, e3, e4, e5, e6)
  109. + SDL_CreateSurfaceFrom(e1, e2, e3, e5, e6)
  110. @@
  111. // SDL_CreateRGBSurface : convert Masks to format
  112. expression e1, e2, e3, e4, e5, e6, e7, e8, e9;
  113. @@
  114. (
  115. // Generated for all formats:
  116. - SDL_CreateRGBSurface(e1, e2, e3, 1, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  117. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_INDEX1LSB)
  118. |
  119. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 1, e4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  120. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_INDEX1LSB)
  121. |
  122. - SDL_CreateRGBSurface(e1, e2, e3, 1, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  123. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_INDEX1MSB)
  124. |
  125. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 1, e4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  126. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_INDEX1MSB)
  127. |
  128. - SDL_CreateRGBSurface(e1, e2, e3, 4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  129. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_INDEX4LSB)
  130. |
  131. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 4, e4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  132. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_INDEX4LSB)
  133. |
  134. - SDL_CreateRGBSurface(e1, e2, e3, 4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  135. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_INDEX4MSB)
  136. |
  137. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 4, e4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  138. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_INDEX4MSB)
  139. |
  140. - SDL_CreateRGBSurface(e1, e2, e3, 8, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  141. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_INDEX8)
  142. |
  143. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 8, e4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  144. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_INDEX8)
  145. |
  146. - SDL_CreateRGBSurface(e1, e2, e3, 8, 0x000000E0, 0x0000001C, 0x00000003, 0x00000000)
  147. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB332)
  148. |
  149. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 8, e4, 0x000000E0, 0x0000001C, 0x00000003, 0x00000000)
  150. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB332)
  151. |
  152. - SDL_CreateRGBSurface(e1, e2, e3, 12, 0x00000F00, 0x000000F0, 0x0000000F, 0x00000000)
  153. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB444)
  154. |
  155. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 12, e4, 0x00000F00, 0x000000F0, 0x0000000F, 0x00000000)
  156. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB444)
  157. |
  158. - SDL_CreateRGBSurface(e1, e2, e3, 15, 0x00007C00, 0x000003E0, 0x0000001F, 0x00000000)
  159. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB555)
  160. |
  161. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 15, e4, 0x00007C00, 0x000003E0, 0x0000001F, 0x00000000)
  162. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB555)
  163. |
  164. - SDL_CreateRGBSurface(e1, e2, e3, 15, 0x0000001F, 0x000003E0, 0x00007C00, 0x00000000)
  165. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGR555)
  166. |
  167. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 15, e4, 0x0000001F, 0x000003E0, 0x00007C00, 0x00000000)
  168. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGR555)
  169. |
  170. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x00000F00, 0x000000F0, 0x0000000F, 0x0000F000)
  171. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ARGB4444)
  172. |
  173. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x00000F00, 0x000000F0, 0x0000000F, 0x0000F000)
  174. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ARGB4444)
  175. |
  176. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000F000, 0x00000F00, 0x000000F0, 0x0000000F)
  177. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGBA4444)
  178. |
  179. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000F000, 0x00000F00, 0x000000F0, 0x0000000F)
  180. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGBA4444)
  181. |
  182. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000000F, 0x000000F0, 0x00000F00, 0x0000F000)
  183. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ABGR4444)
  184. |
  185. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000000F, 0x000000F0, 0x00000F00, 0x0000F000)
  186. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ABGR4444)
  187. |
  188. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x000000F0, 0x00000F00, 0x0000F000, 0x0000000F)
  189. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGRA4444)
  190. |
  191. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x000000F0, 0x00000F00, 0x0000F000, 0x0000000F)
  192. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGRA4444)
  193. |
  194. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x00007C00, 0x000003E0, 0x0000001F, 0x00008000)
  195. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ARGB1555)
  196. |
  197. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x00007C00, 0x000003E0, 0x0000001F, 0x00008000)
  198. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ARGB1555)
  199. |
  200. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000F800, 0x000007C0, 0x0000003E, 0x00000001)
  201. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGBA5551)
  202. |
  203. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000F800, 0x000007C0, 0x0000003E, 0x00000001)
  204. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGBA5551)
  205. |
  206. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000001F, 0x000003E0, 0x00007C00, 0x00008000)
  207. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ABGR1555)
  208. |
  209. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000001F, 0x000003E0, 0x00007C00, 0x00008000)
  210. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ABGR1555)
  211. |
  212. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000003E, 0x000007C0, 0x0000F800, 0x00000001)
  213. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGRA5551)
  214. |
  215. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000003E, 0x000007C0, 0x0000F800, 0x00000001)
  216. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGRA5551)
  217. |
  218. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000F800, 0x000007E0, 0x0000001F, 0x00000000)
  219. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB565)
  220. |
  221. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000F800, 0x000007E0, 0x0000001F, 0x00000000)
  222. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB565)
  223. |
  224. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000001F, 0x000007E0, 0x0000F800, 0x00000000)
  225. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGR565)
  226. |
  227. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000001F, 0x000007E0, 0x0000F800, 0x00000000)
  228. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGR565)
  229. |
  230. - SDL_CreateRGBSurface(e1, e2, e3, 24, 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000)
  231. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB24)
  232. |
  233. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 24, e4, 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000)
  234. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB24)
  235. |
  236. - SDL_CreateRGBSurface(e1, e2, e3, 24, 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000)
  237. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGR24)
  238. |
  239. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 24, e4, 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000)
  240. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGR24)
  241. |
  242. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000)
  243. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB888)
  244. |
  245. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000)
  246. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB888)
  247. |
  248. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x00000000)
  249. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGBX8888)
  250. |
  251. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x00000000)
  252. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGBX8888)
  253. |
  254. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000)
  255. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGR888)
  256. |
  257. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000)
  258. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGR888)
  259. |
  260. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x0000FF00, 0x00FF0000, 0xFF000000, 0x00000000)
  261. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGRX8888)
  262. |
  263. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x0000FF00, 0x00FF0000, 0xFF000000, 0x00000000)
  264. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGRX8888)
  265. |
  266. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000)
  267. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ARGB8888)
  268. |
  269. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000)
  270. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ARGB8888)
  271. |
  272. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF)
  273. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGBA8888)
  274. |
  275. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF)
  276. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGBA8888)
  277. |
  278. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000)
  279. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ABGR8888)
  280. |
  281. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000)
  282. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ABGR8888)
  283. |
  284. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x0000FF00, 0x00FF0000, 0xFF000000, 0x000000FF)
  285. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGRA8888)
  286. |
  287. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x0000FF00, 0x00FF0000, 0xFF000000, 0x000000FF)
  288. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGRA8888)
  289. |
  290. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x3FF00000, 0x000FFC00, 0x000003FF, 0xC0000000)
  291. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ARGB2101010)
  292. |
  293. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x3FF00000, 0x000FFC00, 0x000003FF, 0xC0000000)
  294. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ARGB2101010)
  295. |
  296. // End Generated
  297. - SDL_CreateRGBSurface(e1, e2, e3, e4->BitsPerPixel, e4->Rmask, e4->Gmask, e4->Bmask, e4->Amask)
  298. + SDL_CreateSurface(e2, e3, e4->format)
  299. |
  300. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, e4->BitsPerPixel, e5, e4->Rmask, e4->Gmask, e4->Bmask, e4->Amask)
  301. + SDL_CreateSurfaceFrom(e1, e2, e3, e5, e4->format)
  302. |
  303. -SDL_CreateRGBSurface(e1, e2, e3, e4, e5, e6, e7, e8)
  304. +SDL_CreateSurface(e2, e3, SDL_MasksToPixelFormatEnum(e4, e5, e6, e7, e8))
  305. |
  306. -SDL_CreateRGBSurfaceFrom(e1, e2, e3, e4, e5, e6, e7, e8, e9)
  307. +SDL_CreateSurfaceFrom(e1, e2, e3, e5, SDL_MasksToPixelFormatEnum(e4, e6, e7, e8, e9))
  308. )
  309. // Renaming of SDL_oldnames.h
  310. @@
  311. @@
  312. - SDL_AudioStreamAvailable
  313. + SDL_GetAudioStreamAvailable
  314. (...)
  315. @@
  316. @@
  317. - SDL_AudioStreamClear
  318. + SDL_ClearAudioStream
  319. (...)
  320. @@
  321. @@
  322. - SDL_AudioStreamFlush
  323. + SDL_FlushAudioStream
  324. (...)
  325. @@
  326. @@
  327. - SDL_AudioStreamGet
  328. + SDL_GetAudioStreamData
  329. (...)
  330. @@
  331. @@
  332. - SDL_AudioStreamPut
  333. + SDL_PutAudioStreamData
  334. (...)
  335. @@
  336. @@
  337. - SDL_FreeAudioStream
  338. + SDL_DestroyAudioStream
  339. (...)
  340. @@
  341. @@
  342. - SDL_FreeWAV
  343. + SDL_free
  344. (...)
  345. @@
  346. @@
  347. - SDL_NewAudioStream
  348. + SDL_CreateAudioStream
  349. (...)
  350. @@
  351. @@
  352. - SDL_CONTROLLERAXISMOTION
  353. + SDL_GAMEPADAXISMOTION
  354. @@
  355. @@
  356. - SDL_CONTROLLERBUTTONDOWN
  357. + SDL_GAMEPADBUTTONDOWN
  358. @@
  359. @@
  360. - SDL_CONTROLLERBUTTONUP
  361. + SDL_GAMEPADBUTTONUP
  362. @@
  363. @@
  364. - SDL_CONTROLLERDEVICEADDED
  365. + SDL_GAMEPADADDED
  366. @@
  367. @@
  368. - SDL_CONTROLLERDEVICEREMAPPED
  369. + SDL_GAMEPADREMAPPED
  370. @@
  371. @@
  372. - SDL_CONTROLLERDEVICEREMOVED
  373. + SDL_GAMEPADREMOVED
  374. @@
  375. @@
  376. - SDL_CONTROLLERSENSORUPDATE
  377. + SDL_GAMEPADSENSORUPDATE
  378. @@
  379. @@
  380. - SDL_CONTROLLERTOUCHPADDOWN
  381. + SDL_GAMEPADTOUCHPADDOWN
  382. @@
  383. @@
  384. - SDL_CONTROLLERTOUCHPADMOTION
  385. + SDL_GAMEPADTOUCHPADMOTION
  386. @@
  387. @@
  388. - SDL_CONTROLLERTOUCHPADUP
  389. + SDL_GAMEPADTOUCHPADUP
  390. @@
  391. @@
  392. - SDL_ControllerAxisEvent
  393. + SDL_GamepadAxisEvent
  394. (...)
  395. @@
  396. @@
  397. - SDL_ControllerButtonEvent
  398. + SDL_GamepadButtonEvent
  399. (...)
  400. @@
  401. @@
  402. - SDL_ControllerDeviceEvent
  403. + SDL_GamepadDeviceEvent
  404. (...)
  405. @@
  406. @@
  407. - SDL_ControllerSensorEvent
  408. + SDL_GamepadSensorEvent
  409. (...)
  410. @@
  411. @@
  412. - SDL_ControllerTouchpadEvent
  413. + SDL_GamepadTouchpadEvent
  414. (...)
  415. @@
  416. @@
  417. - SDL_CONTROLLER_AXIS_INVALID
  418. + SDL_GAMEPAD_AXIS_INVALID
  419. @@
  420. @@
  421. - SDL_CONTROLLER_AXIS_LEFTX
  422. + SDL_GAMEPAD_AXIS_LEFTX
  423. @@
  424. @@
  425. - SDL_CONTROLLER_AXIS_LEFTY
  426. + SDL_GAMEPAD_AXIS_LEFTY
  427. @@
  428. @@
  429. - SDL_CONTROLLER_AXIS_MAX
  430. + SDL_GAMEPAD_AXIS_MAX
  431. @@
  432. @@
  433. - SDL_CONTROLLER_AXIS_RIGHTX
  434. + SDL_GAMEPAD_AXIS_RIGHTX
  435. @@
  436. @@
  437. - SDL_CONTROLLER_AXIS_RIGHTY
  438. + SDL_GAMEPAD_AXIS_RIGHTY
  439. @@
  440. @@
  441. - SDL_CONTROLLER_AXIS_TRIGGERLEFT
  442. + SDL_GAMEPAD_AXIS_LEFT_TRIGGER
  443. @@
  444. @@
  445. - SDL_CONTROLLER_AXIS_TRIGGERRIGHT
  446. + SDL_GAMEPAD_AXIS_RIGHT_TRIGGER
  447. @@
  448. @@
  449. - SDL_CONTROLLER_BINDTYPE_AXIS
  450. + SDL_GAMEPAD_BINDTYPE_AXIS
  451. @@
  452. @@
  453. - SDL_CONTROLLER_BINDTYPE_BUTTON
  454. + SDL_GAMEPAD_BINDTYPE_BUTTON
  455. @@
  456. @@
  457. - SDL_CONTROLLER_BINDTYPE_HAT
  458. + SDL_GAMEPAD_BINDTYPE_HAT
  459. @@
  460. @@
  461. - SDL_CONTROLLER_BINDTYPE_NONE
  462. + SDL_GAMEPAD_BINDTYPE_NONE
  463. @@
  464. @@
  465. - SDL_CONTROLLER_BUTTON_A
  466. + SDL_GAMEPAD_BUTTON_A
  467. @@
  468. @@
  469. - SDL_CONTROLLER_BUTTON_B
  470. + SDL_GAMEPAD_BUTTON_B
  471. @@
  472. @@
  473. - SDL_CONTROLLER_BUTTON_BACK
  474. + SDL_GAMEPAD_BUTTON_BACK
  475. @@
  476. @@
  477. - SDL_CONTROLLER_BUTTON_DPAD_DOWN
  478. + SDL_GAMEPAD_BUTTON_DPAD_DOWN
  479. @@
  480. @@
  481. - SDL_CONTROLLER_BUTTON_DPAD_LEFT
  482. + SDL_GAMEPAD_BUTTON_DPAD_LEFT
  483. @@
  484. @@
  485. - SDL_CONTROLLER_BUTTON_DPAD_RIGHT
  486. + SDL_GAMEPAD_BUTTON_DPAD_RIGHT
  487. @@
  488. @@
  489. - SDL_CONTROLLER_BUTTON_DPAD_UP
  490. + SDL_GAMEPAD_BUTTON_DPAD_UP
  491. @@
  492. @@
  493. - SDL_CONTROLLER_BUTTON_GUIDE
  494. + SDL_GAMEPAD_BUTTON_GUIDE
  495. @@
  496. @@
  497. - SDL_CONTROLLER_BUTTON_INVALID
  498. + SDL_GAMEPAD_BUTTON_INVALID
  499. @@
  500. @@
  501. - SDL_CONTROLLER_BUTTON_LEFTSHOULDER
  502. + SDL_GAMEPAD_BUTTON_LEFT_SHOULDER
  503. @@
  504. @@
  505. - SDL_CONTROLLER_BUTTON_LEFTSTICK
  506. + SDL_GAMEPAD_BUTTON_LEFT_STICK
  507. @@
  508. @@
  509. - SDL_CONTROLLER_BUTTON_MAX
  510. + SDL_GAMEPAD_BUTTON_MAX
  511. @@
  512. @@
  513. - SDL_CONTROLLER_BUTTON_MISC1
  514. + SDL_GAMEPAD_BUTTON_MISC1
  515. @@
  516. @@
  517. - SDL_CONTROLLER_BUTTON_PADDLE1
  518. + SDL_GAMEPAD_BUTTON_PADDLE1
  519. @@
  520. @@
  521. - SDL_CONTROLLER_BUTTON_PADDLE2
  522. + SDL_GAMEPAD_BUTTON_PADDLE2
  523. @@
  524. @@
  525. - SDL_CONTROLLER_BUTTON_PADDLE3
  526. + SDL_GAMEPAD_BUTTON_PADDLE3
  527. @@
  528. @@
  529. - SDL_CONTROLLER_BUTTON_PADDLE4
  530. + SDL_GAMEPAD_BUTTON_PADDLE4
  531. @@
  532. @@
  533. - SDL_CONTROLLER_BUTTON_RIGHTSHOULDER
  534. + SDL_GAMEPAD_BUTTON_RIGHT_SHOULDER
  535. @@
  536. @@
  537. - SDL_CONTROLLER_BUTTON_RIGHTSTICK
  538. + SDL_GAMEPAD_BUTTON_RIGHT_STICK
  539. @@
  540. @@
  541. - SDL_CONTROLLER_BUTTON_START
  542. + SDL_GAMEPAD_BUTTON_START
  543. @@
  544. @@
  545. - SDL_CONTROLLER_BUTTON_TOUCHPAD
  546. + SDL_GAMEPAD_BUTTON_TOUCHPAD
  547. @@
  548. @@
  549. - SDL_CONTROLLER_BUTTON_X
  550. + SDL_GAMEPAD_BUTTON_X
  551. @@
  552. @@
  553. - SDL_CONTROLLER_BUTTON_Y
  554. + SDL_GAMEPAD_BUTTON_Y
  555. @@
  556. @@
  557. - SDL_CONTROLLER_TYPE_AMAZON_LUNA
  558. + SDL_GAMEPAD_TYPE_AMAZON_LUNA
  559. @@
  560. @@
  561. - SDL_CONTROLLER_TYPE_GOOGLE_STADIA
  562. + SDL_GAMEPAD_TYPE_GOOGLE_STADIA
  563. @@
  564. @@
  565. - SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT
  566. + SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_LEFT
  567. @@
  568. @@
  569. - SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_PAIR
  570. + SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_PAIR
  571. @@
  572. @@
  573. - SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT
  574. + SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT
  575. @@
  576. @@
  577. - SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO
  578. + SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_PRO
  579. @@
  580. @@
  581. - SDL_CONTROLLER_TYPE_NVIDIA_SHIELD
  582. + SDL_GAMEPAD_TYPE_NVIDIA_SHIELD
  583. @@
  584. @@
  585. - SDL_CONTROLLER_TYPE_PS3
  586. + SDL_GAMEPAD_TYPE_PS3
  587. @@
  588. @@
  589. - SDL_CONTROLLER_TYPE_PS4
  590. + SDL_GAMEPAD_TYPE_PS4
  591. @@
  592. @@
  593. - SDL_CONTROLLER_TYPE_PS5
  594. + SDL_GAMEPAD_TYPE_PS5
  595. @@
  596. @@
  597. - SDL_CONTROLLER_TYPE_UNKNOWN
  598. + SDL_GAMEPAD_TYPE_UNKNOWN
  599. @@
  600. @@
  601. - SDL_CONTROLLER_TYPE_VIRTUAL
  602. + SDL_GAMEPAD_TYPE_VIRTUAL
  603. @@
  604. @@
  605. - SDL_CONTROLLER_TYPE_XBOX360
  606. + SDL_GAMEPAD_TYPE_XBOX360
  607. @@
  608. @@
  609. - SDL_CONTROLLER_TYPE_XBOXONE
  610. + SDL_GAMEPAD_TYPE_XBOXONE
  611. @@
  612. @@
  613. - SDL_GameController
  614. + SDL_Gamepad
  615. (...)
  616. @@
  617. @@
  618. - SDL_GameControllerAddMapping
  619. + SDL_AddGamepadMapping
  620. (...)
  621. @@
  622. @@
  623. - SDL_GameControllerAddMappingsFromFile
  624. + SDL_AddGamepadMappingsFromFile
  625. (...)
  626. @@
  627. @@
  628. - SDL_GameControllerAddMappingsFromRW
  629. + SDL_AddGamepadMappingsFromRW
  630. (...)
  631. @@
  632. @@
  633. - SDL_GameControllerAxis
  634. + SDL_GamepadAxis
  635. (...)
  636. @@
  637. @@
  638. - SDL_GameControllerBindType
  639. + SDL_GamepadBindingType
  640. (...)
  641. @@
  642. @@
  643. - SDL_GameControllerButton
  644. + SDL_GamepadButton
  645. (...)
  646. @@
  647. @@
  648. - SDL_GameControllerButtonBind
  649. + SDL_GamepadBinding
  650. (...)
  651. @@
  652. @@
  653. - SDL_GameControllerClose
  654. + SDL_CloseGamepad
  655. (...)
  656. @@
  657. @@
  658. - SDL_GameControllerFromInstanceID
  659. + SDL_GetGamepadFromInstanceID
  660. (...)
  661. @@
  662. @@
  663. - SDL_GameControllerFromPlayerIndex
  664. + SDL_GetGamepadFromPlayerIndex
  665. (...)
  666. @@
  667. @@
  668. - SDL_GameControllerGetAppleSFSymbolsNameForAxis
  669. + SDL_GetGamepadAppleSFSymbolsNameForAxis
  670. (...)
  671. @@
  672. @@
  673. - SDL_GameControllerGetAppleSFSymbolsNameForButton
  674. + SDL_GetGamepadAppleSFSymbolsNameForButton
  675. (...)
  676. @@
  677. @@
  678. - SDL_GameControllerGetAttached
  679. + SDL_GamepadConnected
  680. (...)
  681. @@
  682. @@
  683. - SDL_GameControllerGetAxis
  684. + SDL_GetGamepadAxis
  685. (...)
  686. @@
  687. @@
  688. - SDL_GameControllerGetAxisFromString
  689. + SDL_GetGamepadAxisFromString
  690. (...)
  691. @@
  692. @@
  693. - SDL_GameControllerGetBindForAxis
  694. + SDL_GetGamepadBindForAxis
  695. (...)
  696. @@
  697. @@
  698. - SDL_GameControllerGetBindForButton
  699. + SDL_GetGamepadBindForButton
  700. (...)
  701. @@
  702. @@
  703. - SDL_GameControllerGetButton
  704. + SDL_GetGamepadButton
  705. (...)
  706. @@
  707. @@
  708. - SDL_GameControllerGetButtonFromString
  709. + SDL_GetGamepadButtonFromString
  710. (...)
  711. @@
  712. @@
  713. - SDL_GameControllerGetFirmwareVersion
  714. + SDL_GetGamepadFirmwareVersion
  715. (...)
  716. @@
  717. @@
  718. - SDL_GameControllerGetJoystick
  719. + SDL_GetGamepadJoystick
  720. (...)
  721. @@
  722. @@
  723. - SDL_GameControllerGetNumTouchpadFingers
  724. + SDL_GetGamepadNumTouchpadFingers
  725. (...)
  726. @@
  727. @@
  728. - SDL_GameControllerGetNumTouchpads
  729. + SDL_GetGamepadNumTouchpads
  730. (...)
  731. @@
  732. @@
  733. - SDL_GameControllerGetPlayerIndex
  734. + SDL_GetGamepadPlayerIndex
  735. (...)
  736. @@
  737. @@
  738. - SDL_GameControllerGetProduct
  739. + SDL_GetGamepadProduct
  740. (...)
  741. @@
  742. @@
  743. - SDL_GameControllerGetProductVersion
  744. + SDL_GetGamepadProductVersion
  745. (...)
  746. @@
  747. @@
  748. - SDL_GameControllerGetSensorData
  749. + SDL_GetGamepadSensorData
  750. (...)
  751. @@
  752. @@
  753. - SDL_GameControllerGetSensorDataRate
  754. + SDL_GetGamepadSensorDataRate
  755. (...)
  756. @@
  757. @@
  758. - SDL_GameControllerGetSerial
  759. + SDL_GetGamepadSerial
  760. (...)
  761. @@
  762. @@
  763. - SDL_GameControllerGetStringForAxis
  764. + SDL_GetGamepadStringForAxis
  765. (...)
  766. @@
  767. @@
  768. - SDL_GameControllerGetStringForButton
  769. + SDL_GetGamepadStringForButton
  770. (...)
  771. @@
  772. @@
  773. - SDL_GameControllerGetTouchpadFinger
  774. + SDL_GetGamepadTouchpadFinger
  775. (...)
  776. @@
  777. @@
  778. - SDL_GameControllerGetType
  779. + SDL_GetGamepadType
  780. (...)
  781. @@
  782. @@
  783. - SDL_GameControllerGetVendor
  784. + SDL_GetGamepadVendor
  785. (...)
  786. @@
  787. @@
  788. - SDL_GameControllerHasAxis
  789. + SDL_GamepadHasAxis
  790. (...)
  791. @@
  792. @@
  793. - SDL_GameControllerHasButton
  794. + SDL_GamepadHasButton
  795. (...)
  796. @@
  797. @@
  798. - SDL_GameControllerHasLED
  799. + SDL_GamepadHasLED
  800. (...)
  801. @@
  802. @@
  803. - SDL_GameControllerHasRumble
  804. + SDL_GamepadHasRumble
  805. (...)
  806. @@
  807. @@
  808. - SDL_GameControllerHasRumbleTriggers
  809. + SDL_GamepadHasRumbleTriggers
  810. (...)
  811. @@
  812. @@
  813. - SDL_GameControllerHasSensor
  814. + SDL_GamepadHasSensor
  815. (...)
  816. @@
  817. @@
  818. - SDL_GameControllerIsSensorEnabled
  819. + SDL_GamepadSensorEnabled
  820. (...)
  821. @@
  822. @@
  823. - SDL_GameControllerMapping
  824. + SDL_GetGamepadMapping
  825. (...)
  826. @@
  827. @@
  828. - SDL_GameControllerMappingForDeviceIndex
  829. + SDL_GetGamepadMappingForDeviceIndex
  830. (...)
  831. @@
  832. @@
  833. - SDL_GameControllerMappingForGUID
  834. + SDL_GetGamepadMappingForGUID
  835. (...)
  836. @@
  837. @@
  838. - SDL_GameControllerMappingForIndex
  839. + SDL_GetGamepadMappingForIndex
  840. (...)
  841. @@
  842. @@
  843. - SDL_GameControllerName
  844. + SDL_GetGamepadName
  845. (...)
  846. @@
  847. @@
  848. - SDL_GameControllerNumMappings
  849. + SDL_GetNumGamepadMappings
  850. (...)
  851. @@
  852. @@
  853. - SDL_GameControllerOpen
  854. + SDL_OpenGamepad
  855. (...)
  856. @@
  857. @@
  858. - SDL_GameControllerPath
  859. + SDL_GetGamepadPath
  860. (...)
  861. @@
  862. @@
  863. - SDL_GameControllerRumble
  864. + SDL_RumbleGamepad
  865. (...)
  866. @@
  867. @@
  868. - SDL_GameControllerRumbleTriggers
  869. + SDL_RumbleGamepadTriggers
  870. (...)
  871. @@
  872. @@
  873. - SDL_GameControllerSendEffect
  874. + SDL_SendGamepadEffect
  875. (...)
  876. @@
  877. @@
  878. - SDL_GameControllerSetLED
  879. + SDL_SetGamepadLED
  880. (...)
  881. @@
  882. @@
  883. - SDL_GameControllerSetPlayerIndex
  884. + SDL_SetGamepadPlayerIndex
  885. (...)
  886. @@
  887. @@
  888. - SDL_GameControllerSetSensorEnabled
  889. + SDL_SetGamepadSensorEnabled
  890. (...)
  891. @@
  892. @@
  893. - SDL_GameControllerType
  894. + SDL_GamepadType
  895. (...)
  896. @@
  897. @@
  898. - SDL_GameControllerUpdate
  899. + SDL_UpdateGamepads
  900. (...)
  901. @@
  902. @@
  903. - SDL_INIT_GAMECONTROLLER
  904. + SDL_INIT_GAMEPAD
  905. @@
  906. @@
  907. - SDL_IsGameController
  908. + SDL_IsGamepad
  909. (...)
  910. @@
  911. @@
  912. - SDL_JOYSTICK_TYPE_GAMECONTROLLER
  913. + SDL_JOYSTICK_TYPE_GAMEPAD
  914. @@
  915. @@
  916. - SDL_JoystickAttachVirtual
  917. + SDL_AttachVirtualJoystick
  918. (...)
  919. @@
  920. @@
  921. - SDL_JoystickAttachVirtualEx
  922. + SDL_AttachVirtualJoystickEx
  923. (...)
  924. @@
  925. @@
  926. - SDL_JoystickClose
  927. + SDL_CloseJoystick
  928. (...)
  929. @@
  930. @@
  931. - SDL_JoystickCurrentPowerLevel
  932. + SDL_GetJoystickPowerLevel
  933. (...)
  934. @@
  935. @@
  936. - SDL_JoystickDetachVirtual
  937. + SDL_DetachVirtualJoystick
  938. (...)
  939. @@
  940. @@
  941. - SDL_JoystickFromInstanceID
  942. + SDL_GetJoystickFromInstanceID
  943. (...)
  944. @@
  945. @@
  946. - SDL_JoystickFromPlayerIndex
  947. + SDL_GetJoystickFromPlayerIndex
  948. (...)
  949. @@
  950. @@
  951. - SDL_JoystickGetAttached
  952. + SDL_JoystickConnected
  953. (...)
  954. @@
  955. @@
  956. - SDL_JoystickGetAxis
  957. + SDL_GetJoystickAxis
  958. (...)
  959. @@
  960. @@
  961. - SDL_JoystickGetAxisInitialState
  962. + SDL_GetJoystickAxisInitialState
  963. (...)
  964. @@
  965. @@
  966. - SDL_JoystickGetButton
  967. + SDL_GetJoystickButton
  968. (...)
  969. @@
  970. @@
  971. - SDL_JoystickGetFirmwareVersion
  972. + SDL_GetJoystickFirmwareVersion
  973. (...)
  974. @@
  975. @@
  976. - SDL_JoystickGetGUID
  977. + SDL_GetJoystickGUID
  978. (...)
  979. @@
  980. @@
  981. - SDL_JoystickGetGUIDFromString
  982. + SDL_GetJoystickGUIDFromString
  983. (...)
  984. @@
  985. @@
  986. - SDL_JoystickGetGUIDString
  987. + SDL_GetJoystickGUIDString
  988. (...)
  989. @@
  990. @@
  991. - SDL_JoystickGetHat
  992. + SDL_GetJoystickHat
  993. (...)
  994. @@
  995. @@
  996. - SDL_JoystickGetPlayerIndex
  997. + SDL_GetJoystickPlayerIndex
  998. (...)
  999. @@
  1000. @@
  1001. - SDL_JoystickGetProduct
  1002. + SDL_GetJoystickProduct
  1003. (...)
  1004. @@
  1005. @@
  1006. - SDL_JoystickGetProductVersion
  1007. + SDL_GetJoystickProductVersion
  1008. (...)
  1009. @@
  1010. @@
  1011. - SDL_JoystickGetSerial
  1012. + SDL_GetJoystickSerial
  1013. (...)
  1014. @@
  1015. @@
  1016. - SDL_JoystickGetType
  1017. + SDL_GetJoystickType
  1018. (...)
  1019. @@
  1020. @@
  1021. - SDL_JoystickGetVendor
  1022. + SDL_GetJoystickVendor
  1023. (...)
  1024. @@
  1025. @@
  1026. - SDL_JoystickInstanceID
  1027. + SDL_GetJoystickInstanceID
  1028. (...)
  1029. @@
  1030. @@
  1031. - SDL_JoystickIsVirtual
  1032. + SDL_IsJoystickVirtual
  1033. (...)
  1034. @@
  1035. @@
  1036. - SDL_JoystickName
  1037. + SDL_GetJoystickName
  1038. (...)
  1039. @@
  1040. @@
  1041. - SDL_JoystickNumAxes
  1042. + SDL_GetNumJoystickAxes
  1043. (...)
  1044. @@
  1045. @@
  1046. - SDL_JoystickNumButtons
  1047. + SDL_GetNumJoystickButtons
  1048. (...)
  1049. @@
  1050. @@
  1051. - SDL_JoystickNumHats
  1052. + SDL_GetNumJoystickHats
  1053. (...)
  1054. @@
  1055. @@
  1056. - SDL_JoystickOpen
  1057. + SDL_OpenJoystick
  1058. (...)
  1059. @@
  1060. @@
  1061. - SDL_JoystickPath
  1062. + SDL_GetJoystickPath
  1063. (...)
  1064. @@
  1065. @@
  1066. - SDL_JoystickRumble
  1067. + SDL_RumbleJoystick
  1068. (...)
  1069. @@
  1070. @@
  1071. - SDL_JoystickRumbleTriggers
  1072. + SDL_RumbleJoystickTriggers
  1073. (...)
  1074. @@
  1075. @@
  1076. - SDL_JoystickSendEffect
  1077. + SDL_SendJoystickEffect
  1078. (...)
  1079. @@
  1080. @@
  1081. - SDL_JoystickSetLED
  1082. + SDL_SetJoystickLED
  1083. (...)
  1084. @@
  1085. @@
  1086. - SDL_JoystickSetPlayerIndex
  1087. + SDL_SetJoystickPlayerIndex
  1088. (...)
  1089. @@
  1090. @@
  1091. - SDL_JoystickSetVirtualAxis
  1092. + SDL_SetJoystickVirtualAxis
  1093. (...)
  1094. @@
  1095. @@
  1096. - SDL_JoystickSetVirtualButton
  1097. + SDL_SetJoystickVirtualButton
  1098. (...)
  1099. @@
  1100. @@
  1101. - SDL_JoystickSetVirtualHat
  1102. + SDL_SetJoystickVirtualHat
  1103. (...)
  1104. @@
  1105. @@
  1106. - SDL_JoystickUpdate
  1107. + SDL_UpdateJoysticks
  1108. (...)
  1109. @@
  1110. @@
  1111. - SDL_IsScreenKeyboardShown
  1112. + SDL_ScreenKeyboardShown
  1113. (...)
  1114. @@
  1115. @@
  1116. - SDL_IsTextInputActive
  1117. + SDL_TextInputActive
  1118. (...)
  1119. @@
  1120. @@
  1121. - SDL_IsTextInputShown
  1122. + SDL_TextInputShown
  1123. (...)
  1124. @@
  1125. @@
  1126. - KMOD_ALT
  1127. + SDL_KMOD_ALT
  1128. @@
  1129. @@
  1130. - KMOD_CAPS
  1131. + SDL_KMOD_CAPS
  1132. @@
  1133. @@
  1134. - KMOD_CTRL
  1135. + SDL_KMOD_CTRL
  1136. @@
  1137. @@
  1138. - KMOD_GUI
  1139. + SDL_KMOD_GUI
  1140. @@
  1141. @@
  1142. - KMOD_LALT
  1143. + SDL_KMOD_LALT
  1144. @@
  1145. @@
  1146. - KMOD_LCTRL
  1147. + SDL_KMOD_LCTRL
  1148. @@
  1149. @@
  1150. - KMOD_LGUI
  1151. + SDL_KMOD_LGUI
  1152. @@
  1153. @@
  1154. - KMOD_LSHIFT
  1155. + SDL_KMOD_LSHIFT
  1156. @@
  1157. @@
  1158. - KMOD_MODE
  1159. + SDL_KMOD_MODE
  1160. @@
  1161. @@
  1162. - KMOD_NONE
  1163. + SDL_KMOD_NONE
  1164. @@
  1165. @@
  1166. - KMOD_NUM
  1167. + SDL_KMOD_NUM
  1168. @@
  1169. @@
  1170. - KMOD_RALT
  1171. + SDL_KMOD_RALT
  1172. @@
  1173. @@
  1174. - KMOD_RCTRL
  1175. + SDL_KMOD_RCTRL
  1176. @@
  1177. @@
  1178. - KMOD_RESERVED
  1179. + SDL_KMOD_RESERVED
  1180. @@
  1181. @@
  1182. - KMOD_RGUI
  1183. + SDL_KMOD_RGUI
  1184. @@
  1185. @@
  1186. - KMOD_RSHIFT
  1187. + SDL_KMOD_RSHIFT
  1188. @@
  1189. @@
  1190. - KMOD_SCROLL
  1191. + SDL_KMOD_SCROLL
  1192. @@
  1193. @@
  1194. - KMOD_SHIFT
  1195. + SDL_KMOD_SHIFT
  1196. @@
  1197. @@
  1198. - SDL_FreeCursor
  1199. + SDL_DestroyCursor
  1200. (...)
  1201. @@
  1202. @@
  1203. - SDL_AllocFormat
  1204. + SDL_CreatePixelFormat
  1205. (...)
  1206. @@
  1207. @@
  1208. - SDL_AllocPalette
  1209. + SDL_CreatePalette
  1210. (...)
  1211. @@
  1212. @@
  1213. - SDL_FreeFormat
  1214. + SDL_DestroyPixelFormat
  1215. (...)
  1216. @@
  1217. @@
  1218. - SDL_FreePalette
  1219. + SDL_DestroyPalette
  1220. (...)
  1221. @@
  1222. @@
  1223. - SDL_MasksToPixelFormatEnum
  1224. + SDL_GetPixelFormatEnumForMasks
  1225. (...)
  1226. @@
  1227. @@
  1228. - SDL_PixelFormatEnumToMasks
  1229. + SDL_GetMasksForPixelFormatEnum
  1230. (...)
  1231. @@
  1232. @@
  1233. - SDL_EncloseFPoints
  1234. + SDL_GetRectEnclosingPointsFloat
  1235. (...)
  1236. @@
  1237. @@
  1238. - SDL_EnclosePoints
  1239. + SDL_GetRectEnclosingPoints
  1240. (...)
  1241. @@
  1242. @@
  1243. - SDL_FRectEmpty
  1244. + SDL_RectEmptyFloat
  1245. (...)
  1246. @@
  1247. @@
  1248. - SDL_FRectEquals
  1249. + SDL_RectsEqualFloat
  1250. (...)
  1251. @@
  1252. @@
  1253. - SDL_FRectEqualsEpsilon
  1254. + SDL_RectsEqualEpsilon
  1255. (...)
  1256. @@
  1257. @@
  1258. - SDL_HasIntersection
  1259. + SDL_HasRectIntersection
  1260. (...)
  1261. @@
  1262. @@
  1263. - SDL_HasIntersectionF
  1264. + SDL_HasRectIntersectionFloat
  1265. (...)
  1266. @@
  1267. @@
  1268. - SDL_IntersectFRect
  1269. + SDL_GetRectIntersectionFloat
  1270. (...)
  1271. @@
  1272. @@
  1273. - SDL_IntersectFRectAndLine
  1274. + SDL_GetRectAndLineIntersectionFloat
  1275. (...)
  1276. @@
  1277. @@
  1278. - SDL_IntersectRect
  1279. + SDL_GetRectIntersection
  1280. (...)
  1281. @@
  1282. @@
  1283. - SDL_IntersectRectAndLine
  1284. + SDL_GetRectAndLineIntersection
  1285. (...)
  1286. @@
  1287. @@
  1288. - SDL_PointInFRect
  1289. + SDL_PointInRectFloat
  1290. (...)
  1291. @@
  1292. @@
  1293. - SDL_RectEquals
  1294. + SDL_RectsEqual
  1295. (...)
  1296. @@
  1297. @@
  1298. - SDL_UnionFRect
  1299. + SDL_GetRectUnionFloat
  1300. (...)
  1301. @@
  1302. @@
  1303. - SDL_UnionRect
  1304. + SDL_GetRectUnion
  1305. (...)
  1306. @@
  1307. @@
  1308. - SDL_RenderCopyExF
  1309. + SDL_RenderTextureRotated
  1310. (...)
  1311. @@
  1312. @@
  1313. - SDL_RenderCopyF
  1314. + SDL_RenderTexture
  1315. (...)
  1316. @@
  1317. @@
  1318. - SDL_RenderDrawLineF
  1319. + SDL_RenderLine
  1320. (...)
  1321. @@
  1322. @@
  1323. - SDL_RenderDrawLinesF
  1324. + SDL_RenderLines
  1325. (...)
  1326. @@
  1327. @@
  1328. - SDL_RenderDrawPointF
  1329. + SDL_RenderPoint
  1330. (...)
  1331. @@
  1332. @@
  1333. - SDL_RenderDrawPointsF
  1334. + SDL_RenderPoints
  1335. (...)
  1336. @@
  1337. @@
  1338. - SDL_RenderDrawRectF
  1339. + SDL_RenderRect
  1340. (...)
  1341. @@
  1342. @@
  1343. - SDL_RenderDrawRectsF
  1344. + SDL_RenderRects
  1345. (...)
  1346. @@
  1347. @@
  1348. - SDL_RenderFillRectF
  1349. + SDL_RenderFillRect
  1350. (...)
  1351. @@
  1352. @@
  1353. - SDL_RenderFillRectsF
  1354. + SDL_RenderFillRects
  1355. (...)
  1356. @@
  1357. @@
  1358. - SDL_RenderGetClipRect
  1359. + SDL_GetRenderClipRect
  1360. (...)
  1361. @@
  1362. @@
  1363. - SDL_RenderGetIntegerScale
  1364. + SDL_GetRenderIntegerScale
  1365. (...)
  1366. @@
  1367. @@
  1368. - SDL_RenderGetLogicalSize
  1369. + SDL_GetRenderLogicalSize
  1370. (...)
  1371. @@
  1372. @@
  1373. - SDL_RenderGetMetalCommandEncoder
  1374. + SDL_GetRenderMetalCommandEncoder
  1375. (...)
  1376. @@
  1377. @@
  1378. - SDL_RenderGetMetalLayer
  1379. + SDL_GetRenderMetalLayer
  1380. (...)
  1381. @@
  1382. @@
  1383. - SDL_RenderGetScale
  1384. + SDL_GetRenderScale
  1385. (...)
  1386. @@
  1387. @@
  1388. - SDL_RenderGetViewport
  1389. + SDL_GetRenderViewport
  1390. (...)
  1391. @@
  1392. @@
  1393. - SDL_RenderGetWindow
  1394. + SDL_GetRenderWindow
  1395. (...)
  1396. @@
  1397. @@
  1398. - SDL_RenderIsClipEnabled
  1399. + SDL_RenderClipEnabled
  1400. (...)
  1401. @@
  1402. @@
  1403. - SDL_RenderSetClipRect
  1404. + SDL_SetRenderClipRect
  1405. (...)
  1406. @@
  1407. @@
  1408. - SDL_RenderSetIntegerScale
  1409. + SDL_SetRenderIntegerScale
  1410. (...)
  1411. @@
  1412. @@
  1413. - SDL_RenderSetLogicalSize
  1414. + SDL_SetRenderLogicalSize
  1415. (...)
  1416. @@
  1417. @@
  1418. - SDL_RenderSetScale
  1419. + SDL_SetRenderScale
  1420. (...)
  1421. @@
  1422. @@
  1423. - SDL_RenderSetVSync
  1424. + SDL_SetRenderVSync
  1425. (...)
  1426. @@
  1427. @@
  1428. - SDL_RenderSetViewport
  1429. + SDL_SetRenderViewport
  1430. (...)
  1431. @@
  1432. @@
  1433. - RW_SEEK_CUR
  1434. + SDL_RW_SEEK_CUR
  1435. @@
  1436. @@
  1437. - RW_SEEK_END
  1438. + SDL_RW_SEEK_END
  1439. @@
  1440. @@
  1441. - RW_SEEK_SET
  1442. + SDL_RW_SEEK_SET
  1443. @@
  1444. @@
  1445. - SDL_AllocRW
  1446. + SDL_CreateRW
  1447. (...)
  1448. @@
  1449. @@
  1450. - SDL_FreeRW
  1451. + SDL_DestroyRW
  1452. (...)
  1453. @@
  1454. @@
  1455. - SDL_SensorClose
  1456. + SDL_CloseSensor
  1457. (...)
  1458. @@
  1459. @@
  1460. - SDL_SensorFromInstanceID
  1461. + SDL_GetSensorFromInstanceID
  1462. (...)
  1463. @@
  1464. @@
  1465. - SDL_SensorGetData
  1466. + SDL_GetSensorData
  1467. (...)
  1468. @@
  1469. @@
  1470. - SDL_SensorGetInstanceID
  1471. + SDL_GetSensorInstanceID
  1472. (...)
  1473. @@
  1474. @@
  1475. - SDL_SensorGetName
  1476. + SDL_GetSensorName
  1477. (...)
  1478. @@
  1479. @@
  1480. - SDL_SensorGetNonPortableType
  1481. + SDL_GetSensorNonPortableType
  1482. (...)
  1483. @@
  1484. @@
  1485. - SDL_SensorGetType
  1486. + SDL_GetSensorType
  1487. (...)
  1488. @@
  1489. @@
  1490. - SDL_SensorOpen
  1491. + SDL_OpenSensor
  1492. (...)
  1493. @@
  1494. @@
  1495. - SDL_SensorUpdate
  1496. + SDL_UpdateSensors
  1497. (...)
  1498. @@
  1499. @@
  1500. - SDL_FillRect
  1501. + SDL_FillSurfaceRect
  1502. (...)
  1503. @@
  1504. @@
  1505. - SDL_FillRects
  1506. + SDL_FillSurfaceRects
  1507. (...)
  1508. @@
  1509. @@
  1510. - SDL_FreeSurface
  1511. + SDL_DestroySurface
  1512. (...)
  1513. @@
  1514. @@
  1515. - SDL_GetClipRect
  1516. + SDL_GetSurfaceClipRect
  1517. (...)
  1518. @@
  1519. @@
  1520. - SDL_GetColorKey
  1521. + SDL_GetSurfaceColorKey
  1522. (...)
  1523. @@
  1524. @@
  1525. - SDL_HasColorKey
  1526. + SDL_SurfaceHasColorKey
  1527. (...)
  1528. @@
  1529. @@
  1530. - SDL_HasSurfaceRLE
  1531. + SDL_SurfaceHasRLE
  1532. (...)
  1533. @@
  1534. @@
  1535. - SDL_LowerBlit
  1536. + SDL_BlitSurfaceUnchecked
  1537. (...)
  1538. @@
  1539. @@
  1540. - SDL_LowerBlitScaled
  1541. + SDL_BlitSurfaceUncheckedScaled
  1542. (...)
  1543. @@
  1544. @@
  1545. - SDL_SetClipRect
  1546. + SDL_SetSurfaceClipRect
  1547. (...)
  1548. @@
  1549. @@
  1550. - SDL_SetColorKey
  1551. + SDL_SetSurfaceColorKey
  1552. (...)
  1553. @@
  1554. @@
  1555. - SDL_UpperBlit
  1556. + SDL_BlitSurface
  1557. (...)
  1558. @@
  1559. @@
  1560. - SDL_UpperBlitScaled
  1561. + SDL_BlitSurfaceScaled
  1562. (...)
  1563. @@
  1564. @@
  1565. - SDL_RenderGetD3D11Device
  1566. + SDL_GetRenderD3D11Device
  1567. (...)
  1568. @@
  1569. @@
  1570. - SDL_RenderGetD3D9Device
  1571. + SDL_GetRenderD3D9Device
  1572. (...)
  1573. @@
  1574. @@
  1575. - SDL_GetTicks64
  1576. + SDL_GetTicks
  1577. (...)
  1578. @@
  1579. @@
  1580. - SDL_GetPointDisplayIndex
  1581. + SDL_GetDisplayIndexForPoint
  1582. (...)
  1583. @@
  1584. @@
  1585. - SDL_GetRectDisplayIndex
  1586. + SDL_GetDisplayIndexForRect
  1587. (...)