ruby2d 0.11.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. checksums.yaml +4 -4
  2. data/assets/include/SDL2/SDL.h +108 -14
  3. data/assets/include/SDL2/SDL_assert.h +81 -50
  4. data/assets/include/SDL2/SDL_atomic.h +135 -35
  5. data/assets/include/SDL2/SDL_audio.h +960 -355
  6. data/assets/include/SDL2/SDL_bits.h +11 -6
  7. data/assets/include/SDL2/SDL_blendmode.h +91 -14
  8. data/assets/include/SDL2/SDL_clipboard.h +30 -7
  9. data/assets/include/SDL2/SDL_config.h +3 -1
  10. data/assets/include/SDL2/SDL_config_android.h +11 -1
  11. data/assets/include/SDL2/SDL_config_emscripten.h +216 -0
  12. data/assets/include/SDL2/SDL_config_iphoneos.h +9 -1
  13. data/assets/include/SDL2/SDL_config_macosx.h +16 -2
  14. data/assets/include/SDL2/SDL_config_minimal.h +4 -1
  15. data/assets/include/SDL2/SDL_config_os2.h +37 -20
  16. data/assets/include/SDL2/SDL_config_pandora.h +6 -1
  17. data/assets/include/SDL2/SDL_config_psp.h +8 -8
  18. data/assets/include/SDL2/SDL_config_windows.h +39 -22
  19. data/assets/include/SDL2/SDL_config_winrt.h +23 -8
  20. data/assets/include/SDL2/SDL_config_wiz.h +6 -1
  21. data/assets/include/SDL2/SDL_copying.h +1 -1
  22. data/assets/include/SDL2/SDL_cpuinfo.h +331 -71
  23. data/assets/include/SDL2/SDL_egl.h +906 -280
  24. data/assets/include/SDL2/SDL_endian.h +101 -47
  25. data/assets/include/SDL2/SDL_error.h +70 -19
  26. data/assets/include/SDL2/SDL_events.h +387 -79
  27. data/assets/include/SDL2/SDL_filesystem.h +73 -64
  28. data/assets/include/SDL2/SDL_gamecontroller.h +585 -125
  29. data/assets/include/SDL2/SDL_gesture.h +36 -6
  30. data/assets/include/SDL2/SDL_haptic.h +304 -210
  31. data/assets/include/SDL2/SDL_hidapi.h +451 -0
  32. data/assets/include/SDL2/SDL_hints.h +1286 -897
  33. data/assets/include/SDL2/SDL_joystick.h +577 -130
  34. data/assets/include/SDL2/SDL_keyboard.h +162 -63
  35. data/assets/include/SDL2/SDL_keycode.h +7 -5
  36. data/assets/include/SDL2/SDL_loadso.h +42 -8
  37. data/assets/include/SDL2/SDL_locale.h +34 -32
  38. data/assets/include/SDL2/SDL_log.h +212 -19
  39. data/assets/include/SDL2/SDL_main.h +72 -17
  40. data/assets/include/SDL2/SDL_messagebox.h +70 -23
  41. data/assets/include/SDL2/SDL_metal.h +27 -32
  42. data/assets/include/SDL2/SDL_misc.h +19 -15
  43. data/assets/include/SDL2/SDL_mouse.h +262 -110
  44. data/assets/include/SDL2/SDL_mutex.h +286 -66
  45. data/assets/include/SDL2/SDL_name.h +1 -1
  46. data/assets/include/SDL2/SDL_opengl.h +1 -1
  47. data/assets/include/SDL2/SDL_opengles.h +1 -1
  48. data/assets/include/SDL2/SDL_opengles2.h +2 -2
  49. data/assets/include/SDL2/SDL_pixels.h +199 -34
  50. data/assets/include/SDL2/SDL_platform.h +39 -2
  51. data/assets/include/SDL2/SDL_power.h +23 -10
  52. data/assets/include/SDL2/SDL_quit.h +1 -1
  53. data/assets/include/SDL2/SDL_rect.h +78 -28
  54. data/assets/include/SDL2/SDL_render.h +1204 -472
  55. data/assets/include/SDL2/SDL_revision.h +2 -2
  56. data/assets/include/SDL2/SDL_rwops.h +605 -33
  57. data/assets/include/SDL2/SDL_scancode.h +1 -1
  58. data/assets/include/SDL2/SDL_sensor.h +76 -42
  59. data/assets/include/SDL2/SDL_shape.h +38 -27
  60. data/assets/include/SDL2/SDL_stdinc.h +96 -24
  61. data/assets/include/SDL2/SDL_surface.h +571 -139
  62. data/assets/include/SDL2/SDL_system.h +339 -101
  63. data/assets/include/SDL2/SDL_syswm.h +50 -20
  64. data/assets/include/SDL2/SDL_test.h +1 -1
  65. data/assets/include/SDL2/SDL_test_assert.h +2 -2
  66. data/assets/include/SDL2/SDL_test_common.h +23 -6
  67. data/assets/include/SDL2/SDL_test_compare.h +1 -1
  68. data/assets/include/SDL2/SDL_test_crc32.h +1 -1
  69. data/assets/include/SDL2/SDL_test_font.h +3 -3
  70. data/assets/include/SDL2/SDL_test_fuzzer.h +28 -26
  71. data/assets/include/SDL2/SDL_test_harness.h +6 -6
  72. data/assets/include/SDL2/SDL_test_images.h +1 -1
  73. data/assets/include/SDL2/SDL_test_log.h +1 -1
  74. data/assets/include/SDL2/SDL_test_md5.h +1 -1
  75. data/assets/include/SDL2/SDL_test_memory.h +1 -1
  76. data/assets/include/SDL2/SDL_test_random.h +2 -2
  77. data/assets/include/SDL2/SDL_thread.h +226 -128
  78. data/assets/include/SDL2/SDL_timer.h +129 -22
  79. data/assets/include/SDL2/SDL_touch.h +48 -8
  80. data/assets/include/SDL2/SDL_ttf.h +102 -9
  81. data/assets/include/SDL2/SDL_types.h +1 -1
  82. data/assets/include/SDL2/SDL_version.h +72 -46
  83. data/assets/include/SDL2/SDL_video.h +1266 -460
  84. data/assets/include/SDL2/SDL_vulkan.h +100 -161
  85. data/assets/include/SDL2/begin_code.h +22 -1
  86. data/assets/include/SDL2/close_code.h +1 -1
  87. data/assets/include/mrbconf.h +234 -0
  88. data/assets/include/mruby/array.h +317 -0
  89. data/assets/include/mruby/boxing_nan.h +130 -0
  90. data/assets/include/mruby/boxing_no.h +58 -0
  91. data/assets/include/mruby/boxing_word.h +205 -0
  92. data/assets/include/mruby/class.h +108 -0
  93. data/assets/include/mruby/common.h +92 -0
  94. data/assets/include/mruby/compile.h +210 -0
  95. data/assets/include/mruby/data.h +76 -0
  96. data/assets/include/mruby/debug.h +66 -0
  97. data/assets/include/mruby/dump.h +158 -0
  98. data/assets/include/mruby/endian.h +44 -0
  99. data/assets/include/mruby/error.h +137 -0
  100. data/assets/include/mruby/gc.h +92 -0
  101. data/assets/include/mruby/hash.h +242 -0
  102. data/assets/include/mruby/irep.h +147 -0
  103. data/assets/include/mruby/istruct.h +50 -0
  104. data/assets/include/mruby/khash.h +284 -0
  105. data/assets/include/mruby/numeric.h +169 -0
  106. data/assets/include/mruby/object.h +43 -0
  107. data/assets/include/mruby/opcode.h +43 -0
  108. data/assets/include/mruby/ops.h +122 -0
  109. data/assets/include/mruby/presym/disable.h +70 -0
  110. data/assets/include/mruby/presym/enable.h +37 -0
  111. data/assets/include/mruby/presym/scanning.h +73 -0
  112. data/assets/include/mruby/presym.h +40 -0
  113. data/assets/include/mruby/proc.h +209 -0
  114. data/assets/include/mruby/range.h +79 -0
  115. data/assets/include/mruby/re.h +16 -0
  116. data/assets/include/mruby/string.h +469 -0
  117. data/assets/include/mruby/throw.h +66 -0
  118. data/assets/include/mruby/value.h +400 -0
  119. data/assets/include/mruby/variable.h +140 -0
  120. data/assets/include/mruby/version.h +143 -0
  121. data/assets/include/mruby.h +1444 -0
  122. data/assets/macos/universal/bin/mrbc +0 -0
  123. data/assets/macos/universal/lib/libFLAC.a +0 -0
  124. data/assets/macos/universal/lib/libSDL2.a +0 -0
  125. data/assets/macos/universal/lib/libSDL2_image.a +0 -0
  126. data/assets/macos/{lib → universal/lib}/libSDL2_mixer.a +0 -0
  127. data/assets/macos/universal/lib/libSDL2_ttf.a +0 -0
  128. data/assets/macos/universal/lib/libfreetype.a +0 -0
  129. data/assets/macos/universal/lib/libgraphite2.a +0 -0
  130. data/assets/macos/universal/lib/libharfbuzz.a +0 -0
  131. data/assets/macos/universal/lib/libjpeg.a +0 -0
  132. data/assets/macos/{lib → universal/lib}/libmodplug.a +0 -0
  133. data/assets/macos/{lib → universal/lib}/libmpg123.a +0 -0
  134. data/assets/{mingw/lib/libSDL2.a → macos/universal/lib/libmruby.a} +0 -0
  135. data/assets/macos/{lib → universal/lib}/libogg.a +0 -0
  136. data/assets/macos/universal/lib/libpng16.a +0 -0
  137. data/assets/macos/universal/lib/libtiff.a +0 -0
  138. data/assets/macos/universal/lib/libvorbis.a +0 -0
  139. data/assets/macos/universal/lib/libvorbisfile.a +0 -0
  140. data/assets/macos/universal/lib/libwebp.a +0 -0
  141. data/assets/test_media/README.md +3 -0
  142. data/assets/test_media/bitstream_vera/COPYRIGHT.txt +124 -0
  143. data/assets/test_media/bitstream_vera/vera.ttf +0 -0
  144. data/assets/test_media/boom.png +0 -0
  145. data/assets/test_media/coin.png +0 -0
  146. data/assets/test_media/colors.png +0 -0
  147. data/assets/test_media/controller.png +0 -0
  148. data/assets/test_media/dial.wav +0 -0
  149. data/assets/test_media/hero.png +0 -0
  150. data/assets/test_media/image.bmp +0 -0
  151. data/assets/test_media/image.jpg +0 -0
  152. data/assets/test_media/image.png +0 -0
  153. data/assets/test_media/music.flac +0 -0
  154. data/assets/test_media/music.mp3 +0 -0
  155. data/assets/test_media/music.ogg +0 -0
  156. data/assets/test_media/music.wav +0 -0
  157. data/assets/test_media/originals/boom.pxm +0 -0
  158. data/assets/test_media/originals/coin.pxm +0 -0
  159. data/assets/test_media/originals/controller.sketch +0 -0
  160. data/assets/test_media/originals/hero.pxm +0 -0
  161. data/assets/test_media/originals/image.pxm +0 -0
  162. data/assets/test_media/originals/music.caf +0 -0
  163. data/assets/test_media/originals/texture_atlas.pxm +0 -0
  164. data/assets/test_media/rondo_alla_turka.ogg +0 -0
  165. data/assets/test_media/sound.flac +0 -0
  166. data/assets/test_media/sound.mp3 +0 -0
  167. data/assets/test_media/sound.ogg +0 -0
  168. data/assets/test_media/sound.wav +0 -0
  169. data/assets/test_media/sprite_sheet.png +0 -0
  170. data/assets/test_media/texture_atlas.png +0 -0
  171. data/assets/wasm/build_config.rb +13 -0
  172. data/assets/wasm/libmruby.a +0 -0
  173. data/assets/wasm/template.html +17 -0
  174. data/assets/windows/glew/README.md +10 -0
  175. data/assets/windows/glew/glew.h +23686 -0
  176. data/assets/{mingw/lib → windows/glew}/libglew32.a +0 -0
  177. data/assets/windows/mingw-w64-x86_64/bin/mrbc.exe +0 -0
  178. data/assets/windows/mingw-w64-x86_64/lib/libFLAC.a +0 -0
  179. data/assets/windows/mingw-w64-x86_64/lib/libLerc.a +0 -0
  180. data/assets/windows/mingw-w64-x86_64/lib/libSDL2.a +0 -0
  181. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_image.a +0 -0
  182. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_mixer.a +0 -0
  183. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_ttf.a +0 -0
  184. data/assets/windows/mingw-w64-x86_64/lib/libbrotlicommon.a +0 -0
  185. data/assets/windows/mingw-w64-x86_64/lib/libbrotlidec.a +0 -0
  186. data/assets/windows/mingw-w64-x86_64/lib/libbz2.a +0 -0
  187. data/assets/windows/mingw-w64-x86_64/lib/libdeflate.a +0 -0
  188. data/assets/windows/mingw-w64-x86_64/lib/libfreetype.a +0 -0
  189. data/assets/windows/mingw-w64-x86_64/lib/libglew32.a +0 -0
  190. data/assets/windows/mingw-w64-x86_64/lib/libgraphite2.a +0 -0
  191. data/assets/windows/mingw-w64-x86_64/lib/libharfbuzz.a +0 -0
  192. data/assets/windows/mingw-w64-x86_64/lib/libjbig.a +0 -0
  193. data/assets/windows/mingw-w64-x86_64/lib/libjpeg.a +0 -0
  194. data/assets/windows/mingw-w64-x86_64/lib/liblzma.a +0 -0
  195. data/assets/windows/mingw-w64-x86_64/lib/libmodplug.a +0 -0
  196. data/assets/windows/mingw-w64-x86_64/lib/libmpg123.a +0 -0
  197. data/assets/windows/mingw-w64-x86_64/lib/libmruby.a +0 -0
  198. data/assets/windows/mingw-w64-x86_64/lib/libogg.a +0 -0
  199. data/assets/windows/mingw-w64-x86_64/lib/libopus.a +0 -0
  200. data/assets/windows/mingw-w64-x86_64/lib/libopusfile.a +0 -0
  201. data/assets/windows/mingw-w64-x86_64/lib/libpng16.a +0 -0
  202. data/assets/windows/mingw-w64-x86_64/lib/libsndfile.a +0 -0
  203. data/assets/windows/mingw-w64-x86_64/lib/libssp.a +0 -0
  204. data/assets/windows/mingw-w64-x86_64/lib/libstdc++.a +0 -0
  205. data/assets/windows/mingw-w64-x86_64/lib/libtiff.a +0 -0
  206. data/assets/windows/mingw-w64-x86_64/lib/libvorbis.a +0 -0
  207. data/assets/windows/mingw-w64-x86_64/lib/libvorbisfile.a +0 -0
  208. data/assets/windows/mingw-w64-x86_64/lib/libwebp.a +0 -0
  209. data/assets/windows/mingw-w64-x86_64/lib/libz.a +0 -0
  210. data/assets/windows/mingw-w64-x86_64/lib/libzstd.a +0 -0
  211. data/assets/{ios → xcode/ios}/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -0
  212. data/assets/{ios → xcode/ios}/Assets.xcassets/Contents.json +0 -0
  213. data/assets/{ios → xcode/ios}/Base.lproj/LaunchScreen.storyboard +0 -0
  214. data/assets/{ios → xcode/ios}/Info.plist +0 -0
  215. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mrbconf.h +0 -0
  216. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/array.h +0 -0
  217. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_nan.h +0 -0
  218. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_no.h +0 -0
  219. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_word.h +0 -0
  220. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/class.h +0 -0
  221. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/common.h +0 -0
  222. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/compile.h +0 -0
  223. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/data.h +0 -0
  224. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/debug.h +0 -0
  225. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/dump.h +0 -0
  226. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/error.h +0 -0
  227. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/gc.h +0 -0
  228. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/hash.h +0 -0
  229. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/irep.h +0 -0
  230. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/istruct.h +0 -0
  231. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/khash.h +0 -0
  232. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/numeric.h +0 -0
  233. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/object.h +0 -0
  234. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/opcode.h +0 -0
  235. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/ops.h +0 -0
  236. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/proc.h +0 -0
  237. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/range.h +0 -0
  238. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/re.h +0 -0
  239. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/string.h +0 -0
  240. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/throw.h +0 -0
  241. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/value.h +0 -0
  242. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/variable.h +0 -0
  243. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/version.h +0 -0
  244. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby.h +0 -0
  245. data/assets/{ios → xcode/ios}/MRuby.framework/Info.plist +0 -0
  246. data/assets/{ios → xcode/ios}/MRuby.framework/MRuby +0 -0
  247. data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.pbxproj +0 -0
  248. data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
  249. data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
  250. data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint +0 -0
  251. data/assets/{ios → xcode/ios}/main.c +0 -0
  252. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +0 -0
  253. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json +0 -0
  254. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json +0 -0
  255. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +0 -0
  256. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json +0 -0
  257. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +0 -0
  258. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json +0 -0
  259. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +0 -0
  260. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json +0 -0
  261. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json +0 -0
  262. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +0 -0
  263. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json +0 -0
  264. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +0 -0
  265. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json +0 -0
  266. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json +0 -0
  267. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json +0 -0
  268. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json +0 -0
  269. data/assets/{tvos → xcode/tvos}/Assets.xcassets/Contents.json +0 -0
  270. data/assets/{tvos → xcode/tvos}/Assets.xcassets/LaunchImage.launchimage/Contents.json +0 -0
  271. data/assets/{tvos → xcode/tvos}/Info.plist +0 -0
  272. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mrbconf.h +0 -0
  273. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/array.h +0 -0
  274. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_nan.h +0 -0
  275. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_no.h +0 -0
  276. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_word.h +0 -0
  277. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/class.h +0 -0
  278. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/common.h +0 -0
  279. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/compile.h +0 -0
  280. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/data.h +0 -0
  281. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/debug.h +0 -0
  282. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/dump.h +0 -0
  283. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/error.h +0 -0
  284. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/gc.h +0 -0
  285. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/hash.h +0 -0
  286. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/irep.h +0 -0
  287. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/istruct.h +0 -0
  288. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/khash.h +0 -0
  289. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/numeric.h +0 -0
  290. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/object.h +0 -0
  291. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/opcode.h +0 -0
  292. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/ops.h +0 -0
  293. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/proc.h +0 -0
  294. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/range.h +0 -0
  295. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/re.h +0 -0
  296. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/string.h +0 -0
  297. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/throw.h +0 -0
  298. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/value.h +0 -0
  299. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/variable.h +0 -0
  300. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/version.h +0 -0
  301. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby.h +0 -0
  302. data/assets/{tvos → xcode/tvos}/MRuby.framework/Info.plist +0 -0
  303. data/assets/{tvos → xcode/tvos}/MRuby.framework/MRuby +0 -0
  304. data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.pbxproj +0 -0
  305. data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
  306. data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
  307. data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint +0 -0
  308. data/assets/{tvos → xcode/tvos}/main.c +0 -0
  309. data/bin/ruby2d +3 -4
  310. data/ext/ruby2d/extconf.rb +39 -25
  311. data/ext/ruby2d/gl.c +1 -1
  312. data/ext/ruby2d/gl3.c +0 -1
  313. data/ext/ruby2d/gles.c +137 -84
  314. data/ext/ruby2d/ruby2d.c +126 -32
  315. data/ext/ruby2d/ruby2d.h +53 -6
  316. data/ext/ruby2d/text.c +14 -1
  317. data/ext/ruby2d/window.c +253 -215
  318. data/lib/ruby2d/cli/build.rb +237 -59
  319. data/lib/ruby2d/cli/colorize.rb +5 -4
  320. data/lib/ruby2d/cli/platform.rb +17 -0
  321. data/lib/ruby2d/font.rb +7 -1
  322. data/lib/ruby2d/sprite.rb +7 -2
  323. data/lib/ruby2d/text.rb +1 -3
  324. data/lib/ruby2d/texture.rb +21 -21
  325. data/lib/ruby2d/tileset.rb +34 -33
  326. data/lib/ruby2d/version.rb +1 -1
  327. data/lib/ruby2d/vertices.rb +11 -6
  328. data/lib/ruby2d.rb +14 -20
  329. metadata +246 -152
  330. data/assets/README.md +0 -22
  331. data/assets/Rakefile +0 -85
  332. data/assets/macos/lib/libFLAC.a +0 -0
  333. data/assets/macos/lib/libSDL2.a +0 -0
  334. data/assets/macos/lib/libSDL2_image.a +0 -0
  335. data/assets/macos/lib/libSDL2_ttf.a +0 -0
  336. data/assets/macos/lib/libfreetype.a +0 -0
  337. data/assets/macos/lib/libjpeg.a +0 -0
  338. data/assets/macos/lib/libpng16.a +0 -0
  339. data/assets/macos/lib/libtiff.a +0 -0
  340. data/assets/macos/lib/libvorbis.a +0 -0
  341. data/assets/macos/lib/libvorbisfile.a +0 -0
  342. data/assets/macos/lib/libwebp.a +0 -0
  343. data/assets/mingw/bin/SDL2.dll +0 -0
  344. data/assets/mingw/bin/SDL2_image.dll +0 -0
  345. data/assets/mingw/bin/SDL2_mixer.dll +0 -0
  346. data/assets/mingw/bin/SDL2_ttf.dll +0 -0
  347. data/assets/mingw/bin/glew32.dll +0 -0
  348. data/assets/mingw/bin/libFLAC-8.dll +0 -0
  349. data/assets/mingw/bin/libfreetype-6.dll +0 -0
  350. data/assets/mingw/bin/libjpeg-9.dll +0 -0
  351. data/assets/mingw/bin/libmodplug-1.dll +0 -0
  352. data/assets/mingw/bin/libmpg123-0.dll +0 -0
  353. data/assets/mingw/bin/libogg-0.dll +0 -0
  354. data/assets/mingw/bin/libopus-0.dll +0 -0
  355. data/assets/mingw/bin/libopusfile-0.dll +0 -0
  356. data/assets/mingw/bin/libpng16-16.dll +0 -0
  357. data/assets/mingw/bin/libtiff-5.dll +0 -0
  358. data/assets/mingw/bin/libvorbis-0.dll +0 -0
  359. data/assets/mingw/bin/libvorbisfile-3.dll +0 -0
  360. data/assets/mingw/bin/libwebp-7.dll +0 -0
  361. data/assets/mingw/bin/zlib1.dll +0 -0
  362. data/assets/mingw/lib/libSDL2.dll.a +0 -0
  363. data/assets/mingw/lib/libSDL2_image.a +0 -0
  364. data/assets/mingw/lib/libSDL2_image.dll.a +0 -0
  365. data/assets/mingw/lib/libSDL2_mixer.a +0 -0
  366. data/assets/mingw/lib/libSDL2_mixer.dll.a +0 -0
  367. data/assets/mingw/lib/libSDL2_test.a +0 -0
  368. data/assets/mingw/lib/libSDL2_ttf.a +0 -0
  369. data/assets/mingw/lib/libSDL2_ttf.dll.a +0 -0
  370. data/assets/mingw/lib/libSDL2main.a +0 -0
  371. data/assets/mingw/lib/libglew32.dll.a +0 -0
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -98,6 +98,10 @@ typedef struct _UIViewController UIViewController;
98
98
  typedef Uint32 GLuint;
