ruby2d 0.11.0 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (404) 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/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/libmruby.a +0 -0
  172. data/assets/wasm/template.html +64 -0
  173. data/assets/windows/glew/README.md +10 -0
  174. data/assets/windows/glew/glew.h +23686 -0
  175. data/assets/{mingw/lib → windows/glew}/libglew32.a +0 -0
  176. data/assets/windows/mingw-w64-ucrt-x86_64/bin/mrbc.exe +0 -0
  177. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libFLAC.a +0 -0
  178. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libLerc.a +0 -0
  179. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2.a +0 -0
  180. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_image.a +0 -0
  181. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_mixer.a +0 -0
  182. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_ttf.a +0 -0
  183. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlicommon.a +0 -0
  184. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlidec.a +0 -0
  185. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbz2.a +0 -0
  186. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libdeflate.a +0 -0
  187. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libfreetype.a +0 -0
  188. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libglew32.a +0 -0
  189. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libgraphite2.a +0 -0
  190. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libharfbuzz.a +0 -0
  191. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libjbig.a +0 -0
  192. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libjpeg.a +0 -0
  193. data/assets/windows/mingw-w64-ucrt-x86_64/lib/liblzma.a +0 -0
  194. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmodplug.a +0 -0
  195. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmpg123.a +0 -0
  196. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmruby.a +0 -0
  197. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libogg.a +0 -0
  198. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopus.a +0 -0
  199. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopusfile.a +0 -0
  200. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libpng16.a +0 -0
  201. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libsndfile.a +0 -0
  202. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libssp.a +0 -0
  203. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libstdc++.a +0 -0
  204. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libtiff.a +0 -0
  205. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbis.a +0 -0
  206. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbisfile.a +0 -0
  207. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libwebp.a +0 -0
  208. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libz.a +0 -0
  209. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libzstd.a +0 -0
  210. data/assets/windows/mingw-w64-x86_64/bin/mrbc.exe +0 -0
  211. data/assets/windows/mingw-w64-x86_64/lib/libFLAC.a +0 -0
  212. data/assets/windows/mingw-w64-x86_64/lib/libLerc.a +0 -0
  213. data/assets/windows/mingw-w64-x86_64/lib/libSDL2.a +0 -0
  214. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_image.a +0 -0
  215. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_mixer.a +0 -0
  216. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_ttf.a +0 -0
  217. data/assets/windows/mingw-w64-x86_64/lib/libbrotlicommon.a +0 -0
  218. data/assets/windows/mingw-w64-x86_64/lib/libbrotlidec.a +0 -0
  219. data/assets/windows/mingw-w64-x86_64/lib/libbz2.a +0 -0
  220. data/assets/windows/mingw-w64-x86_64/lib/libdeflate.a +0 -0
  221. data/assets/windows/mingw-w64-x86_64/lib/libfreetype.a +0 -0
  222. data/assets/windows/mingw-w64-x86_64/lib/libglew32.a +0 -0
  223. data/assets/windows/mingw-w64-x86_64/lib/libgraphite2.a +0 -0
  224. data/assets/windows/mingw-w64-x86_64/lib/libharfbuzz.a +0 -0
  225. data/assets/windows/mingw-w64-x86_64/lib/libjbig.a +0 -0
  226. data/assets/windows/mingw-w64-x86_64/lib/libjpeg.a +0 -0
  227. data/assets/windows/mingw-w64-x86_64/lib/liblzma.a +0 -0
  228. data/assets/windows/mingw-w64-x86_64/lib/libmodplug.a +0 -0
  229. data/assets/windows/mingw-w64-x86_64/lib/libmpg123.a +0 -0
  230. data/assets/windows/mingw-w64-x86_64/lib/libmruby.a +0 -0
  231. data/assets/windows/mingw-w64-x86_64/lib/libogg.a +0 -0
  232. data/assets/windows/mingw-w64-x86_64/lib/libopus.a +0 -0
  233. data/assets/windows/mingw-w64-x86_64/lib/libopusfile.a +0 -0
  234. data/assets/windows/mingw-w64-x86_64/lib/libpng16.a +0 -0
  235. data/assets/windows/mingw-w64-x86_64/lib/libsndfile.a +0 -0
  236. data/assets/windows/mingw-w64-x86_64/lib/libssp.a +0 -0
  237. data/assets/windows/mingw-w64-x86_64/lib/libstdc++.a +0 -0
  238. data/assets/windows/mingw-w64-x86_64/lib/libtiff.a +0 -0
  239. data/assets/windows/mingw-w64-x86_64/lib/libvorbis.a +0 -0
  240. data/assets/windows/mingw-w64-x86_64/lib/libvorbisfile.a +0 -0
  241. data/assets/windows/mingw-w64-x86_64/lib/libwebp.a +0 -0
  242. data/assets/windows/mingw-w64-x86_64/lib/libz.a +0 -0
  243. data/assets/windows/mingw-w64-x86_64/lib/libzstd.a +0 -0
  244. data/assets/{ios → xcode/ios}/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -0
  245. data/assets/{ios → xcode/ios}/Assets.xcassets/Contents.json +0 -0
  246. data/assets/{ios → xcode/ios}/Base.lproj/LaunchScreen.storyboard +0 -0
  247. data/assets/{ios → xcode/ios}/Info.plist +0 -0
  248. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mrbconf.h +0 -0
  249. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/array.h +0 -0
  250. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_nan.h +0 -0
  251. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_no.h +0 -0
  252. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_word.h +0 -0
  253. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/class.h +0 -0
  254. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/common.h +0 -0
  255. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/compile.h +0 -0
  256. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/data.h +0 -0
  257. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/debug.h +0 -0
  258. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/dump.h +0 -0
  259. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/error.h +0 -0
  260. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/gc.h +0 -0
  261. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/hash.h +0 -0
  262. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/irep.h +0 -0
  263. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/istruct.h +0 -0
  264. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/khash.h +0 -0
  265. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/numeric.h +0 -0
  266. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/object.h +0 -0
  267. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/opcode.h +0 -0
  268. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/ops.h +0 -0
  269. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/proc.h +0 -0
  270. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/range.h +0 -0
  271. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/re.h +0 -0
  272. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/string.h +0 -0
  273. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/throw.h +0 -0
  274. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/value.h +0 -0
  275. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/variable.h +0 -0
  276. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/version.h +0 -0
  277. data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby.h +0 -0
  278. data/assets/{ios → xcode/ios}/MRuby.framework/Info.plist +0 -0
  279. data/assets/{ios → xcode/ios}/MRuby.framework/MRuby +0 -0
  280. data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.pbxproj +0 -0
  281. data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
  282. data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
  283. data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint +0 -0
  284. data/assets/{ios → xcode/ios}/main.c +0 -0
  285. 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
  286. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json +0 -0
  287. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json +0 -0
  288. 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
  289. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json +0 -0
  290. 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
  291. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json +0 -0
  292. 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
  293. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json +0 -0
  294. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json +0 -0
  295. 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
  296. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json +0 -0
  297. 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
  298. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json +0 -0
  299. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json +0 -0
  300. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json +0 -0
  301. data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json +0 -0
  302. data/assets/{tvos → xcode/tvos}/Assets.xcassets/Contents.json +0 -0
  303. data/assets/{tvos → xcode/tvos}/Assets.xcassets/LaunchImage.launchimage/Contents.json +0 -0
  304. data/assets/{tvos → xcode/tvos}/Info.plist +0 -0
  305. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mrbconf.h +0 -0
  306. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/array.h +0 -0
  307. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_nan.h +0 -0
  308. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_no.h +0 -0
  309. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_word.h +0 -0
  310. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/class.h +0 -0
  311. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/common.h +0 -0
  312. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/compile.h +0 -0
  313. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/data.h +0 -0
  314. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/debug.h +0 -0
  315. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/dump.h +0 -0
  316. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/error.h +0 -0
  317. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/gc.h +0 -0
  318. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/hash.h +0 -0
  319. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/irep.h +0 -0
  320. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/istruct.h +0 -0
  321. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/khash.h +0 -0
  322. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/numeric.h +0 -0
  323. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/object.h +0 -0
  324. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/opcode.h +0 -0
  325. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/ops.h +0 -0
  326. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/proc.h +0 -0
  327. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/range.h +0 -0
  328. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/re.h +0 -0
  329. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/string.h +0 -0
  330. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/throw.h +0 -0
  331. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/value.h +0 -0
  332. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/variable.h +0 -0
  333. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/version.h +0 -0
  334. data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby.h +0 -0
  335. data/assets/{tvos → xcode/tvos}/MRuby.framework/Info.plist +0 -0
  336. data/assets/{tvos → xcode/tvos}/MRuby.framework/MRuby +0 -0
  337. data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.pbxproj +0 -0
  338. data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
  339. data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
  340. data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint +0 -0
  341. data/assets/{tvos → xcode/tvos}/main.c +0 -0
  342. data/bin/ruby2d +3 -4
  343. data/ext/ruby2d/extconf.rb +44 -25
  344. data/ext/ruby2d/gl.c +1 -1
  345. data/ext/ruby2d/gl3.c +0 -1
  346. data/ext/ruby2d/gles.c +137 -84
  347. data/ext/ruby2d/ruby2d.c +126 -32
  348. data/ext/ruby2d/ruby2d.h +53 -6
  349. data/ext/ruby2d/text.c +14 -1
  350. data/ext/ruby2d/window.c +253 -215
  351. data/lib/ruby2d/cli/build.rb +242 -59
  352. data/lib/ruby2d/cli/colorize.rb +5 -4
  353. data/lib/ruby2d/cli/platform.rb +17 -0
  354. data/lib/ruby2d/font.rb +7 -1
  355. data/lib/ruby2d/sprite.rb +7 -2
  356. data/lib/ruby2d/text.rb +1 -3
  357. data/lib/ruby2d/texture.rb +21 -21
  358. data/lib/ruby2d/tileset.rb +34 -33
  359. data/lib/ruby2d/version.rb +1 -1
  360. data/lib/ruby2d/vertices.rb +11 -6
  361. data/lib/ruby2d.rb +14 -20
  362. metadata +279 -151
  363. data/assets/README.md +0 -22
  364. data/assets/Rakefile +0 -85
  365. data/assets/macos/lib/libFLAC.a +0 -0
  366. data/assets/macos/lib/libSDL2.a +0 -0
  367. data/assets/macos/lib/libSDL2_image.a +0 -0
  368. data/assets/macos/lib/libSDL2_ttf.a +0 -0
  369. data/assets/macos/lib/libfreetype.a +0 -0
  370. data/assets/macos/lib/libjpeg.a +0 -0
  371. data/assets/macos/lib/libpng16.a +0 -0
  372. data/assets/macos/lib/libtiff.a +0 -0
  373. data/assets/macos/lib/libvorbis.a +0 -0
  374. data/assets/macos/lib/libvorbisfile.a +0 -0
  375. data/assets/macos/lib/libwebp.a +0 -0
  376. data/assets/mingw/bin/SDL2.dll +0 -0
  377. data/assets/mingw/bin/SDL2_image.dll +0 -0
  378. data/assets/mingw/bin/SDL2_mixer.dll +0 -0
  379. data/assets/mingw/bin/SDL2_ttf.dll +0 -0
  380. data/assets/mingw/bin/glew32.dll +0 -0
  381. data/assets/mingw/bin/libFLAC-8.dll +0 -0
  382. data/assets/mingw/bin/libfreetype-6.dll +0 -0
  383. data/assets/mingw/bin/libjpeg-9.dll +0 -0
  384. data/assets/mingw/bin/libmodplug-1.dll +0 -0
  385. data/assets/mingw/bin/libmpg123-0.dll +0 -0
  386. data/assets/mingw/bin/libogg-0.dll +0 -0
  387. data/assets/mingw/bin/libopus-0.dll +0 -0
  388. data/assets/mingw/bin/libopusfile-0.dll +0 -0
  389. data/assets/mingw/bin/libpng16-16.dll +0 -0
  390. data/assets/mingw/bin/libtiff-5.dll +0 -0
  391. data/assets/mingw/bin/libvorbis-0.dll +0 -0
  392. data/assets/mingw/bin/libvorbisfile-3.dll +0 -0
  393. data/assets/mingw/bin/libwebp-7.dll +0 -0
  394. data/assets/mingw/bin/zlib1.dll +0 -0
  395. data/assets/mingw/lib/libSDL2.dll.a +0 -0
  396. data/assets/mingw/lib/libSDL2_image.a +0 -0
  397. data/assets/mingw/lib/libSDL2_image.dll.a +0 -0
  398. data/assets/mingw/lib/libSDL2_mixer.a +0 -0
  399. data/assets/mingw/lib/libSDL2_mixer.dll.a +0 -0
  400. data/assets/mingw/lib/libSDL2_test.a +0 -0
  401. data/assets/mingw/lib/libSDL2_ttf.a +0 -0
  402. data/assets/mingw/lib/libSDL2_ttf.dll.a +0 -0
  403. data/assets/mingw/lib/libSDL2main.a +0 -0
  404. data/assets/mingw/lib/libglew32.dll.a +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby2d
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Black
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-07 00:00:00.000000000 Z
11
+ date: 2022-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.8'
19
+ version: '3.10'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.8'
26
+ version: '3.10'
27
27
  description: Make cross-platform 2D applications in Ruby
