ruby2d 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/include/SDL2/SDL.h +108 -14
- data/assets/include/SDL2/SDL_assert.h +81 -50
- data/assets/include/SDL2/SDL_atomic.h +135 -35
- data/assets/include/SDL2/SDL_audio.h +960 -355
- data/assets/include/SDL2/SDL_bits.h +11 -6
- data/assets/include/SDL2/SDL_blendmode.h +91 -14
- data/assets/include/SDL2/SDL_clipboard.h +30 -7
- data/assets/include/SDL2/SDL_config.h +3 -1
- data/assets/include/SDL2/SDL_config_android.h +11 -1
- data/assets/include/SDL2/SDL_config_emscripten.h +216 -0
- data/assets/include/SDL2/SDL_config_iphoneos.h +9 -1
- data/assets/include/SDL2/SDL_config_macosx.h +16 -2
- data/assets/include/SDL2/SDL_config_minimal.h +4 -1
- data/assets/include/SDL2/SDL_config_os2.h +37 -20
- data/assets/include/SDL2/SDL_config_pandora.h +6 -1
- data/assets/include/SDL2/SDL_config_psp.h +8 -8
- data/assets/include/SDL2/SDL_config_windows.h +39 -22
- data/assets/include/SDL2/SDL_config_winrt.h +23 -8
- data/assets/include/SDL2/SDL_config_wiz.h +6 -1
- data/assets/include/SDL2/SDL_copying.h +1 -1
- data/assets/include/SDL2/SDL_cpuinfo.h +331 -71
- data/assets/include/SDL2/SDL_egl.h +906 -280
- data/assets/include/SDL2/SDL_endian.h +101 -47
- data/assets/include/SDL2/SDL_error.h +70 -19
- data/assets/include/SDL2/SDL_events.h +387 -79
- data/assets/include/SDL2/SDL_filesystem.h +73 -64
- data/assets/include/SDL2/SDL_gamecontroller.h +585 -125
- data/assets/include/SDL2/SDL_gesture.h +36 -6
- data/assets/include/SDL2/SDL_haptic.h +304 -210
- data/assets/include/SDL2/SDL_hidapi.h +451 -0
- data/assets/include/SDL2/SDL_hints.h +1286 -897
- data/assets/include/SDL2/SDL_joystick.h +577 -130
- data/assets/include/SDL2/SDL_keyboard.h +162 -63
- data/assets/include/SDL2/SDL_keycode.h +7 -5
- data/assets/include/SDL2/SDL_loadso.h +42 -8
- data/assets/include/SDL2/SDL_locale.h +34 -32
- data/assets/include/SDL2/SDL_log.h +212 -19
- data/assets/include/SDL2/SDL_main.h +72 -17
- data/assets/include/SDL2/SDL_messagebox.h +70 -23
- data/assets/include/SDL2/SDL_metal.h +27 -32
- data/assets/include/SDL2/SDL_misc.h +19 -15
- data/assets/include/SDL2/SDL_mouse.h +262 -110
- data/assets/include/SDL2/SDL_mutex.h +286 -66
- data/assets/include/SDL2/SDL_name.h +1 -1
- data/assets/include/SDL2/SDL_opengl.h +1 -1
- data/assets/include/SDL2/SDL_opengles.h +1 -1
- data/assets/include/SDL2/SDL_opengles2.h +2 -2
- data/assets/include/SDL2/SDL_pixels.h +199 -34
- data/assets/include/SDL2/SDL_platform.h +39 -2
- data/assets/include/SDL2/SDL_power.h +23 -10
- data/assets/include/SDL2/SDL_quit.h +1 -1
- data/assets/include/SDL2/SDL_rect.h +78 -28
- data/assets/include/SDL2/SDL_render.h +1204 -472
- data/assets/include/SDL2/SDL_revision.h +2 -2
- data/assets/include/SDL2/SDL_rwops.h +605 -33
- data/assets/include/SDL2/SDL_scancode.h +1 -1
- data/assets/include/SDL2/SDL_sensor.h +76 -42
- data/assets/include/SDL2/SDL_shape.h +38 -27
- data/assets/include/SDL2/SDL_stdinc.h +96 -24
- data/assets/include/SDL2/SDL_surface.h +571 -139
- data/assets/include/SDL2/SDL_system.h +339 -101
- data/assets/include/SDL2/SDL_syswm.h +50 -20
- data/assets/include/SDL2/SDL_test.h +1 -1
- data/assets/include/SDL2/SDL_test_assert.h +2 -2
- data/assets/include/SDL2/SDL_test_common.h +23 -6
- data/assets/include/SDL2/SDL_test_compare.h +1 -1
- data/assets/include/SDL2/SDL_test_crc32.h +1 -1
- data/assets/include/SDL2/SDL_test_font.h +3 -3
- data/assets/include/SDL2/SDL_test_fuzzer.h +28 -26
- data/assets/include/SDL2/SDL_test_harness.h +6 -6
- data/assets/include/SDL2/SDL_test_images.h +1 -1
- data/assets/include/SDL2/SDL_test_log.h +1 -1
- data/assets/include/SDL2/SDL_test_md5.h +1 -1
- data/assets/include/SDL2/SDL_test_memory.h +1 -1
- data/assets/include/SDL2/SDL_test_random.h +2 -2
- data/assets/include/SDL2/SDL_thread.h +226 -128
- data/assets/include/SDL2/SDL_timer.h +129 -22
- data/assets/include/SDL2/SDL_touch.h +48 -8
- data/assets/include/SDL2/SDL_ttf.h +102 -9
- data/assets/include/SDL2/SDL_types.h +1 -1
- data/assets/include/SDL2/SDL_version.h +72 -46
- data/assets/include/SDL2/SDL_video.h +1266 -460
- data/assets/include/SDL2/SDL_vulkan.h +100 -161
- data/assets/include/SDL2/begin_code.h +22 -1
- data/assets/include/SDL2/close_code.h +1 -1
- data/assets/include/mrbconf.h +234 -0
- data/assets/include/mruby/array.h +317 -0
- data/assets/include/mruby/boxing_nan.h +130 -0
- data/assets/include/mruby/boxing_no.h +58 -0
- data/assets/include/mruby/boxing_word.h +205 -0
- data/assets/include/mruby/class.h +108 -0
- data/assets/include/mruby/common.h +92 -0
- data/assets/include/mruby/compile.h +210 -0
- data/assets/include/mruby/data.h +76 -0
- data/assets/include/mruby/debug.h +66 -0
- data/assets/include/mruby/dump.h +158 -0
- data/assets/include/mruby/endian.h +44 -0
- data/assets/include/mruby/error.h +137 -0
- data/assets/include/mruby/gc.h +92 -0
- data/assets/include/mruby/hash.h +242 -0
- data/assets/include/mruby/irep.h +147 -0
- data/assets/include/mruby/istruct.h +50 -0
- data/assets/include/mruby/khash.h +284 -0
- data/assets/include/mruby/numeric.h +169 -0
- data/assets/include/mruby/object.h +43 -0
- data/assets/include/mruby/opcode.h +43 -0
- data/assets/include/mruby/ops.h +122 -0
- data/assets/include/mruby/presym/disable.h +70 -0
- data/assets/include/mruby/presym/enable.h +37 -0
- data/assets/include/mruby/presym/scanning.h +73 -0
- data/assets/include/mruby/presym.h +40 -0
- data/assets/include/mruby/proc.h +209 -0
- data/assets/include/mruby/range.h +79 -0
- data/assets/include/mruby/re.h +16 -0
- data/assets/include/mruby/string.h +469 -0
- data/assets/include/mruby/throw.h +66 -0
- data/assets/include/mruby/value.h +400 -0
- data/assets/include/mruby/variable.h +140 -0
- data/assets/include/mruby/version.h +143 -0
- data/assets/include/mruby.h +1444 -0
- data/assets/macos/universal/bin/mrbc +0 -0
- data/assets/macos/universal/lib/libFLAC.a +0 -0
- data/assets/macos/universal/lib/libSDL2.a +0 -0
- data/assets/macos/universal/lib/libSDL2_image.a +0 -0
- data/assets/macos/{lib → universal/lib}/libSDL2_mixer.a +0 -0
- data/assets/macos/universal/lib/libSDL2_ttf.a +0 -0
- data/assets/macos/universal/lib/libfreetype.a +0 -0
- data/assets/macos/universal/lib/libgraphite2.a +0 -0
- data/assets/macos/universal/lib/libharfbuzz.a +0 -0
- data/assets/macos/universal/lib/libjpeg.a +0 -0
- data/assets/macos/{lib → universal/lib}/libmodplug.a +0 -0
- data/assets/macos/{lib → universal/lib}/libmpg123.a +0 -0
- data/assets/{mingw/lib/libSDL2.a → macos/universal/lib/libmruby.a} +0 -0
- data/assets/macos/{lib → universal/lib}/libogg.a +0 -0
- data/assets/macos/universal/lib/libpng16.a +0 -0
- data/assets/macos/universal/lib/libtiff.a +0 -0
- data/assets/macos/universal/lib/libvorbis.a +0 -0
- data/assets/macos/universal/lib/libvorbisfile.a +0 -0
- data/assets/macos/universal/lib/libwebp.a +0 -0
- data/assets/test_media/README.md +3 -0
- data/assets/test_media/bitstream_vera/COPYRIGHT.txt +124 -0
- data/assets/test_media/bitstream_vera/vera.ttf +0 -0
- data/assets/test_media/boom.png +0 -0
- data/assets/test_media/coin.png +0 -0
- data/assets/test_media/colors.png +0 -0
- data/assets/test_media/controller.png +0 -0
- data/assets/test_media/dial.wav +0 -0
- data/assets/test_media/hero.png +0 -0
- data/assets/test_media/image.bmp +0 -0
- data/assets/test_media/image.jpg +0 -0
- data/assets/test_media/image.png +0 -0
- data/assets/test_media/music.flac +0 -0
- data/assets/test_media/music.mp3 +0 -0
- data/assets/test_media/music.ogg +0 -0
- data/assets/test_media/music.wav +0 -0
- data/assets/test_media/originals/boom.pxm +0 -0
- data/assets/test_media/originals/coin.pxm +0 -0
- data/assets/test_media/originals/controller.sketch +0 -0
- data/assets/test_media/originals/hero.pxm +0 -0
- data/assets/test_media/originals/image.pxm +0 -0
- data/assets/test_media/originals/music.caf +0 -0
- data/assets/test_media/originals/texture_atlas.pxm +0 -0
- data/assets/test_media/rondo_alla_turka.ogg +0 -0
- data/assets/test_media/sound.flac +0 -0
- data/assets/test_media/sound.mp3 +0 -0
- data/assets/test_media/sound.ogg +0 -0
- data/assets/test_media/sound.wav +0 -0
- data/assets/test_media/sprite_sheet.png +0 -0
- data/assets/test_media/texture_atlas.png +0 -0
- data/assets/wasm/build_config.rb +13 -0
- data/assets/wasm/libmruby.a +0 -0
- data/assets/wasm/template.html +17 -0
- data/assets/windows/glew/README.md +10 -0
- data/assets/windows/glew/glew.h +23686 -0
- data/assets/{mingw/lib → windows/glew}/libglew32.a +0 -0
- data/assets/windows/mingw-w64-x86_64/bin/mrbc.exe +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libFLAC.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libLerc.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libSDL2.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libSDL2_image.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libSDL2_mixer.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libSDL2_ttf.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libbrotlicommon.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libbrotlidec.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libbz2.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libdeflate.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libfreetype.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libglew32.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libgraphite2.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libharfbuzz.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libjbig.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libjpeg.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/liblzma.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libmodplug.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libmpg123.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libmruby.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libogg.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libopus.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libopusfile.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libpng16.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libsndfile.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libssp.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libstdc++.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libtiff.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libvorbis.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libvorbisfile.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libwebp.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libz.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libzstd.a +0 -0
- data/assets/{ios → xcode/ios}/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -0
- data/assets/{ios → xcode/ios}/Assets.xcassets/Contents.json +0 -0
- data/assets/{ios → xcode/ios}/Base.lproj/LaunchScreen.storyboard +0 -0
- data/assets/{ios → xcode/ios}/Info.plist +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mrbconf.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/array.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_nan.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_no.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_word.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/class.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/common.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/compile.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/data.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/debug.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/dump.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/error.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/gc.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/hash.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/irep.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/istruct.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/khash.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/numeric.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/object.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/opcode.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/ops.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/proc.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/range.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/re.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/string.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/throw.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/value.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/variable.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/version.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Info.plist +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/MRuby +0 -0
- data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.pbxproj +0 -0
- data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint +0 -0
- data/assets/{ios → xcode/ios}/main.c +0 -0
- 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
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json +0 -0
- 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
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json +0 -0
- 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
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json +0 -0
- 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
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json +0 -0
- 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
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json +0 -0
- 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
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/LaunchImage.launchimage/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Info.plist +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mrbconf.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/array.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_nan.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_no.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_word.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/class.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/common.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/compile.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/data.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/debug.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/dump.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/error.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/gc.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/hash.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/irep.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/istruct.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/khash.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/numeric.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/object.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/opcode.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/ops.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/proc.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/range.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/re.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/string.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/throw.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/value.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/variable.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/version.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Info.plist +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/MRuby +0 -0
- data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.pbxproj +0 -0
- data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint +0 -0
- data/assets/{tvos → xcode/tvos}/main.c +0 -0
- data/bin/ruby2d +3 -4
- data/ext/ruby2d/extconf.rb +39 -25
- data/ext/ruby2d/gl.c +1 -1
- data/ext/ruby2d/gl3.c +0 -1
- data/ext/ruby2d/gles.c +137 -84
- data/ext/ruby2d/ruby2d.c +126 -32
- data/ext/ruby2d/ruby2d.h +53 -6
- data/ext/ruby2d/text.c +14 -1
- data/ext/ruby2d/window.c +253 -215
- data/lib/ruby2d/cli/build.rb +237 -59
- data/lib/ruby2d/cli/colorize.rb +5 -4
- data/lib/ruby2d/cli/platform.rb +17 -0
- data/lib/ruby2d/font.rb +7 -1
- data/lib/ruby2d/sprite.rb +7 -2
- data/lib/ruby2d/text.rb +1 -3
- data/lib/ruby2d/texture.rb +21 -21
- data/lib/ruby2d/tileset.rb +34 -33
- data/lib/ruby2d/version.rb +1 -1
- data/lib/ruby2d/vertices.rb +11 -6
- data/lib/ruby2d.rb +14 -20
- metadata +246 -152
- data/assets/README.md +0 -22
- data/assets/Rakefile +0 -85
- data/assets/macos/lib/libFLAC.a +0 -0
- data/assets/macos/lib/libSDL2.a +0 -0
- data/assets/macos/lib/libSDL2_image.a +0 -0
- data/assets/macos/lib/libSDL2_ttf.a +0 -0
- data/assets/macos/lib/libfreetype.a +0 -0
- data/assets/macos/lib/libjpeg.a +0 -0
- data/assets/macos/lib/libpng16.a +0 -0
- data/assets/macos/lib/libtiff.a +0 -0
- data/assets/macos/lib/libvorbis.a +0 -0
- data/assets/macos/lib/libvorbisfile.a +0 -0
- data/assets/macos/lib/libwebp.a +0 -0
- data/assets/mingw/bin/SDL2.dll +0 -0
- data/assets/mingw/bin/SDL2_image.dll +0 -0
- data/assets/mingw/bin/SDL2_mixer.dll +0 -0
- data/assets/mingw/bin/SDL2_ttf.dll +0 -0
- data/assets/mingw/bin/glew32.dll +0 -0
- data/assets/mingw/bin/libFLAC-8.dll +0 -0
- data/assets/mingw/bin/libfreetype-6.dll +0 -0
- data/assets/mingw/bin/libjpeg-9.dll +0 -0
- data/assets/mingw/bin/libmodplug-1.dll +0 -0
- data/assets/mingw/bin/libmpg123-0.dll +0 -0
- data/assets/mingw/bin/libogg-0.dll +0 -0
- data/assets/mingw/bin/libopus-0.dll +0 -0
- data/assets/mingw/bin/libopusfile-0.dll +0 -0
- data/assets/mingw/bin/libpng16-16.dll +0 -0
- data/assets/mingw/bin/libtiff-5.dll +0 -0
- data/assets/mingw/bin/libvorbis-0.dll +0 -0
- data/assets/mingw/bin/libvorbisfile-3.dll +0 -0
- data/assets/mingw/bin/libwebp-7.dll +0 -0
- data/assets/mingw/bin/zlib1.dll +0 -0
- data/assets/mingw/lib/libSDL2.dll.a +0 -0
- data/assets/mingw/lib/libSDL2_image.a +0 -0
- data/assets/mingw/lib/libSDL2_image.dll.a +0 -0
- data/assets/mingw/lib/libSDL2_mixer.a +0 -0
- data/assets/mingw/lib/libSDL2_mixer.dll.a +0 -0
- data/assets/mingw/lib/libSDL2_test.a +0 -0
- data/assets/mingw/lib/libSDL2_ttf.a +0 -0
- data/assets/mingw/lib/libSDL2_ttf.dll.a +0 -0
- data/assets/mingw/lib/libSDL2main.a +0 -0
- 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.
|
4
|
+
version: 0.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Black
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-10 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.
|
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.
|
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,151 +126,244 @@ 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/
|
130
|
-
- assets/
|
131
|
-
- assets/
|
132
|
-
- assets/
|
133
|
-
- assets/
|
134
|
-
- assets/
|
135
|
-
- assets/
|
136
|
-
- assets/
|
137
|
-
- assets/
|
138
|
-
- assets/
|
139
|
-
- assets/
|
140
|
-
- assets/
|
141
|
-
- assets/
|
142
|
-
- assets/
|
143
|
-
- assets/
|
144
|
-
- assets/
|
145
|
-
- assets/
|
146
|
-
- assets/
|
147
|
-
- assets/
|
148
|
-
- assets/
|
149
|
-
- assets/
|
150
|
-
- assets/
|
151
|
-
- assets/
|
152
|
-
- assets/
|
153
|
-
- assets/
|
154
|
-
- assets/
|
155
|
-
- assets/
|
156
|
-
- assets/
|
157
|
-
- assets/
|
158
|
-
- assets/
|
159
|
-
- assets/
|
160
|
-
- assets/
|
161
|
-
- assets/
|
162
|
-
- assets/
|
163
|
-
- assets/
|
164
|
-
- assets/
|
165
|
-
- assets/
|
166
|
-
- assets/
|
167
|
-
- assets/
|
168
|
-
- assets/
|
169
|
-
- assets/
|
170
|
-
- assets/macos/lib/
|
171
|
-
- assets/macos/lib/
|
172
|
-
- assets/macos/lib/
|
173
|
-
- assets/macos/lib/
|
174
|
-
- assets/macos/lib/
|
175
|
-
- assets/macos/lib/
|
176
|
-
- assets/macos/lib/
|
177
|
-
- assets/macos/lib/
|
178
|
-
- assets/macos/lib/
|
179
|
-
- assets/macos/lib/
|
180
|
-
- assets/macos/lib/
|
181
|
-
- assets/macos/lib/
|
182
|
-
- assets/macos/lib/
|
183
|
-
- assets/
|
184
|
-
- assets/
|
185
|
-
- assets/
|
186
|
-
- assets/
|
187
|
-
- assets/
|
188
|
-
- assets/
|
189
|
-
- assets/
|
190
|
-
- assets/
|
191
|
-
- assets/
|
192
|
-
- assets/
|
193
|
-
- assets/
|
194
|
-
- assets/
|
195
|
-
- assets/
|
196
|
-
- assets/
|
197
|
-
- assets/
|
198
|
-
- assets/
|
199
|
-
- assets/
|
200
|
-
- assets/
|
201
|
-
- assets/
|
202
|
-
- assets/
|
203
|
-
- assets/
|
204
|
-
- assets/
|
205
|
-
- assets/
|
206
|
-
- assets/
|
207
|
-
- assets/
|
208
|
-
- assets/
|
209
|
-
- assets/
|
210
|
-
- assets/
|
211
|
-
- assets/
|
212
|
-
- assets/
|
213
|
-
- assets/
|
214
|
-
- assets/
|
215
|
-
- assets/
|
216
|
-
- assets/
|
217
|
-
- assets/
|
218
|
-
- assets/
|
219
|
-
- assets/
|
220
|
-
- assets/
|
221
|
-
- assets/
|
222
|
-
- assets/
|
223
|
-
- assets/
|
224
|
-
- assets/
|
225
|
-
- assets/
|
226
|
-
- assets/
|
227
|
-
- assets/
|
228
|
-
- assets/
|
229
|
-
- assets/
|
230
|
-
- assets/
|
231
|
-
- assets/
|
232
|
-
|
233
|
-
- assets/
|
234
|
-
- assets/
|
235
|
-
- assets/
|
236
|
-
- assets/
|
237
|
-
- assets/
|
238
|
-
- assets/
|
239
|
-
- assets/
|
240
|
-
- assets/
|
241
|
-
- assets/
|
242
|
-
- assets/
|
243
|
-
- assets/
|
244
|
-
- assets/
|
245
|
-
- assets/
|
246
|
-
- assets/
|
247
|
-
- assets/
|
248
|
-
- assets/
|
249
|
-
- assets/
|
250
|
-
- assets/
|
251
|
-
- assets/
|
252
|
-
- assets/
|
253
|
-
- assets/
|
254
|
-
- assets/
|
255
|
-
- assets/
|
256
|
-
- assets/
|
257
|
-
- assets/
|
258
|
-
- assets/
|
259
|
-
- assets/
|
260
|
-
- assets/
|
261
|
-
- assets/
|
262
|
-
- assets/
|
263
|
-
- assets/
|
264
|
-
- assets/
|
265
|
-
- assets/
|
266
|
-
- assets/
|
267
|
-
- assets/
|
268
|
-
- assets/
|
269
|
-
- assets/
|
270
|
-
- assets/
|
271
|
-
- assets/
|
272
|
-
- assets/
|
273
|
-
- assets/
|
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/build_config.rb
|
214
|
+
- assets/wasm/libmruby.a
|
215
|
+
- assets/wasm/template.html
|
216
|
+
- assets/windows/glew/README.md
|
217
|
+
- assets/windows/glew/glew.h
|
218
|
+
- assets/windows/glew/libglew32.a
|
219
|
+
- assets/windows/mingw-w64-x86_64/bin/mrbc.exe
|
220
|
+
- assets/windows/mingw-w64-x86_64/lib/libFLAC.a
|
221
|
+
- assets/windows/mingw-w64-x86_64/lib/libLerc.a
|
222
|
+
- assets/windows/mingw-w64-x86_64/lib/libSDL2.a
|
223
|
+
- assets/windows/mingw-w64-x86_64/lib/libSDL2_image.a
|
224
|
+
- assets/windows/mingw-w64-x86_64/lib/libSDL2_mixer.a
|
225
|
+
- assets/windows/mingw-w64-x86_64/lib/libSDL2_ttf.a
|
226
|
+
- assets/windows/mingw-w64-x86_64/lib/libbrotlicommon.a
|
227
|
+
- assets/windows/mingw-w64-x86_64/lib/libbrotlidec.a
|
228
|
+
- assets/windows/mingw-w64-x86_64/lib/libbz2.a
|
229
|
+
- assets/windows/mingw-w64-x86_64/lib/libdeflate.a
|
230
|
+
- assets/windows/mingw-w64-x86_64/lib/libfreetype.a
|
231
|
+
- assets/windows/mingw-w64-x86_64/lib/libglew32.a
|
232
|
+
- assets/windows/mingw-w64-x86_64/lib/libgraphite2.a
|
233
|
+
- assets/windows/mingw-w64-x86_64/lib/libharfbuzz.a
|
234
|
+
- assets/windows/mingw-w64-x86_64/lib/libjbig.a
|
235
|
+
- assets/windows/mingw-w64-x86_64/lib/libjpeg.a
|
236
|
+
- assets/windows/mingw-w64-x86_64/lib/liblzma.a
|
237
|
+
- assets/windows/mingw-w64-x86_64/lib/libmodplug.a
|
238
|
+
- assets/windows/mingw-w64-x86_64/lib/libmpg123.a
|
239
|
+
- assets/windows/mingw-w64-x86_64/lib/libmruby.a
|
240
|
+
- assets/windows/mingw-w64-x86_64/lib/libogg.a
|
241
|
+
- assets/windows/mingw-w64-x86_64/lib/libopus.a
|
242
|
+
- assets/windows/mingw-w64-x86_64/lib/libopusfile.a
|
243
|
+
- assets/windows/mingw-w64-x86_64/lib/libpng16.a
|
244
|
+
- assets/windows/mingw-w64-x86_64/lib/libsndfile.a
|
245
|
+
- assets/windows/mingw-w64-x86_64/lib/libssp.a
|
246
|
+
- assets/windows/mingw-w64-x86_64/lib/libstdc++.a
|
247
|
+
- assets/windows/mingw-w64-x86_64/lib/libtiff.a
|
248
|
+
- assets/windows/mingw-w64-x86_64/lib/libvorbis.a
|
249
|
+
- assets/windows/mingw-w64-x86_64/lib/libvorbisfile.a
|
250
|
+
- assets/windows/mingw-w64-x86_64/lib/libwebp.a
|
251
|
+
- assets/windows/mingw-w64-x86_64/lib/libz.a
|
252
|
+
- assets/windows/mingw-w64-x86_64/lib/libzstd.a
|
253
|
+
- assets/xcode/ios/Assets.xcassets/AppIcon.appiconset/Contents.json
|
254
|
+
- assets/xcode/ios/Assets.xcassets/Contents.json
|
255
|
+
- assets/xcode/ios/Base.lproj/LaunchScreen.storyboard
|
256
|
+
- assets/xcode/ios/Info.plist
|
257
|
+
- assets/xcode/ios/MRuby.framework/Headers/mrbconf.h
|
258
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby.h
|
259
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/array.h
|
260
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/boxing_nan.h
|
261
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/boxing_no.h
|
262
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/boxing_word.h
|
263
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/class.h
|
264
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/common.h
|
265
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/compile.h
|
266
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/data.h
|
267
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/debug.h
|
268
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/dump.h
|
269
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/error.h
|
270
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/gc.h
|
271
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/hash.h
|
272
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/irep.h
|
273
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/istruct.h
|
274
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/khash.h
|
275
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/numeric.h
|
276
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/object.h
|
277
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/opcode.h
|
278
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/ops.h
|
279
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/proc.h
|
280
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/range.h
|
281
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/re.h
|
282
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/string.h
|
283
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/throw.h
|
284
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/value.h
|
285
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/variable.h
|
286
|
+
- assets/xcode/ios/MRuby.framework/Headers/mruby/version.h
|
287
|
+
- assets/xcode/ios/MRuby.framework/Info.plist
|
288
|
+
- assets/xcode/ios/MRuby.framework/MRuby
|
289
|
+
- assets/xcode/ios/MyApp.xcodeproj/project.pbxproj
|
290
|
+
- assets/xcode/ios/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
291
|
+
- assets/xcode/ios/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
|
292
|
+
- assets/xcode/ios/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint
|
293
|
+
- assets/xcode/ios/main.c
|
294
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
295
|
+
- Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json
|
296
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
297
|
+
- Large.imagestack/Back.imagestacklayer/Contents.json
|
298
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
299
|
+
- Large.imagestack/Contents.json
|
300
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
301
|
+
- Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json
|
302
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
303
|
+
- Large.imagestack/Front.imagestacklayer/Contents.json
|
304
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
305
|
+
- Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json
|
306
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
307
|
+
- Large.imagestack/Middle.imagestacklayer/Contents.json
|
308
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
309
|
+
- Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json
|
310
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
311
|
+
- Small.imagestack/Back.imagestacklayer/Contents.json
|
312
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
313
|
+
- Small.imagestack/Contents.json
|
314
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
315
|
+
- Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json
|
316
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
317
|
+
- Small.imagestack/Front.imagestacklayer/Contents.json
|
318
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
319
|
+
- Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json
|
320
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon
|
321
|
+
- Small.imagestack/Middle.imagestacklayer/Contents.json
|
322
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json
|
323
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf
|
324
|
+
Image Wide.imageset/Contents.json
|
325
|
+
- assets/xcode/tvos/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf
|
326
|
+
Image.imageset/Contents.json
|
327
|
+
- assets/xcode/tvos/Assets.xcassets/Contents.json
|
328
|
+
- assets/xcode/tvos/Assets.xcassets/LaunchImage.launchimage/Contents.json
|
329
|
+
- assets/xcode/tvos/Info.plist
|
330
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mrbconf.h
|
331
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby.h
|
332
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/array.h
|
333
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/boxing_nan.h
|
334
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/boxing_no.h
|
335
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/boxing_word.h
|
336
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/class.h
|
337
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/common.h
|
338
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/compile.h
|
339
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/data.h
|
340
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/debug.h
|
341
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/dump.h
|
342
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/error.h
|
343
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/gc.h
|
344
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/hash.h
|
345
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/irep.h
|
346
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/istruct.h
|
347
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/khash.h
|
348
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/numeric.h
|
349
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/object.h
|
350
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/opcode.h
|
351
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/ops.h
|
352
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/proc.h
|
353
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/range.h
|
354
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/re.h
|
355
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/string.h
|
356
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/throw.h
|
357
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/value.h
|
358
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/variable.h
|
359
|
+
- assets/xcode/tvos/MRuby.framework/Headers/mruby/version.h
|
360
|
+
- assets/xcode/tvos/MRuby.framework/Info.plist
|
361
|
+
- assets/xcode/tvos/MRuby.framework/MRuby
|
362
|
+
- assets/xcode/tvos/MyApp.xcodeproj/project.pbxproj
|
363
|
+
- assets/xcode/tvos/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
364
|
+
- assets/xcode/tvos/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
|
365
|
+
- assets/xcode/tvos/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint
|
366
|
+
- assets/xcode/tvos/main.c
|
274
367
|
- bin/ruby2d
|
275
368
|
- ext/ruby2d/common.c
|
276
369
|
- ext/ruby2d/controllers.c
|
@@ -296,6 +389,7 @@ files:
|
|
296
389
|
- lib/ruby2d/cli/console.rb
|
297
390
|
- lib/ruby2d/cli/enable_console.rb
|
298
391
|
- lib/ruby2d/cli/launch.rb
|
392
|
+
- lib/ruby2d/cli/platform.rb
|
299
393
|
- lib/ruby2d/color.rb
|
300
394
|
- lib/ruby2d/dsl.rb
|
301
395
|
- lib/ruby2d/entity.rb
|
@@ -337,7 +431,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
337
431
|
- !ruby/object:Gem::Version
|
338
432
|
version: '0'
|
339
433
|
requirements: []
|
340
|
-
rubygems_version: 3.
|
434
|
+
rubygems_version: 3.3.9
|
341
435
|
signing_key:
|
342
436
|
specification_version: 4
|
343
437
|
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
|
data/assets/macos/lib/libFLAC.a
DELETED
Binary file
|
data/assets/macos/lib/libSDL2.a
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/assets/macos/lib/libjpeg.a
DELETED
Binary file
|
data/assets/macos/lib/libpng16.a
DELETED
Binary file
|
data/assets/macos/lib/libtiff.a
DELETED
Binary file
|
Binary file
|
Binary file
|
data/assets/macos/lib/libwebp.a
DELETED
Binary file
|
data/assets/mingw/bin/SDL2.dll
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/assets/mingw/bin/glew32.dll
DELETED
Binary file
|