99
99
  #endif
100
100
 
101
+ #if defined(SDL_VIDEO_VULKAN) || defined(SDL_VIDEO_METAL)
102
+ #define SDL_METALVIEW_TAG 255
103
+ #endif
104
+
101
105
  #if defined(SDL_VIDEO_DRIVER_ANDROID)
102
106
  typedef struct ANativeWindow ANativeWindow;
103
107
  typedef void *EGLSurface;
@@ -113,6 +117,10 @@ typedef void *EGLSurface;
113
117
  #endif
114
118
  #endif /* SDL_PROTOTYPES_ONLY */
115
119
 
120
+ #if defined(SDL_VIDEO_DRIVER_KMSDRM)
121
+ struct gbm_device;
122
+ #endif
123
+
116
124
 
117
125
  #include "begin_code.h"
118
126
  /* Set up for C function definitions, even when using C++ */
@@ -138,7 +146,9 @@ typedef enum
138
146
  SDL_SYSWM_ANDROID,
139
147
  SDL_SYSWM_VIVANTE,
140
148
  SDL_SYSWM_OS2,
141
- SDL_SYSWM_HAIKU
149
+ SDL_SYSWM_HAIKU,
150
+ SDL_SYSWM_KMSDRM,
151
+ SDL_SYSWM_RISCOS
142
152
  } SDL_SYSWM_TYPE;