28
28
  email: tom@blacktm.com
29
29
  executables:
@@ -32,8 +32,6 @@ extensions:
32
32
  - ext/ruby2d/extconf.rb
33
33
  extra_rdoc_files: []
34
34
  files:
35
- - assets/README.md
36
- - assets/Rakefile
37
35
  - assets/app.icns
38
36
  - assets/include/SDL2/SDL.h
39
37
  - assets/include/SDL2/SDL_assert.h
@@ -44,6 +42,7 @@ files:
44
42
  - assets/include/SDL2/SDL_clipboard.h
45
43
  - assets/include/SDL2/SDL_config.h
46
44
  - assets/include/SDL2/SDL_config_android.h
45
+ - assets/include/SDL2/SDL_config_emscripten.h
47
46
  - assets/include/SDL2/SDL_config_iphoneos.h
48
47
  - assets/include/SDL2/SDL_config_macosx.h
49
48
  - assets/include/SDL2/SDL_config_minimal.h
@@ -63,6 +62,7 @@ files:
63
62
  - assets/include/SDL2/SDL_gamecontroller.h
64
63
  - assets/include/SDL2/SDL_gesture.h
65
64
  - assets/include/SDL2/SDL_haptic.h
65
+ - assets/include/SDL2/SDL_hidapi.h
66
66
  - assets/include/SDL2/SDL_hints.h
