ruby2d 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -98,6 +98,10 @@ typedef struct _UIViewController UIViewController;
|
|
98
98
|
typedef Uint32 GLuint;
|
99
99
|
#endif
|
100
100
|
|
101
|
+
#if defined(SDL_VIDEO_VULKAN) || defined(SDL_VIDEO_METAL)
|
102
|
+
#define SDL_METALVIEW_TAG 255
|
103
|
+
#endif
|
104
|
+
|
101
105
|
#if defined(SDL_VIDEO_DRIVER_ANDROID)
|
102
106
|
typedef struct ANativeWindow ANativeWindow;
|
103
107
|
typedef void *EGLSurface;
|
@@ -113,6 +117,10 @@ typedef void *EGLSurface;
|
|
113
117
|
#endif
|
114
118
|
#endif /* SDL_PROTOTYPES_ONLY */
|
115
119
|
|
120
|
+
#if defined(SDL_VIDEO_DRIVER_KMSDRM)
|
121
|
+
struct gbm_device;
|
122
|
+
#endif
|
123
|
+
|
116
124
|
|
117
125
|
#include "begin_code.h"
|
118
126
|
/* Set up for C function definitions, even when using C++ */
|
@@ -138,7 +146,9 @@ typedef enum
|
|
138
146
|
SDL_SYSWM_ANDROID,
|
139
147
|
SDL_SYSWM_VIVANTE,
|
140
148
|
SDL_SYSWM_OS2,
|
141
|
-
SDL_SYSWM_HAIKU
|
149
|
+
SDL_SYSWM_HAIKU,
|
150
|
+
SDL_SYSWM_KMSDRM,
|
151
|
+
SDL_SYSWM_RISCOS
|
142
152
|
} SDL_SYSWM_TYPE;
|
143
153
|
|
144
154
|
/**
|
@@ -251,8 +261,12 @@ struct SDL_SysWMinfo
|
|
251
261
|
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
252
262
|
struct
|
253
263
|
{
|
254
|
-
#if defined(__OBJC__) && defined(__has_feature)
|
264
|
+
#if defined(__OBJC__) && defined(__has_feature)
|
265
|
+
#if __has_feature(objc_arc)
|
255
266
|
NSWindow __unsafe_unretained *window; /**< The Cocoa window */
|
267
|
+
#else
|
268
|
+
NSWindow *window; /**< The Cocoa window */
|
269
|
+
#endif
|
256
270
|
#else
|
257
271
|
NSWindow *window; /**< The Cocoa window */
|
258
272
|
#endif
|
@@ -261,8 +275,12 @@ struct SDL_SysWMinfo
|
|
261
275
|
#if defined(SDL_VIDEO_DRIVER_UIKIT)
|
262
276
|
struct
|
263
277
|
{
|
264
|
-
#if defined(__OBJC__) && defined(__has_feature)
|
278
|
+
#if defined(__OBJC__) && defined(__has_feature)
|
279
|
+
#if __has_feature(objc_arc)
|
265
280
|
UIWindow __unsafe_unretained *window; /**< The UIKit window */
|
281
|
+
#else
|
282
|
+
UIWindow *window; /**< The UIKit window */
|
283
|
+
#endif
|
266
284
|
#else
|
267
285
|
UIWindow *window; /**< The UIKit window */
|
268
286
|
#endif
|
@@ -274,9 +292,12 @@ struct SDL_SysWMinfo
|
|
274
292
|
#if defined(SDL_VIDEO_DRIVER_WAYLAND)
|
275
293
|
struct
|
276
294
|
{
|
277
|
-
struct wl_display *display;
|
278
|
-
struct wl_surface *surface;
|
279
|
-
|
295
|
+
struct wl_display *display; /**< Wayland display */
|
296
|
+
struct wl_surface *surface; /**< Wayland surface */
|
297
|
+
void *shell_surface; /**< DEPRECATED Wayland shell_surface (window manager handle) */
|
298
|
+
struct wl_egl_window *egl_window; /**< Wayland EGL window (native window) */
|
299
|
+
struct xdg_surface *xdg_surface; /**< Wayland xdg surface (window manager handle) */
|
300
|
+
struct xdg_toplevel *xdg_toplevel; /**< Wayland xdg toplevel role */
|
280
301
|
} wl;
|
281
302
|
#endif
|
282
303
|
#if defined(SDL_VIDEO_DRIVER_MIR) /* no longer available, left for API/ABI compatibility. Remove in 2.1! */
|
@@ -311,6 +332,15 @@ struct SDL_SysWMinfo
|
|
311
332
|
} vivante;
|
312
333
|
#endif
|
313
334
|
|
335
|
+
#if defined(SDL_VIDEO_DRIVER_KMSDRM)
|
336
|
+
struct
|
337
|
+
{
|
338
|
+
int dev_index; /**< Device index (ex: the X in /dev/dri/cardX) */
|
339
|
+
int drm_fd; /**< DRM FD (unavailable on Vulkan windows) */
|
340
|
+
struct gbm_device *gbm_dev; /**< GBM device (unavailable on Vulkan windows) */
|
341
|
+
} kmsdrm;
|
342
|
+
#endif
|
343
|
+
|
314
344
|
/* Make sure this union is always 64 bytes (8 64-bit pointers). */
|
315
345
|
/* Be careful not to overflow this if you add a new target! */
|
316
346
|
Uint8 dummy[64];
|
@@ -321,23 +351,23 @@ struct SDL_SysWMinfo
|
|
321
351
|
|
322
352
|
typedef struct SDL_SysWMinfo SDL_SysWMinfo;
|
323
353
|
|
324
|
-
|
354
|
+
|
325
355
|
/**
|
326
|
-
*
|
356
|
+
* Get driver-specific information about a window.
|
357
|
+
*
|
358
|
+
* You must include SDL_syswm.h for the declaration of SDL_SysWMinfo.
|
327
359
|
*
|
328
|
-
*
|
329
|
-
*
|
330
|
-
*
|
360
|
+
* The caller must initialize the `info` structure's version by using
|
361
|
+
* `SDL_VERSION(&info.version)`, and then this function will fill in the rest
|
362
|
+
* of the structure with information about the given window.
|
331
363
|
*
|
332
|
-
*
|
333
|
-
*
|
364
|
+
* \param window the window about which information is being requested
|
365
|
+
* \param info an SDL_SysWMinfo structure filled in with window information
|
366
|
+
* \returns SDL_TRUE if the function is implemented and the `version` member
|
367
|
+
* of the `info` struct is valid, or SDL_FALSE if the information
|
368
|
+
* could not be retrieved; call SDL_GetError() for more information.
|
334
369
|
*
|
335
|
-
*
|
336
|
-
* \code
|
337
|
-
* SDL_SysWMinfo info;
|
338
|
-
* SDL_VERSION(&info.version);
|
339
|
-
* if ( SDL_GetWindowWMInfo(window, &info) ) { ... }
|
340
|
-
* \endcode
|
370
|
+
* \since This function is available since SDL 2.0.0.
|
341
371
|
*/
|
342
372
|
extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowWMInfo(SDL_Window * window,
|
343
373
|
SDL_SysWMinfo * info);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -66,7 +66,7 @@ void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *as
|
|
66
66
|
* \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0).
|
67
67
|
* \param assertDescription Message to log with the assert describing it.
|
68
68
|
*
|
69
|
-
* \returns
|
69
|
+
* \returns the assertCondition so it can be used to externally to break execution flow if desired.
|
70
70
|
*/
|
71
71
|
int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2);
|
72
72
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -37,6 +37,9 @@
|
|
37
37
|
#if defined(__PSP__)
|
38
38
|
#define DEFAULT_WINDOW_WIDTH 480
|
39
39
|
#define DEFAULT_WINDOW_HEIGHT 272
|
40
|
+
#elif defined(__VITA__)
|
41
|
+
#define DEFAULT_WINDOW_WIDTH 960
|
42
|
+
#define DEFAULT_WINDOW_HEIGHT 544
|
40
43
|
#else
|
41
44
|
#define DEFAULT_WINDOW_WIDTH 640
|
42
45
|
#define DEFAULT_WINDOW_HEIGHT 480
|
@@ -61,6 +64,7 @@ typedef struct
|
|
61
64
|
const char *window_title;
|
62
65
|
const char *window_icon;
|
63
66
|
Uint32 window_flags;
|
67
|
+
SDL_bool flash_on_focus_loss;
|
64
68
|
int window_x;
|
65
69
|
int window_y;
|
66
70
|
int window_w;
|
@@ -110,6 +114,10 @@ typedef struct
|
|
110
114
|
int gl_minor_version;
|
111
115
|
int gl_debug;
|
112
116
|
int gl_profile_mask;
|
117
|
+
|
118
|
+
/* Additional fields added in 2.0.18 */
|
119
|
+
SDL_Rect confine;
|
120
|
+
|
113
121
|
} SDLTest_CommonState;
|
114
122
|
|
115
123
|
#include "begin_code.h"
|
@@ -126,7 +134,7 @@ extern "C" {
|
|
126
134
|
* \param argv Array of command line parameters
|
127
135
|
* \param flags Flags indicating which subsystem to initialize (i.e. SDL_INIT_VIDEO | SDL_INIT_AUDIO)
|
128
136
|
*
|
129
|
-
* \returns
|
137
|
+
* \returns a newly allocated common state object.
|
130
138
|
*/
|
131
139
|
SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, Uint32 flags);
|
132
140
|
|
@@ -136,7 +144,7 @@ SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, Uint32 flags);
|
|
136
144
|
* \param state The common state describing the test window to create.
|
137
145
|
* \param index The index of the argument to process in argv[].
|
138
146
|
*
|
139
|
-
* \returns
|
147
|
+
* \returns the number of arguments processed (i.e. 1 for --fullscreen, 2 for --video [videodriver], or -1 on error.
|
140
148
|
*/
|
141
149
|
int SDLTest_CommonArg(SDLTest_CommonState * state, int index);
|
142
150
|
|
@@ -164,7 +172,7 @@ void SDLTest_CommonLogUsage(SDLTest_CommonState * state, const char *argv0, cons
|
|
164
172
|
* those strings' memory is freed and can no longer be used.
|
165
173
|
*
|
166
174
|
* \param state The common state describing the test window to create.
|
167
|
-
* \returns
|
175
|
+
* \returns a string with usage information
|
168
176
|
*/
|
169
177
|
const char *SDLTest_CommonUsage(SDLTest_CommonState * state);
|
170
178
|
|
@@ -173,7 +181,7 @@ const char *SDLTest_CommonUsage(SDLTest_CommonState * state);
|
|
173
181
|
*
|
174
182
|
* \param state The common state describing the test window to create.
|
175
183
|
*
|
176
|
-
* \returns
|
184
|
+
* \returns SDL_TRUE if initialization succeeded, false otherwise
|
177
185
|
*/
|
178
186
|
SDL_bool SDLTest_CommonInit(SDLTest_CommonState * state);
|
179
187
|
|
@@ -184,7 +192,7 @@ SDL_bool SDLTest_CommonInit(SDLTest_CommonState * state);
|
|
184
192
|
* \param argc argc, as supplied to SDL_main
|
185
193
|
* \param argv argv, as supplied to SDL_main
|
186
194
|
*
|
187
|
-
* \returns
|
195
|
+
* \returns SDL_FALSE if app should quit, true otherwise.
|
188
196
|
*/
|
189
197
|
SDL_bool SDLTest_CommonDefaultArgs(SDLTest_CommonState * state, const int argc, char **argv);
|
190
198
|
|
@@ -206,6 +214,15 @@ void SDLTest_CommonEvent(SDLTest_CommonState * state, SDL_Event * event, int *do
|
|
206
214
|
*/
|
207
215
|
void SDLTest_CommonQuit(SDLTest_CommonState * state);
|
208
216
|
|
217
|
+
/**
|
218
|
+
* \brief Draws various window information (position, size, etc.) to the renderer.
|
219
|
+
*
|
220
|
+
* \param renderer The renderer to draw to.
|
221
|
+
* \param window The window whose information should be displayed.
|
222
|
+
* \param usedHeight Returns the height used, so the caller can draw more below.
|
223
|
+
*
|
224
|
+
*/
|
225
|
+
void SDLTest_CommonDrawWindowInfo(SDL_Renderer * renderer, SDL_Window * window, int * usedHeight);
|
209
226
|
|
210
227
|
/* Ends C function definitions when using C++ */
|
211
228
|
#ifdef __cplusplus
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -48,7 +48,7 @@ extern "C" {
|
|
48
48
|
* \param y The Y coordinate of the upper left corner of the character.
|
49
49
|
* \param c The character to draw.
|
50
50
|
*
|
51
|
-
* \returns
|
51
|
+
* \returns 0 on success, -1 on failure.
|
52
52
|
*/
|
53
53
|
int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, char c);
|
54
54
|
|
@@ -60,7 +60,7 @@ int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, char c);
|
|
60
60
|
* \param y The Y coordinate of the upper left corner of the string.
|
61
61
|
* \param s The string to draw.
|
62
62
|
*
|
63
|
-
* \returns
|
63
|
+
* \returns 0 on success, -1 on failure.
|
64
64
|
*/
|
65
65
|
int SDLTest_DrawString(SDL_Renderer *renderer, int x, int y, const char *s);
|
66
66
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -66,14 +66,14 @@ void SDLTest_FuzzerInit(Uint64 execKey);
|
|
66
66
|
/**
|
67
67
|
* Returns a random Uint8
|
68
68
|
*
|
69
|
-
* \returns
|
69
|
+
* \returns a generated integer
|
70
70
|
*/
|
71
71
|
Uint8 SDLTest_RandomUint8(void);
|
72
72
|
|
73
73
|
/**
|
74
74
|
* Returns a random Sint8
|
75
75
|
*
|
76
|
-
* \returns
|
76
|
+
* \returns a generated signed integer
|
77
77
|
*/
|
78
78
|
Sint8 SDLTest_RandomSint8(void);
|
79
79
|
|
@@ -81,14 +81,14 @@ Sint8 SDLTest_RandomSint8(void);
|
|
81
81
|
/**
|
82
82
|
* Returns a random Uint16
|
83
83
|
*
|
84
|
-
* \returns
|
84
|
+
* \returns a generated integer
|
85
85
|
*/
|
86
86
|
Uint16 SDLTest_RandomUint16(void);
|
87
87
|
|
88
88
|
/**
|
89
89
|
* Returns a random Sint16
|
90
90
|
*
|
91
|
-
* \returns
|
91
|
+
* \returns a generated signed integer
|
92
92
|
*/
|
93
93
|
Sint16 SDLTest_RandomSint16(void);
|
94
94
|
|
@@ -96,7 +96,7 @@ Sint16 SDLTest_RandomSint16(void);
|
|
96
96
|
/**
|
97
97
|
* Returns a random integer
|
98
98
|
*
|
99
|
-
* \returns
|
99
|
+
* \returns a generated integer
|
100
100
|
*/
|
101
101
|
Sint32 SDLTest_RandomSint32(void);
|
102
102
|
|
@@ -104,14 +104,14 @@ Sint32 SDLTest_RandomSint32(void);
|
|
104
104
|
/**
|
105
105
|
* Returns a random positive integer
|
106
106
|
*
|
107
|
-
* \returns
|
107
|
+
* \returns a generated integer
|
108
108
|
*/
|
109
109
|
Uint32 SDLTest_RandomUint32(void);
|
110
110
|
|
111
111
|
/**
|
112
112
|
* Returns random Uint64.
|
113
113
|
*
|
114
|
-
* \returns
|
114
|
+
* \returns a generated integer
|
115
115
|
*/
|
116
116
|
Uint64 SDLTest_RandomUint64(void);
|
117
117
|
|
@@ -119,28 +119,28 @@ Uint64 SDLTest_RandomUint64(void);
|
|
119
119
|
/**
|
120
120
|
* Returns random Sint64.
|
121
121
|
*
|
122
|
-
* \returns
|
122
|
+
* \returns a generated signed integer
|
123
123
|
*/
|
124
124
|
Sint64 SDLTest_RandomSint64(void);
|
125
125
|
|
126
126
|
/**
|
127
|
-
* \returns random float in range [0.0 - 1.0
|
127
|
+
* \returns a random float in range [0.0 - 1.0]
|
128
128
|
*/
|
129
129
|
float SDLTest_RandomUnitFloat(void);
|
130
130
|
|
131
131
|
/**
|
132
|
-
* \returns random double in range [0.0 - 1.0
|
132
|
+
* \returns a random double in range [0.0 - 1.0]
|
133
133
|
*/
|
134
134
|
double SDLTest_RandomUnitDouble(void);
|
135
135
|
|
136
136
|
/**
|
137
|
-
* \returns random float.
|
137
|
+
* \returns a random float.
|
138
138
|
*
|
139
139
|
*/
|
140
140
|
float SDLTest_RandomFloat(void);
|
141
141
|
|
142
142
|
/**
|
143
|
-
* \returns random double.
|
143
|
+
* \returns a random double.
|
144
144
|
*
|
145
145
|
*/
|
146
146
|
double SDLTest_RandomDouble(void);
|
@@ -162,7 +162,7 @@ double SDLTest_RandomDouble(void);
|
|
162
162
|
* \param boundary2 Upper boundary limit
|
163
163
|
* \param validDomain Should the generated boundary be valid (=within the bounds) or not?
|
164
164
|
*
|
165
|
-
* \returns
|
165
|
+
* \returns a random boundary value for the given range and domain or 0 with error set
|
166
166
|
*/
|
167
167
|
Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_bool validDomain);
|
168
168
|
|
@@ -183,7 +183,7 @@ Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_boo
|
|
183
183
|
* \param boundary2 Upper boundary limit
|
184
184
|
* \param validDomain Should the generated boundary be valid (=within the bounds) or not?
|
185
185
|
*
|
186
|
-
* \returns
|
186
|
+
* \returns a random boundary value for the given range and domain or 0 with error set
|
187
187
|
*/
|
188
188
|
Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL_bool validDomain);
|
189
189
|
|
@@ -204,7 +204,7 @@ Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL
|
|
204
204
|
* \param boundary2 Upper boundary limit
|
205
205
|
* \param validDomain Should the generated boundary be valid (=within the bounds) or not?
|
206
206
|
*
|
207
|
-
* \returns
|
207
|
+
* \returns a random boundary value for the given range and domain or 0 with error set
|
208
208
|
*/
|
209
209
|
Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL_bool validDomain);
|
210
210
|
|
@@ -225,7 +225,7 @@ Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL
|
|
225
225
|
* \param boundary2 Upper boundary limit
|
226
226
|
* \param validDomain Should the generated boundary be valid (=within the bounds) or not?
|
227
227
|
*
|
228
|
-
* \returns
|
228
|
+
* \returns a random boundary value for the given range and domain or 0 with error set
|
229
229
|
*/
|
230
230
|
Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain);
|
231
231
|
|
@@ -246,7 +246,7 @@ Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL
|
|
246
246
|
* \param boundary2 Upper boundary limit
|
247
247
|
* \param validDomain Should the generated boundary be valid (=within the bounds) or not?
|
248
248
|
*
|
249
|
-
* \returns
|
249
|
+
* \returns a random boundary value for the given range and domain or SINT8_MIN with error set
|
250
250
|
*/
|
251
251
|
Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_bool validDomain);
|
252
252
|
|
@@ -268,7 +268,7 @@ Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_boo
|
|
268
268
|
* \param boundary2 Upper boundary limit
|
269
269
|
* \param validDomain Should the generated boundary be valid (=within the bounds) or not?
|
270
270
|
*
|
271
|
-
* \returns
|
271
|
+
* \returns a random boundary value for the given range and domain or SINT16_MIN with error set
|
272
272
|
*/
|
273
273
|
Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain);
|
274
274
|
|
@@ -289,7 +289,7 @@ Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL
|
|
289
289
|
* \param boundary2 Upper boundary limit
|
290
290
|
* \param validDomain Should the generated boundary be valid (=within the bounds) or not?
|
291
291
|
*
|
292
|
-
* \returns
|
292
|
+
* \returns a random boundary value for the given range and domain or SINT32_MIN with error set
|
293
293
|
*/
|
294
294
|
Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL_bool validDomain);
|
295
295
|
|
@@ -310,7 +310,7 @@ Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL
|
|
310
310
|
* \param boundary2 Upper boundary limit
|
311
311
|
* \param validDomain Should the generated boundary be valid (=within the bounds) or not?
|
312
312
|
*
|
313
|
-
* \returns
|
313
|
+
* \returns a random boundary value for the given range and domain or SINT64_MIN with error set
|
314
314
|
*/
|
315
315
|
Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain);
|
316
316
|
|
@@ -324,7 +324,7 @@ Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL
|
|
324
324
|
* \param min Minimum inclusive value of returned random number
|
325
325
|
* \param max Maximum inclusive value of returned random number
|
326
326
|
*
|
327
|
-
* \returns
|
327
|
+
* \returns a generated random integer in range
|
328
328
|
*/
|
329
329
|
Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max);
|
330
330
|
|
@@ -336,7 +336,7 @@ Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max);
|
|
336
336
|
*
|
337
337
|
* Note: Returned string needs to be deallocated.
|
338
338
|
*
|
339
|
-
* \returns
|
339
|
+
* \returns a newly allocated random string; or NULL if length was invalid or string could not be allocated.
|
340
340
|
*/
|
341
341
|
char * SDLTest_RandomAsciiString(void);
|
342
342
|
|
@@ -350,7 +350,7 @@ char * SDLTest_RandomAsciiString(void);
|
|
350
350
|
*
|
351
351
|
* \param maxLength The maximum length of the generated string.
|
352
352
|
*
|
353
|
-
* \returns
|
353
|
+
* \returns a newly allocated random string; or NULL if maxLength was invalid or string could not be allocated.
|
354
354
|
*/
|
355
355
|
char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength);
|
356
356
|
|
@@ -364,12 +364,14 @@ char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength);
|
|
364
364
|
*
|
365
365
|
* \param size The length of the generated string
|
366
366
|
*
|
367
|
-
* \returns
|
367
|
+
* \returns a newly allocated random string; or NULL if size was invalid or string could not be allocated.
|
368
368
|
*/
|
369
369
|
char * SDLTest_RandomAsciiStringOfSize(int size);
|
370
370
|
|
371
371
|
/**
|
372
|
-
*
|
372
|
+
* Get the invocation count for the fuzzer since last ...FuzzerInit.
|
373
|
+
*
|
374
|
+
* \returns the invocation count.
|
373
375
|
*/
|
374
376
|
int SDLTest_GetFuzzerInvocationCount(void);
|
375
377
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -76,9 +76,9 @@ typedef struct SDLTest_TestCaseReference {
|
|
76
76
|
/* !< Func2Stress */
|
77
77
|
SDLTest_TestCaseFp testCase;
|
78
78
|
/* !< Short name (or function name) "Func2Stress" */
|
79
|
-
char *name;
|
79
|
+
const char *name;
|
80
80
|
/* !< Long name or full description "This test pushes func2() to the limit." */
|
81
|
-
char *description;
|
81
|
+
const char *description;
|
82
82
|
/* !< Set to TEST_ENABLED or TEST_DISABLED (test won't be run) */
|
83
83
|
int enabled;
|
84
84
|
} SDLTest_TestCaseReference;
|
@@ -88,7 +88,7 @@ typedef struct SDLTest_TestCaseReference {
|
|
88
88
|
*/
|
89
89
|
typedef struct SDLTest_TestSuiteReference {
|
90
90
|
/* !< "PlatformSuite" */
|
91
|
-
char *name;
|
91
|
+
const char *name;
|
92
92
|
/* !< The function that is run before each test. NULL skips. */
|
93
93
|
SDLTest_TestCaseSetUpFp testSetUp;
|
94
94
|
/* !< The test cases that are run as part of the suite. Last item should be NULL. */
|
@@ -105,7 +105,7 @@ typedef struct SDLTest_TestSuiteReference {
|
|
105
105
|
*
|
106
106
|
* \param length The length of the seed string to generate
|
107
107
|
*
|
108
|
-
* \returns
|
108
|
+
* \returns the generated seed string
|
109
109
|
*/
|
110
110
|
char *SDLTest_GenerateRunSeed(const int length);
|
111
111
|
|
@@ -118,7 +118,7 @@ char *SDLTest_GenerateRunSeed(const int length);
|
|
118
118
|
* \param filter Filter specification. NULL disables. Case sensitive.
|
119
119
|
* \param testIterations Number of iterations to run each test case.
|
120
120
|
*
|
121
|
-
* \returns
|
121
|
+
* \returns the test run result: 0 when all tests passed, 1 if any tests failed.
|
122
122
|
*/
|
123
123
|
int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *userRunSeed, Uint64 userExecKey, const char *filter, int testIterations);
|
124
124
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
4
4
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
@@ -98,7 +98,7 @@ extern "C" {
|
|
98
98
|
*
|
99
99
|
* \param rndContext pointer to context structure
|
100
100
|
*
|
101
|
-
* \returns
|
101
|
+
* \returns a random number (32bit unsigned integer)
|
102
102
|
*
|
103
103
|
*/
|
104
104
|
unsigned int SDLTest_Random(SDLTest_RandomContext *rndContext);
|