143
153
 
144
154
  /**
@@ -251,8 +261,12 @@ struct SDL_SysWMinfo
251
261
  #if defined(SDL_VIDEO_DRIVER_COCOA)
252
262
  struct
253
263
  {
254
- #if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
264
+ #if defined(__OBJC__) && defined(__has_feature)
265
+ #if __has_feature(objc_arc)
255
266
  NSWindow __unsafe_unretained *window; /**< The Cocoa window */
267
+ #else
268
+ NSWindow *window; /**< The Cocoa window */
269
+ #endif
256
270
  #else
257
271
  NSWindow *window; /**< The Cocoa window */
258
272
  #endif
@@ -261,8 +275,12 @@ struct SDL_SysWMinfo
261
275
  #if defined(SDL_VIDEO_DRIVER_UIKIT)
262
276
  struct
263
277
  {
264
- #if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
278
+ #if defined(__OBJC__) && defined(__has_feature)
279
+ #if __has_feature(objc_arc)
265
280
  UIWindow __unsafe_unretained *window; /**< The UIKit window */
281
+ #else
282
+ UIWindow *window; /**< The UIKit window */
283
+ #endif
266
284
  #else
267
285
  UIWindow *window; /**< The UIKit window */
268
286
  #endif
@@ -274,9 +292,12 @@ struct SDL_SysWMinfo
274
292
  #if defined(SDL_VIDEO_DRIVER_WAYLAND)
275
293
  struct
276
294
  {
277
- struct wl_display *display; /**< Wayland display */
278
- struct wl_surface *surface; /**< Wayland surface */
279
- struct wl_shell_surface *shell_surface; /**< Wayland shell_surface (window manager handle) */
295
+ struct wl_display *display; /**< Wayland display */
296
+ struct wl_surface *surface; /**< Wayland surface */
297
+ void *shell_surface; /**< DEPRECATED Wayland shell_surface (window manager handle) */
298
+ struct wl_egl_window *egl_window; /**< Wayland EGL window (native window) */
299
+ struct xdg_surface *xdg_surface; /**< Wayland xdg surface (window manager handle) */
300
+ struct xdg_toplevel *xdg_toplevel; /**< Wayland xdg toplevel role */
280
301
  } wl;
281
302
  #endif
282
303
  #if defined(SDL_VIDEO_DRIVER_MIR) /* no longer available, left for API/ABI compatibility. Remove in 2.1! */
@@ -311,6 +332,15 @@ struct SDL_SysWMinfo
311
332
  } vivante;