67
67
  - assets/include/SDL2/SDL_image.h
68
68
  - assets/include/SDL2/SDL_joystick.h
@@ -126,150 +126,277 @@ files:
126
126
  - assets/include/SDL2/begin_code.h
127
127
  - assets/include/SDL2/close_code.h
128
128
  - assets/include/glew.h
129
- - assets/ios/Assets.xcassets/AppIcon.appiconset/Contents.json
130
- - assets/ios/Assets.xcassets/Contents.json
131
- - assets/ios/Base.lproj/LaunchScreen.storyboard
132
- - assets/ios/Info.plist
133
- - assets/ios/MRuby.framework/Headers/mrbconf.h
134
- - assets/ios/MRuby.framework/Headers/mruby.h
135
- - assets/ios/MRuby.framework/Headers/mruby/array.h
136
- - assets/ios/MRuby.framework/Headers/mruby/boxing_nan.h
137
- - assets/ios/MRuby.framework/Headers/mruby/boxing_no.h
138
- - assets/ios/MRuby.framework/Headers/mruby/boxing_word.h
139
- - assets/ios/MRuby.framework/Headers/mruby/class.h
140
- - assets/ios/MRuby.framework/Headers/mruby/common.h
141
- - assets/ios/MRuby.framework/Headers/mruby/compile.h
142
- - assets/ios/MRuby.framework/Headers/mruby/data.h
143
- - assets/ios/MRuby.framework/Headers/mruby/debug.h
144
- - assets/ios/MRuby.framework/Headers/mruby/dump.h
145
- - assets/ios/MRuby.framework/Headers/mruby/error.h
146
- - assets/ios/MRuby.framework/Headers/mruby/gc.h
147
- - assets/ios/MRuby.framework/Headers/mruby/hash.h
148
- - assets/ios/MRuby.framework/Headers/mruby/irep.h
149
- - assets/ios/MRuby.framework/Headers/mruby/istruct.h
150
- - assets/ios/MRuby.framework/Headers/mruby/khash.h
151
- - assets/ios/MRuby.framework/Headers/mruby/numeric.h
152
- - assets/ios/MRuby.framework/Headers/mruby/object.h
153
- - assets/ios/MRuby.framework/Headers/mruby/opcode.h
154
- - assets/ios/MRuby.framework/Headers/mruby/ops.h
155
- - assets/ios/MRuby.framework/Headers/mruby/proc.h
156
- - assets/ios/MRuby.framework/Headers/mruby/range.h
157
- - assets/ios/MRuby.framework/Headers/mruby/re.h
158
- - assets/ios/MRuby.framework/Headers/mruby/string.h
159
- - assets/ios/MRuby.framework/Headers/mruby/throw.h
160
- - assets/ios/MRuby.framework/Headers/mruby/value.h
161
- - assets/ios/MRuby.framework/Headers/mruby/variable.h
162
- - assets/ios/MRuby.framework/Headers/mruby/version.h
163
- - assets/ios/MRuby.framework/Info.plist
164
- - assets/ios/MRuby.framework/MRuby
165
- - assets/ios/MyApp.xcodeproj/project.pbxproj
166
- - assets/ios/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
167
- - assets/ios/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
168
- - assets/ios/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint
169
- - assets/ios/main.c
170
- - assets/macos/lib/libFLAC.a
171
- - assets/macos/lib/libSDL2.a
172
- - assets/macos/lib/libSDL2_image.a
173
- - assets/macos/lib/libSDL2_mixer.a
174
- - assets/macos/lib/libSDL2_ttf.a
175
- - assets/macos/lib/libfreetype.a
176
- - assets/macos/lib/libjpeg.a
177
- - assets/macos/lib/libmpg123.a
178
- - assets/macos/lib/libogg.a
179
- - assets/macos/lib/libpng16.a
180
- - assets/macos/lib/libtiff.a
181
- - assets/macos/lib/libvorbis.a
182
- - assets/macos/lib/libvorbisfile.a
183
- - assets/macos/lib/libwebp.a
184
- - assets/mingw/bin/SDL2.dll
185
- - assets/mingw/bin/SDL2_image.dll
186
- - assets/mingw/bin/SDL2_mixer.dll
187
- - assets/mingw/bin/SDL2_ttf.dll
188
- - assets/mingw/bin/glew32.dll
189
- - assets/mingw/bin/libFLAC-8.dll
190
- - assets/mingw/bin/libfreetype-6.dll
191
- - assets/mingw/bin/libjpeg-9.dll
192
- - assets/mingw/bin/libmodplug-1.dll
193
- - assets/mingw/bin/libmpg123-0.dll
194
- - assets/mingw/bin/libogg-0.dll
195
- - assets/mingw/bin/libopus-0.dll
196
- - assets/mingw/bin/libopusfile-0.dll
197
- - assets/mingw/bin/libpng16-16.dll
198
- - assets/mingw/bin/libtiff-5.dll
199
- - assets/mingw/bin/libvorbis-0.dll
200
- - assets/mingw/bin/libvorbisfile-3.dll
201
- - assets/mingw/bin/libwebp-7.dll
202
- - assets/mingw/bin/zlib1.dll
203
- - assets/mingw/lib/libSDL2.a
204
- - assets/mingw/lib/libSDL2.dll.a
205
- - assets/mingw/lib/libSDL2_image.a
206
- - assets/mingw/lib/libSDL2_image.dll.a
207
- - assets/mingw/lib/libSDL2_mixer.a
208
- - assets/mingw/lib/libSDL2_mixer.dll.a
209
- - assets/mingw/lib/libSDL2_test.a
210
- - assets/mingw/lib/libSDL2_ttf.a
211
- - assets/mingw/lib/libSDL2_ttf.dll.a
212
- - assets/mingw/lib/libSDL2main.a
213
- - assets/mingw/lib/libglew32.a
214
- - assets/mingw/lib/libglew32.dll.a
215
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json
216
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json
217
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json
218
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json
219
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json
220
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json
221
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json
222
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json
223
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json
224
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json
225
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json
226
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json
227
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json
228
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json
229
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json
230
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image
231
- Wide.imageset/Contents.json
232
- - assets/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json
233
- - assets/tvos/Assets.xcassets/Contents.json
234
- - assets/tvos/Assets.xcassets/LaunchImage.launchimage/Contents.json
235
- - assets/tvos/Info.plist
236
- - assets/tvos/MRuby.framework/Headers/mrbconf.h
237
- - assets/tvos/MRuby.framework/Headers/mruby.h
238
- - assets/tvos/MRuby.framework/Headers/mruby/array.h
239
- - assets/tvos/MRuby.framework/Headers/mruby/boxing_nan.h
240
- - assets/tvos/MRuby.framework/Headers/mruby/boxing_no.h
241
- - assets/tvos/MRuby.framework/Headers/mruby/boxing_word.h
242
- - assets/tvos/MRuby.framework/Headers/mruby/class.h
243
- - assets/tvos/MRuby.framework/Headers/mruby/common.h
244
- - assets/tvos/MRuby.framework/Headers/mruby/compile.h
245
- - assets/tvos/MRuby.framework/Headers/mruby/data.h
246
- - assets/tvos/MRuby.framework/Headers/mruby/debug.h
247
- - assets/tvos/MRuby.framework/Headers/mruby/dump.h
248
- - assets/tvos/MRuby.framework/Headers/mruby/error.h
249
- - assets/tvos/MRuby.framework/Headers/mruby/gc.h
250
- - assets/tvos/MRuby.framework/Headers/mruby/hash.h
251
- - assets/tvos/MRuby.framework/Headers/mruby/irep.h
252
- - assets/tvos/MRuby.framework/Headers/mruby/istruct.h
253
- - assets/tvos/MRuby.framework/Headers/mruby/khash.h
254
- - assets/tvos/MRuby.framework/Headers/mruby/numeric.h
255
- - assets/tvos/MRuby.framework/Headers/mruby/object.h
256
- - assets/tvos/MRuby.framework/Headers/mruby/opcode.h
257
- - assets/tvos/MRuby.framework/Headers/mruby/ops.h
258
- - assets/tvos/MRuby.framework/Headers/mruby/proc.h
259
- - assets/tvos/MRuby.framework/Headers/mruby/range.h
260
- - assets/tvos/MRuby.framework/Headers/mruby/re.h
261
- - assets/tvos/MRuby.framework/Headers/mruby/string.h
262
- - assets/tvos/MRuby.framework/Headers/mruby/throw.h
263
- - assets/tvos/MRuby.framework/Headers/mruby/value.h
264
- - assets/tvos/MRuby.framework/Headers/mruby/variable.h
265
- - assets/tvos/MRuby.framework/Headers/mruby/version.h
266
- - assets/tvos/MRuby.framework/Info.plist
267
- - assets/tvos/MRuby.framework/MRuby
268
- - assets/tvos/MyApp.xcodeproj/project.pbxproj
269
- - assets/tvos/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
270
- - assets/tvos/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
271
- - assets/tvos/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint
272
- - assets/tvos/main.c
129
+ - assets/include/mrbconf.h
130
+ - assets/include/mruby.h
131
+ - assets/include/mruby/array.h
132
+ - assets/include/mruby/boxing_nan.h
133
+ - assets/include/mruby/boxing_no.h
134
+ - assets/include/mruby/boxing_word.h
135
+ - assets/include/mruby/class.h
136
+ - assets/include/mruby/common.h
137
+ - assets/include/mruby/compile.h
138
+ - assets/include/mruby/data.h
139
+ - assets/include/mruby/debug.h
140
+ - assets/include/mruby/dump.h
141
+ - assets/include/mruby/endian.h
142
+ - assets/include/mruby/error.h
143
+ - assets/include/mruby/gc.h
144
+ - assets/include/mruby/hash.h
145
+ - assets/include/mruby/irep.h
146
+ - assets/include/mruby/istruct.h
147
+ - assets/include/mruby/khash.h
148
+ - assets/include/mruby/numeric.h
149
+ - assets/include/mruby/object.h
150
+ - assets/include/mruby/opcode.h
151
+ - assets/include/mruby/ops.h
152
+ - assets/include/mruby/presym.h
153
+ - assets/include/mruby/presym/disable.h
154
+ - assets/include/mruby/presym/enable.h
155
+ - assets/include/mruby/presym/scanning.h
156
+ - assets/include/mruby/proc.h
157
+ - assets/include/mruby/range.h
158
+ - assets/include/mruby/re.h
159
+ - assets/include/mruby/string.h
160
+ - assets/include/mruby/throw.h
161
+ - assets/include/mruby/value.h
162
+ - assets/include/mruby/variable.h
163
+ - assets/include/mruby/version.h
164
+ - assets/macos/universal/bin/mrbc
165
+ - assets/macos/universal/lib/libFLAC.a
166
+ - assets/macos/universal/lib/libSDL2.a
167
+ - assets/macos/universal/lib/libSDL2_image.a
168
+ - assets/macos/universal/lib/libSDL2_mixer.a
169
+ - assets/macos/universal/lib/libSDL2_ttf.a
170
+ - assets/macos/universal/lib/libfreetype.a
171
+ - assets/macos/universal/lib/libgraphite2.a
172
+ - assets/macos/universal/lib/libharfbuzz.a
173
+ - assets/macos/universal/lib/libjpeg.a
174
+ - assets/macos/universal/lib/libmodplug.a
175
+ - assets/macos/universal/lib/libmpg123.a
176
+ - assets/macos/universal/lib/libmruby.a
177
+ - assets/macos/universal/lib/libogg.a
178
+ - assets/macos/universal/lib/libpng16.a
179
+ - assets/macos/universal/lib/libtiff.a
180
+ - assets/macos/universal/lib/libvorbis.a
181
+ - assets/macos/universal/lib/libvorbisfile.a
182
+ - assets/macos/universal/lib/libwebp.a
183
+ - assets/test_media/README.md
184
+ - assets/test_media/bitstream_vera/COPYRIGHT.txt
185
+ - assets/test_media/bitstream_vera/vera.ttf
186
+ - assets/test_media/boom.png
187
+ - assets/test_media/coin.png
188
+ - assets/test_media/colors.png
189
+ - assets/test_media/controller.png
190
+ - assets/test_media/dial.wav
191
+ - assets/test_media/hero.png
192
+ - assets/test_media/image.bmp
193
+ - assets/test_media/image.jpg
194
+ - assets/test_media/image.png
195
+ - assets/test_media/music.flac
196
+ - assets/test_media/music.mp3
197
+ - assets/test_media/music.ogg
198
+ - assets/test_media/music.wav
199
+ - assets/test_media/originals/boom.pxm
200
+ - assets/test_media/originals/coin.pxm
201
+ - assets/test_media/originals/controller.sketch
202
+ - assets/test_media/originals/hero.pxm
203
+ - assets/test_media/originals/image.pxm
204
+ - assets/test_media/originals/music.caf
205
+ - assets/test_media/originals/texture_atlas.pxm
206
+ - assets/test_media/rondo_alla_turka.ogg
207
+ - assets/test_media/sound.flac
208
+ - assets/test_media/sound.mp3
209
+ - assets/test_media/sound.ogg
210
+ - assets/test_media/sound.wav
211
+ - assets/test_media/sprite_sheet.png
212
+ - assets/test_media/texture_atlas.png
213
+ - assets/wasm/libmruby.a
214
+ - assets/wasm/template.html
215
+ - assets/windows/glew/README.md
216
+ - assets/windows/glew/glew.h
217
+ - assets/windows/glew/libglew32.a
218
+ - assets/windows/mingw-w64-ucrt-x86_64/bin/mrbc.exe
219
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libFLAC.a
220
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libLerc.a
221
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2.a
222
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_image.a
223
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_mixer.a
224
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_ttf.a
225
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlicommon.a
226
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlidec.a
227
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libbz2.a
228
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libdeflate.a
229
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libfreetype.a
230
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libglew32.a
231
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libgraphite2.a
232
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libharfbuzz.a
233
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libjbig.a
234
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libjpeg.a
235
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/liblzma.a
236
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libmodplug.a
237
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libmpg123.a
238
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libmruby.a
239
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libogg.a
240
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libopus.a
241
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libopusfile.a
242
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libpng16.a
243
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libsndfile.a
244
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libssp.a
245
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libstdc++.a
246
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libtiff.a
247
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbis.a
248
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbisfile.a
249
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libwebp.a
250
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libz.a
251
+ - assets/windows/mingw-w64-ucrt-x86_64/lib/libzstd.a
252
+ - assets/windows/mingw-w64-x86_64/bin/mrbc.exe
253
+ - assets/windows/mingw-w64-x86_64/lib/libFLAC.a
254
+ - assets/windows/mingw-w64-x86_64/lib/libLerc.a
255
+ - assets/windows/mingw-w64-x86_64/lib/libSDL2.a
256
+ - assets/windows/mingw-w64-x86_64/lib/libSDL2_image.a
257
+ - assets/windows/mingw-w64-x86_64/lib/libSDL2_mixer.a
258
+ - assets/windows/mingw-w64-x86_64/lib/libSDL2_ttf.a
259
+ - assets/windows/mingw-w64-x86_64/lib/libbrotlicommon.a
260
+ - assets/windows/mingw-w64-x86_64/lib/libbrotlidec.a
261
+ - assets/windows/mingw-w64-x86_64/lib/libbz2.a
262
+ - assets/windows/mingw-w64-x86_64/lib/libdeflate.a
263
+ - assets/windows/mingw-w64-x86_64/lib/libfreetype.a
264
+ - assets/windows/mingw-w64-x86_64/lib/libglew32.a
265
+ - assets/windows/mingw-w64-x86_64/lib/libgraphite2.a
266
+ - assets/windows/mingw-w64-x86_64/lib/libharfbuzz.a
267
+ - assets/windows/mingw-w64-x86_64/lib/libjbig.a
268
+ - assets/windows/mingw-w64-x86_64/lib/libjpeg.a
269
+ - assets/windows/mingw-w64-x86_64/lib/liblzma.a
270
+ - assets/windows/mingw-w64-x86_64/lib/libmodplug.a
271
+ - assets/windows/mingw-w64-x86_64/lib/libmpg123.a
272
+ - assets/windows/mingw-w64-x86_64/lib/libmruby.a
273
+ - assets/windows/mingw-w64-x86_64/lib/libogg.a
274
+ - assets/windows/mingw-w64-x86_64/lib/libopus.a
275
+ - assets/windows/mingw-w64-x86_64/lib/libopusfile.a
276
+ - assets/windows/mingw-w64-x86_64/lib/libpng16.a
277
+ - assets/windows/mingw-w64-x86_64/lib/libsndfile.a
278
+ - assets/windows/mingw-w64-x86_64/lib/libssp.a
279
+ - assets/windows/mingw-w64-x86_64/lib/libstdc++.a
280
+ - assets/windows/mingw-w64-x86_64/lib/libtiff.a
281
+ - assets/windows/mingw-w64-x86_64/lib/libvorbis.a
282
+ - assets/windows/mingw-w64-x86_64/lib/libvorbisfile.a
283
+ - assets/windows/mingw-w64-x86_64/lib/libwebp.a
284
+ - assets/windows/mingw-w64-x86_64/lib/libz.a
285
+ - assets/windows/mingw-w64-x86_64/lib/libzstd.a
286
+ - assets/xcode/ios/Assets.xcassets/AppIcon.appiconset/Contents.json
287
+ - assets/xcode/ios/Assets.xcassets/Contents.json
288
+ - assets/xcode/ios/Base.lproj/LaunchScreen.storyboard
289
+ - assets/xcode/ios/Info.plist
290
+ - assets/xcode/ios/MRuby.framework/Headers/mrbconf.h
291
+ - assets/xcode/ios/MRuby.framework/Headers/mruby.h
292
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/array.h
293
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/boxing_nan.h
294
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/boxing_no.h
295
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/boxing_word.h
296
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/class.h
297
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/common.h
298
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/compile.h
299
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/data.h
300
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/debug.h
301
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/dump.h
302
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/error.h
303
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/gc.h
304
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/hash.h
305
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/irep.h
306
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/istruct.h
307
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/khash.h
308
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/numeric.h
309
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/object.h
310
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/opcode.h
311
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/ops.h
312
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/proc.h
313
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/range.h
314
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/re.h
315
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/string.h
316
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/throw.h
317
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/value.h
318
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/variable.h
319
+ - assets/xcode/ios/MRuby.framework/Headers/mruby/version.h
320
+ - assets/xcode/ios/MRuby.framework/Info.plist
321
+ - assets/xcode/ios/MRuby.framework/MRuby
322
+ - assets/xcode/ios/MyApp.xcodeproj/project.pbxproj
323
+ - assets/xcode/ios/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
324
+ - assets/xcode/ios/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
325
+ - assets/xcode/ios/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint
326
+ - assets/xcode/ios/main.c
327
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
328
+ - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json
329
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
330
+ - Large.imagestack/Back.imagestacklayer/Contents.json
331
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
332
+ - Large.imagestack/Contents.json
333
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
334
+ - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json
335
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
336
+ - Large.imagestack/Front.imagestacklayer/Contents.json
337
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
338
+ - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json
339
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
340
+ - Large.imagestack/Middle.imagestacklayer/Contents.json
341
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
342
+ - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json
343
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
344
+ - Small.imagestack/Back.imagestacklayer/Contents.json
345
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
346
+ - Small.imagestack/Contents.json
347
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
348
+ - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json
349
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
350
+ - Small.imagestack/Front.imagestacklayer/Contents.json
351
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
352
+ - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json
353
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
354
+ - Small.imagestack/Middle.imagestacklayer/Contents.json
355
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json
356
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf
357
+ Image Wide.imageset/Contents.json
358
+ - assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf
359
+ Image.imageset/Contents.json
360
+ - assets/xcode/tvos/Assets.xcassets/Contents.json
361
+ - assets/xcode/tvos/Assets.xcassets/LaunchImage.launchimage/Contents.json
362
+ - assets/xcode/tvos/Info.plist
363
+ - assets/xcode/tvos/MRuby.framework/Headers/mrbconf.h
364
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby.h
365
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/array.h
366
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/boxing_nan.h
367
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/boxing_no.h
368
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/boxing_word.h
369
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/class.h
370
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/common.h
371
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/compile.h
372
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/data.h
373
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/debug.h
374
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/dump.h
375
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/error.h
376
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/gc.h
377
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/hash.h
378
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/irep.h
379
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/istruct.h
380
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/khash.h
381
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/numeric.h
382
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/object.h
383
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/opcode.h
384
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/ops.h
385
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/proc.h
386
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/range.h
387
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/re.h
388
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/string.h
389
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/throw.h
390
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/value.h
391
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/variable.h
392
+ - assets/xcode/tvos/MRuby.framework/Headers/mruby/version.h
393
+ - assets/xcode/tvos/MRuby.framework/Info.plist
394
+ - assets/xcode/tvos/MRuby.framework/MRuby
395
+ - assets/xcode/tvos/MyApp.xcodeproj/project.pbxproj
396
+ - assets/xcode/tvos/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
397
+ - assets/xcode/tvos/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
398
+ - assets/xcode/tvos/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint
399
+ - assets/xcode/tvos/main.c
273
400
  - bin/ruby2d