312
333
  #endif
313
334
 
335
+ #if defined(SDL_VIDEO_DRIVER_KMSDRM)
336
+ struct
337
+ {
338
+ int dev_index; /**< Device index (ex: the X in /dev/dri/cardX) */
339
+ int drm_fd; /**< DRM FD (unavailable on Vulkan windows) */
340
+ struct gbm_device *gbm_dev; /**< GBM device (unavailable on Vulkan windows) */
341
+ } kmsdrm;
342
+ #endif
343
+
314
344
  /* Make sure this union is always 64 bytes (8 64-bit pointers). */
315
345
  /* Be careful not to overflow this if you add a new target! */
316
346
  Uint8 dummy[64];
@@ -321,23 +351,23 @@ struct SDL_SysWMinfo
321
351
 
322
352
  typedef struct SDL_SysWMinfo SDL_SysWMinfo;
323
353
 
324
- /* Function prototypes */
354
+
325
355
  /**
326
- * \brief This function allows access to driver-dependent window information.
356
+ * Get driver-specific information about a window.
357
+ *
358
+ * You must include SDL_syswm.h for the declaration of SDL_SysWMinfo.
327
359
  *
328
- * \param window The window about which information is being requested
329
- * \param info This structure must be initialized with the SDL version, and is
330
- * then filled in with information about the given window.
360
+ * The caller must initialize the `info` structure's version by using
361
+ * `SDL_VERSION(&info.version)`, and then this function will fill in the rest
362
+ * of the structure with information about the given window.
331
363
  *
332
- * \return SDL_TRUE if the function is implemented and the version member of
333
- * the \c info struct is valid, SDL_FALSE otherwise.
364
+ * \param window the window about which information is being requested
365
+ * \param info an SDL_SysWMinfo structure filled in with window information
366
+ * \returns SDL_TRUE if the function is implemented and the `version` member
367
+ * of the `info` struct is valid, or SDL_FALSE if the information
368
+ * could not be retrieved; call SDL_GetError() for more information.
334
369
  *
335
- * You typically use this function like this:
336
- * \code
337
- * SDL_SysWMinfo info;
338
- * SDL_VERSION(&info.version);
339
- * if ( SDL_GetWindowWMInfo(window, &info) ) { ... }
340
- * \endcode
370
+ * \since This function is available since SDL 2.0.0.
341
371
  */
342
372
  extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowWMInfo(SDL_Window * window,
343
373
  SDL_SysWMinfo * info);
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -66,7 +66,7 @@ void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *as
66
66
  * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0).
67
67
  * \param assertDescription Message to log with the assert describing it.
68
68
  *
69
- * \returns Returns the assertCondition so it can be used to externally to break execution flow if desired.
69
+ * \returns the assertCondition so it can be used to externally to break execution flow if desired.
70
70
  */
71
71
  int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2);
72
72
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -37,6 +37,9 @@
37
37
  #if defined(__PSP__)
38
38
  #define DEFAULT_WINDOW_WIDTH 480
39
39
  #define DEFAULT_WINDOW_HEIGHT 272
40
+ #elif defined(__VITA__)
41
+ #define DEFAULT_WINDOW_WIDTH 960
42
+ #define DEFAULT_WINDOW_HEIGHT 544
40
43
  #else
41
44
  #define DEFAULT_WINDOW_WIDTH 640
42
45
  #define DEFAULT_WINDOW_HEIGHT 480
@@ -61,6 +64,7 @@ typedef struct
61
64
  const char *window_title;
62
65
  const char *window_icon;
63
66
  Uint32 window_flags;
67
+ SDL_bool flash_on_focus_loss;
64
68
  int window_x;