274
401
  - ext/ruby2d/common.c
275
402
  - ext/ruby2d/controllers.c
@@ -295,6 +422,7 @@ files:
295
422
  - lib/ruby2d/cli/console.rb
296
423
  - lib/ruby2d/cli/enable_console.rb
297
424
  - lib/ruby2d/cli/launch.rb
425
+ - lib/ruby2d/cli/platform.rb
298
426
  - lib/ruby2d/color.rb
299
427
  - lib/ruby2d/dsl.rb
300
428
  - lib/ruby2d/entity.rb
@@ -336,7 +464,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
336
464
  - !ruby/object:Gem::Version
337
465
  version: '0'
338
466
  requirements: []
339
- rubygems_version: 3.2.27
467
+ rubygems_version: 3.3.10
340
468
  signing_key:
341
469
  specification_version: 4
342
470
  summary: Ruby 2D
data/assets/README.md DELETED
@@ -1,22 +0,0 @@
1
- # Assets for the Ruby 2D gem
2
-
3
- ## Contents
4
-
5
- - [`include/`](include) — C include headers for dependencies
6
- - [`ios/`](ios) and [`tvos/`](tvos)
7
- - Xcode projects for iOS and tvOS, derived from the [Simple 2D dependencies](https://github.com/simple2d/deps/tree/master/xcode)
8
- - iOS and tvOS frameworks from [`mruby-frameworks`](https://github.com/ruby2d/mruby-frameworks)
9
- - [`linux/`](linux) — Simple 2D source and includes for Linux
10
- - [`macos/`](macos) — Static library dependencies for macOS
11
- - [`mingw/`](mingw) — Static and dynamic library dependencies for Windows / MinGW
12
- - [`app.icns`](app.icns) — The [Ruby 2D logo](https://github.com/ruby2d/logo) icon
13
-
14
- ## Updating
15
-
16
- 1. Update the Simple 2D version in the [Rakefile](Rakefile)
17
- 2. Run `rake`
18
-
19
- To update the Xcode projects:
20
- - Copy over Xcode iOS and tvOS projects from `xcode/ios` and `xcode/tvos` in [simple2d/deps](https://github.com/simple2d/deps)
21
- - Add frameworks to the Xcode projects (Target -> Build Phases -> Link Binary with Libraries) and the "Header Search Paths"
22
- - Rename Bundle Identifiers from "Simple2D.MyApp" to "Ruby2D.MyApp"
data/assets/Rakefile DELETED
@@ -1,85 +0,0 @@
1
- # The Simple 2D version to use
2
- S2D_VERISON = '1.2.0'
3
-
4
- # Extend `String` to include some fancy colors
5
- class String
6
- def ruby2d_colorize(c); "\e[#{c}m#{self}\e[0m" end
7
- def bold; ruby2d_colorize('1') end
8
- def info; ruby2d_colorize('1;34') end
9
- def warn; ruby2d_colorize('1;33') end
10
- def error; ruby2d_colorize('1;31') end
11
- end
12
-
13
- def print_task(task)
14
- print "\n", "==> ".info, task.bold, "\n"
15
- end
16
-
17
- def run_cmd(cmd)
18
- puts "\n==> #{cmd}\n".bold
19
- system cmd
20
- end
21
-
22
- task default: 'update'
23
-
24
- desc 'Update assets'
25
- task :update do
26
-
27
- print_task 'Clean out directories'
28
- FileUtils.rm_rf Dir.glob('include/*')
29
- FileUtils.rm_rf Dir.glob('linux/*')
30
- FileUtils.rm_rf Dir.glob('macos/*')
31
- FileUtils.rm_rf Dir.glob('mingw/*')
32
- FileUtils.rm_rf 'ios/MRuby.framework'
33
- FileUtils.rm_rf 'tvos/MRuby.framework'
34
- FileUtils.mkdir_p 'tmp'
35
- FileUtils.rm_rf Dir.glob('tmp/*')
36
-
37
- print_task 'Download dependencies'
38
- run_cmd "git clone --branch v#{S2D_VERISON} --recursive --depth 1 https://github.com/simple2d/simple2d tmp/simple2d"
39
-
40
- def download_simple2d_release(release)
41
- release = "simple2d-#{release}-#{S2D_VERISON}"
42
- run_cmd "curl -L -o tmp/#{release}.zip https://github.com/simple2d/simple2d/releases/download/v#{S2D_VERISON}/#{release}.zip"
43
- run_cmd "unzip -q tmp/#{release}.zip -d tmp/#{release}"
44
- end
45
-
46
- download_simple2d_release 'apple'
47
- download_simple2d_release 'windows-mingw'
48
- download_simple2d_release 'windows-vc'
49
-
50
- run_cmd 'git clone --depth 1 https://github.com/ruby2d/mruby-frameworks tmp/ruby2d-mruby-frameworks'
51
-
52
- print_task 'Copy files from `simple2d` repo'
53
- FileUtils.cp 'tmp/simple2d/include/simple2d.h', 'include'
54
- FileUtils.cp_r Dir.glob('tmp/simple2d/deps/headers/*'), 'include'
55
-
56
- print_task 'Copy files for macOS'
57
- FileUtils.mkdir_p 'macos/lib'
58
- FileUtils.cp_r Dir.glob('tmp/simple2d/deps/macos/lib/*'), 'macos/lib'
59
- S2D_APPLE_RELEASE="simple2d-apple-#{S2D_VERISON}"
60
- FileUtils.cp "tmp/#{S2D_APPLE_RELEASE}/#{S2D_APPLE_RELEASE}/macOS/libsimple2d.a", 'macos/lib'
61
-
62
- print_task 'Copy files for tvOS and macOS'
63
- FileUtils.cp_r 'tmp/ruby2d-mruby-frameworks/ios/MRuby.framework', 'ios'
64
- FileUtils.cp_r 'tmp/ruby2d-mruby-frameworks/tvos/MRuby.framework', 'tvos'
65
-
66
- print_task 'Copy files for Linux'
67
- FileUtils.mkdir_p 'linux/simple2d/bin'
68
- FileUtils.mkdir_p 'linux/simple2d/include'
69
- FileUtils.mkdir_p 'linux/simple2d/src'
70
- FileUtils.cp 'tmp/simple2d/bin/simple2d.sh', 'linux/simple2d/bin'
71
- FileUtils.cp 'tmp/simple2d/include/simple2d.h', 'linux/simple2d/include'
72
- FileUtils.cp_r Dir.glob('tmp/simple2d/src/*'), 'linux/simple2d/src'
73
- FileUtils.cp 'tmp/simple2d/Makefile', 'linux/simple2d'
74
-
75
- print_task 'Copy files for MinGW'
76
- FileUtils.mkdir_p 'mingw/bin'
77
- FileUtils.mkdir_p 'mingw/lib'
78
- FileUtils.cp_r Dir.glob('tmp/simple2d/deps/mingw/bin/*'), 'mingw/bin'
79
- FileUtils.cp_r Dir.glob('tmp/simple2d/deps/mingw/lib/*'), 'mingw/lib'
80
- S2D_MINGW_RELEASE="simple2d-windows-mingw-#{S2D_VERISON}"
81
- FileUtils.cp "tmp/#{S2D_MINGW_RELEASE}/lib/libsimple2d.a", 'mingw/lib'
82
-
83
- print_task "Done! 😎\n"
84
-
85
- end
Binary file
Binary file
Binary file
Binary file