65
69
  int window_y;
66
70
  int window_w;
@@ -110,6 +114,10 @@ typedef struct
110
114
  int gl_minor_version;
111
115
  int gl_debug;
112
116
  int gl_profile_mask;
117
+
118
+ /* Additional fields added in 2.0.18 */
119
+ SDL_Rect confine;
120
+
113
121
  } SDLTest_CommonState;
114
122
 
115
123
  #include "begin_code.h"
@@ -126,7 +134,7 @@ extern "C" {
126
134
  * \param argv Array of command line parameters
127
135
  * \param flags Flags indicating which subsystem to initialize (i.e. SDL_INIT_VIDEO | SDL_INIT_AUDIO)
128
136
  *
129
- * \returns Returns a newly allocated common state object.
137
+ * \returns a newly allocated common state object.
130
138
  */
131
139
  SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, Uint32 flags);
132
140
 
@@ -136,7 +144,7 @@ SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, Uint32 flags);
136
144
  * \param state The common state describing the test window to create.
137
145
  * \param index The index of the argument to process in argv[].
138
146
  *
139
- * \returns The number of arguments processed (i.e. 1 for --fullscreen, 2 for --video [videodriver], or -1 on error.
147
+ * \returns the number of arguments processed (i.e. 1 for --fullscreen, 2 for --video [videodriver], or -1 on error.
140
148
  */
141
149
  int SDLTest_CommonArg(SDLTest_CommonState * state, int index);
142
150
 
@@ -164,7 +172,7 @@ void SDLTest_CommonLogUsage(SDLTest_CommonState * state, const char *argv0, cons
164
172
  * those strings' memory is freed and can no longer be used.
165
173
  *
166
174
  * \param state The common state describing the test window to create.
167
- * \returns String with usage information
175
+ * \returns a string with usage information
168
176
  */
169
177
  const char *SDLTest_CommonUsage(SDLTest_CommonState * state);
170
178
 
@@ -173,7 +181,7 @@ const char *SDLTest_CommonUsage(SDLTest_CommonState * state);
173
181
  *
174
182
  * \param state The common state describing the test window to create.
175
183
  *
176
- * \returns True if initialization succeeded, false otherwise
184
+ * \returns SDL_TRUE if initialization succeeded, false otherwise
177
185
  */
178
186
  SDL_bool SDLTest_CommonInit(SDLTest_CommonState * state);
179
187
 
@@ -184,7 +192,7 @@ SDL_bool SDLTest_CommonInit(SDLTest_CommonState * state);
184
192
  * \param argc argc, as supplied to SDL_main
185
193
  * \param argv argv, as supplied to SDL_main
186
194
  *
187
- * \returns False if app should quit, true otherwise.
195
+ * \returns SDL_FALSE if app should quit, true otherwise.
188
196
  */
189
197
  SDL_bool SDLTest_CommonDefaultArgs(SDLTest_CommonState * state, const int argc, char **argv);
190
198
 
@@ -206,6 +214,15 @@ void SDLTest_CommonEvent(SDLTest_CommonState * state, SDL_Event * event, int *do
206
214
  */
207
215
  void SDLTest_CommonQuit(SDLTest_CommonState * state);
208
216
 
217
+ /**
218
+ * \brief Draws various window information (position, size, etc.) to the renderer.
219
+ *
220
+ * \param renderer The renderer to draw to.
221
+ * \param window The window whose information should be displayed.
222
+ * \param usedHeight Returns the height used, so the caller can draw more below.
223
+ *
224
+ */
225
+ void SDLTest_CommonDrawWindowInfo(SDL_Renderer * renderer, SDL_Window * window, int * usedHeight);
209
226
 
210
227
  /* Ends C function definitions when using C++ */
211
228
  #ifdef __cplusplus
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -48,7 +48,7 @@ extern "C" {
48
48
  * \param y The Y coordinate of the upper left corner of the character.
49
49
  * \param c The character to draw.
50
50
  *
51
- * \returns Returns 0 on success, -1 on failure.
51
+ * \returns 0 on success, -1 on failure.
52
52
  */
53
53
  int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, char c);
54
54
 
@@ -60,7 +60,7 @@ int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, char c);
60
60
  * \param y The Y coordinate of the upper left corner of the string.
61
61
  * \param s The string to draw.
62
62
  *
63
- * \returns Returns 0 on success, -1 on failure.
63
+ * \returns 0 on success, -1 on failure.
64
64
  */
65
65
  int SDLTest_DrawString(SDL_Renderer *renderer, int x, int y, const char *s);
66
66
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -66,14 +66,14 @@ void SDLTest_FuzzerInit(Uint64 execKey);
66
66
  /**
67
67
  * Returns a random Uint8
68
68
  *
69
- * \returns Generated integer
69
+ * \returns a generated integer
70
70
  */
71
71
  Uint8 SDLTest_RandomUint8(void);
72
72
 
73
73
  /**
74
74
  * Returns a random Sint8
75
75
  *
76
- * \returns Generated signed integer
76
+ * \returns a generated signed integer
77
77
  */
78
78
  Sint8 SDLTest_RandomSint8(void);
79
79
 
@@ -81,14 +81,14 @@ Sint8 SDLTest_RandomSint8(void);
81
81
  /**
82
82
  * Returns a random Uint16
83
83
  *
84
- * \returns Generated integer
84
+ * \returns a generated integer
85
85
  */
86
86
  Uint16 SDLTest_RandomUint16(void);
87
87
 
88
88
  /**
89
89
  * Returns a random Sint16
90
90
  *
91
- * \returns Generated signed integer
91
+ * \returns a generated signed integer
92
92
  */
93
93
  Sint16 SDLTest_RandomSint16(void);
94
94
 
@@ -96,7 +96,7 @@ Sint16 SDLTest_RandomSint16(void);
96
96
  /**
97
97
  * Returns a random integer
98
98
  *
99
- * \returns Generated integer
99
+ * \returns a generated integer
100
100
  */
101
101
  Sint32 SDLTest_RandomSint32(void);
102
102
 
@@ -104,14 +104,14 @@ Sint32 SDLTest_RandomSint32(void);
104
104
  /**
105
105
  * Returns a random positive integer
106
106
  *
107
- * \returns Generated integer
107
+ * \returns a generated integer
108
108
  */
109
109
  Uint32 SDLTest_RandomUint32(void);
110
110
 
111
111
  /**
112
112
  * Returns random Uint64.
113
113
  *
114
- * \returns Generated integer
114
+ * \returns a generated integer
115
115
  */
116
116
  Uint64 SDLTest_RandomUint64(void);
117
117
 
@@ -119,28 +119,28 @@ Uint64 SDLTest_RandomUint64(void);
119
119
  /**
120
120
  * Returns random Sint64.
121
121
  *
122
- * \returns Generated signed integer
122
+ * \returns a generated signed integer
123
123
  */
124
124
  Sint64 SDLTest_RandomSint64(void);
125
125
 
126
126
  /**
127
- * \returns random float in range [0.0 - 1.0[
127
+ * \returns a random float in range [0.0 - 1.0]
128
128
  */
129
129
  float SDLTest_RandomUnitFloat(void);
130
130
 
131
131
  /**
132
- * \returns random double in range [0.0 - 1.0[
132
+ * \returns a random double in range [0.0 - 1.0]
133
133
  */
134
134
  double SDLTest_RandomUnitDouble(void);
135
135
 
136
136
  /**
137
- * \returns random float.
137
+ * \returns a random float.
138
138
  *
139
139
  */
140
140
  float SDLTest_RandomFloat(void);
141
141
 
142
142
  /**
143
- * \returns random double.
143
+ * \returns a random double.
144
144
  *
145
145
  */
146
146
  double SDLTest_RandomDouble(void);
@@ -162,7 +162,7 @@ double SDLTest_RandomDouble(void);
162
162
  * \param boundary2 Upper boundary limit
163
163
  * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
164
164
  *
165
- * \returns Random boundary value for the given range and domain or 0 with error set
165
+ * \returns a random boundary value for the given range and domain or 0 with error set
166
166
  */
167
167
  Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_bool validDomain);
168
168
 
@@ -183,7 +183,7 @@ Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_boo
183
183
  * \param boundary2 Upper boundary limit
184
184
  * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
185
185
  *
186
- * \returns Random boundary value for the given range and domain or 0 with error set
186
+ * \returns a random boundary value for the given range and domain or 0 with error set
187
187
  */
188
188
  Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL_bool validDomain);
189
189
 
@@ -204,7 +204,7 @@ Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL
204
204
  * \param boundary2 Upper boundary limit
205
205
  * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
206
206
  *
207
- * \returns Random boundary value for the given range and domain or 0 with error set
207
+ * \returns a random boundary value for the given range and domain or 0 with error set
208
208
  */
209
209
  Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL_bool validDomain);
210
210
 
@@ -225,7 +225,7 @@ Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL
225
225
  * \param boundary2 Upper boundary limit
226
226
  * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
227
227
  *
228
- * \returns Random boundary value for the given range and domain or 0 with error set
228
+ * \returns a random boundary value for the given range and domain or 0 with error set
229
229
  */
230
230
  Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain);
231
231
 
@@ -246,7 +246,7 @@ Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL
246
246
  * \param boundary2 Upper boundary limit
247
247
  * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
248
248
  *
249
- * \returns Random boundary value for the given range and domain or SINT8_MIN with error set
249
+ * \returns a random boundary value for the given range and domain or SINT8_MIN with error set
250
250
  */
251
251
  Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_bool validDomain);
252
252
 
@@ -268,7 +268,7 @@ Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_boo
268
268
  * \param boundary2 Upper boundary limit
269
269
  * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
270
270
  *
271
- * \returns Random boundary value for the given range and domain or SINT16_MIN with error set
271
+ * \returns a random boundary value for the given range and domain or SINT16_MIN with error set
272
272
  */
273
273
  Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain);
274
274
 
@@ -289,7 +289,7 @@ Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL
289
289
  * \param boundary2 Upper boundary limit
290
290
  * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
291
291
  *
292
- * \returns Random boundary value for the given range and domain or SINT32_MIN with error set
292
+ * \returns a random boundary value for the given range and domain or SINT32_MIN with error set
293
293
  */
294
294
  Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL_bool validDomain);
295
295
 
@@ -310,7 +310,7 @@ Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL
310
310
  * \param boundary2 Upper boundary limit
311
311
  * \param validDomain Should the generated boundary be valid (=within the bounds) or not?
312
312
  *
313
- * \returns Random boundary value for the given range and domain or SINT64_MIN with error set
313
+ * \returns a random boundary value for the given range and domain or SINT64_MIN with error set
314
314
  */
315
315
  Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain);
316
316
 
@@ -324,7 +324,7 @@ Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL
324
324
  * \param min Minimum inclusive value of returned random number
325
325
  * \param max Maximum inclusive value of returned random number
326
326
  *
327
- * \returns Generated random integer in range
327
+ * \returns a generated random integer in range
328
328
  */
329
329
  Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max);
330
330
 
@@ -336,7 +336,7 @@ Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max);
336
336
  *
337
337
  * Note: Returned string needs to be deallocated.
338
338
  *
339
- * \returns Newly allocated random string; or NULL if length was invalid or string could not be allocated.
339
+ * \returns a newly allocated random string; or NULL if length was invalid or string could not be allocated.
340
340
  */
341
341
  char * SDLTest_RandomAsciiString(void);
342
342
 
@@ -350,7 +350,7 @@ char * SDLTest_RandomAsciiString(void);
350
350
  *
351
351
  * \param maxLength The maximum length of the generated string.
352
352
  *
353
- * \returns Newly allocated random string; or NULL if maxLength was invalid or string could not be allocated.
353
+ * \returns a newly allocated random string; or NULL if maxLength was invalid or string could not be allocated.
354
354
  */
355
355
  char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength);
356
356
 
@@ -364,12 +364,14 @@ char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength);
364
364
  *
365
365
  * \param size The length of the generated string
366
366
  *
367
- * \returns Newly allocated random string; or NULL if size was invalid or string could not be allocated.
367
+ * \returns a newly allocated random string; or NULL if size was invalid or string could not be allocated.
368
368
  */
369
369
  char * SDLTest_RandomAsciiStringOfSize(int size);
370
370
 
371
371
  /**
372
- * Returns the invocation count for the fuzzer since last ...FuzzerInit.
372
+ * Get the invocation count for the fuzzer since last ...FuzzerInit.
373
+ *
374
+ * \returns the invocation count.
373
375
  */
374
376
  int SDLTest_GetFuzzerInvocationCount(void);
375
377
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -76,9 +76,9 @@ typedef struct SDLTest_TestCaseReference {
76
76
  /* !< Func2Stress */
77
77
  SDLTest_TestCaseFp testCase;
78
78
  /* !< Short name (or function name) "Func2Stress" */
79
- char *name;
79
+ const char *name;
80
80
  /* !< Long name or full description "This test pushes func2() to the limit." */
81
- char *description;
81
+ const char *description;
82
82
  /* !< Set to TEST_ENABLED or TEST_DISABLED (test won't be run) */
83
83
  int enabled;
84
84
  } SDLTest_TestCaseReference;
@@ -88,7 +88,7 @@ typedef struct SDLTest_TestCaseReference {
88
88
  */
89
89
  typedef struct SDLTest_TestSuiteReference {
90
90
  /* !< "PlatformSuite" */
91
- char *name;
91
+ const char *name;
92
92
  /* !< The function that is run before each test. NULL skips. */
93
93
  SDLTest_TestCaseSetUpFp testSetUp;
94
94
  /* !< The test cases that are run as part of the suite. Last item should be NULL. */
@@ -105,7 +105,7 @@ typedef struct SDLTest_TestSuiteReference {
105
105
  *
106
106
  * \param length The length of the seed string to generate
107
107
  *
108
- * \returns The generated seed string
108
+ * \returns the generated seed string
109
109
  */
110
110
  char *SDLTest_GenerateRunSeed(const int length);
111
111
 
@@ -118,7 +118,7 @@ char *SDLTest_GenerateRunSeed(const int length);
118
118
  * \param filter Filter specification. NULL disables. Case sensitive.
119
119
  * \param testIterations Number of iterations to run each test case.
120
120
  *
121
- * \returns Test run result; 0 when all tests passed, 1 if any tests failed.
121
+ * \returns the test run result: 0 when all tests passed, 1 if any tests failed.
122
122
  */
123
123
  int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *userRunSeed, Uint64 userExecKey, const char *filter, int testIterations);
124
124
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -98,7 +98,7 @@ extern "C" {
98
98
  *
99
99
  * \param rndContext pointer to context structure
100
100
  *
101
- * \returns A random number (32bit unsigned integer)
101
+ * \returns a random number (32bit unsigned integer)
102
102
  *
103
103
  */
104
104
  unsigned int SDLTest_Random(SDLTest_RandomContext *rndContext);