ruby2d 0.11.0 → 0.11.3
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/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/libmruby.a +0 -0
- data/assets/wasm/template.html +64 -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-ucrt-x86_64/bin/mrbc.exe +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libFLAC.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libLerc.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_image.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_mixer.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_ttf.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlicommon.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlidec.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbz2.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libdeflate.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libfreetype.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libglew32.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libgraphite2.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libharfbuzz.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libjbig.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libjpeg.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/liblzma.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmodplug.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmpg123.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmruby.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libogg.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopus.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopusfile.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libpng16.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libsndfile.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libssp.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libstdc++.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libtiff.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbis.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbisfile.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libwebp.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libz.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libzstd.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 +44 -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 +242 -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 +279 -151
- 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
|
@@ -25,26 +25,32 @@
|
|
25
25
|
|
26
26
|
#include "SDL_platform.h"
|
27
27
|
|
28
|
+
#define SIZEOF_VOIDP 4
|
29
|
+
|
28
30
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
29
31
|
#define SDL_AUDIO_DRIVER_DISK 1
|
30
32
|
#define SDL_AUDIO_DRIVER_OS2 1
|
31
33
|
|
32
34
|
#define SDL_POWER_DISABLED 1
|
33
|
-
#define SDL_JOYSTICK_DISABLED 1
|
34
35
|
#define SDL_HAPTIC_DISABLED 1
|
35
|
-
/*#undef SDL_JOYSTICK_HIDAPI */
|
36
|
-
/*#undef SDL_JOYSTICK_VIRTUAL */
|
37
36
|
|
38
37
|
#define SDL_SENSOR_DUMMY 1
|
39
38
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
40
39
|
#define SDL_VIDEO_DRIVER_OS2 1
|
40
|
+
#define SDL_JOYSTICK_OS2 1
|
41
|
+
#ifndef HAVE_LIBUSB_H /* see Makefile */
|
42
|
+
#define SDL_HIDAPI_DISABLED 1
|
43
|
+
/*#undef SDL_JOYSTICK_HIDAPI */
|
44
|
+
#else
|
45
|
+
#define SDL_JOYSTICK_HIDAPI 1
|
46
|
+
/* dynamically loaded libusb-1.0 dll: */
|
47
|
+
#define SDL_LIBUSB_DYNAMIC "usb100.dll"
|
48
|
+
#endif
|
49
|
+
/*#undef SDL_JOYSTICK_VIRTUAL */
|
41
50
|
|
42
51
|
/* Enable OpenGL support */
|
43
52
|
/* #undef SDL_VIDEO_OPENGL */
|
44
53
|
|
45
|
-
/* Enable Vulkan support */
|
46
|
-
/* #undef SDL_VIDEO_VULKAN */
|
47
|
-
|
48
54
|
#define SDL_THREAD_OS2 1
|
49
55
|
#define SDL_LOADSO_OS2 1
|
50
56
|
#define SDL_TIMER_OS2 1
|
@@ -61,25 +67,32 @@
|
|
61
67
|
|
62
68
|
#define HAVE_LIBC 1
|
63
69
|
|
70
|
+
#define HAVE_STDARG_H 1
|
71
|
+
#define HAVE_STDDEF_H 1
|
72
|
+
#define HAVE_STDINT_H 1
|
73
|
+
|
64
74
|
#define HAVE_SYS_TYPES_H 1
|
65
75
|
#define HAVE_STDIO_H 1
|
66
76
|
#define STDC_HEADERS 1
|
67
77
|
#define HAVE_STDLIB_H 1
|
68
|
-
#define HAVE_STDARG_H 1
|
69
|
-
#define HAVE_STDDEF_H 1
|
70
78
|
#define HAVE_MALLOC_H 1
|
71
79
|
#define HAVE_MEMORY_H 1
|
72
80
|
#define HAVE_STRING_H 1
|
73
81
|
#define HAVE_STRINGS_H 1
|
74
82
|
#define HAVE_WCHAR_H 1
|
75
83
|
#define HAVE_INTTYPES_H 1
|
76
|
-
#define HAVE_STDINT_H 1
|
77
84
|
#define HAVE_LIMITS_H 1
|
78
85
|
#define HAVE_CTYPE_H 1
|
79
86
|
#define HAVE_MATH_H 1
|
80
87
|
#define HAVE_FLOAT_H 1
|
81
88
|
#define HAVE_SIGNAL_H 1
|
82
89
|
|
90
|
+
#if 0 /* see Makefile */
|
91
|
+
#define HAVE_ICONV 1
|
92
|
+
#define HAVE_ICONV_H 1
|
93
|
+
#endif
|
94
|
+
|
95
|
+
/* #undef HAVE_DLOPEN */
|
83
96
|
#define HAVE_MALLOC 1
|
84
97
|
#define HAVE_CALLOC 1
|
85
98
|
#define HAVE_REALLOC 1
|
@@ -105,14 +118,22 @@
|
|
105
118
|
#define HAVE_WCSCMP 1
|
106
119
|
#define HAVE__WCSICMP 1
|
107
120
|
#define HAVE__WCSNICMP 1
|
121
|
+
#define HAVE_WCSLEN 1
|
122
|
+
#define HAVE_WCSLCPY 1
|
123
|
+
#define HAVE_WCSLCAT 1
|
124
|
+
/* #undef HAVE_WCSDUP */
|
125
|
+
#define HAVE__WCSDUP 1
|
126
|
+
#define HAVE_WCSSTR 1
|
127
|
+
#define HAVE_WCSCMP 1
|
128
|
+
#define HAVE_WCSNCMP 1
|
108
129
|
#define HAVE_STRLEN 1
|
109
130
|
#define HAVE_STRLCPY 1
|
110
131
|
#define HAVE_STRLCAT 1
|
111
132
|
#define HAVE__STRREV 1
|
112
133
|
#define HAVE__STRUPR 1
|
113
134
|
#define HAVE__STRLWR 1
|
114
|
-
#
|
115
|
-
#
|
135
|
+
/* #undef HAVE_INDEX */
|
136
|
+
/* #undef HAVE_RINDEX */
|
116
137
|
#define HAVE_STRCHR 1
|
117
138
|
#define HAVE_STRRCHR 1
|
118
139
|
#define HAVE_STRSTR 1
|
@@ -129,14 +150,6 @@
|
|
129
150
|
#define HAVE_STRTOD 1
|
130
151
|
#define HAVE_ATOI 1
|
131
152
|
#define HAVE_ATOF 1
|
132
|
-
#define HAVE_WCSLEN 1
|
133
|
-
#define HAVE_WCSLCPY 1
|
134
|
-
#define HAVE_WCSLCAT 1
|
135
|
-
/* #define HAVE_WCSDUP 1 */
|
136
|
-
/* #define wcsdup _wcsdup */
|
137
|
-
#define HAVE_WCSSTR 1
|
138
|
-
#define HAVE_WCSCMP 1
|
139
|
-
#define HAVE_WCSNCMP 1
|
140
153
|
#define HAVE_STRCMP 1
|
141
154
|
#define HAVE_STRNCMP 1
|
142
155
|
#define HAVE_STRICMP 1
|
@@ -184,5 +197,9 @@
|
|
184
197
|
/* #undef HAVE_TANF */
|
185
198
|
/* #undef HAVE_TRUNC */
|
186
199
|
/* #undef HAVE_TRUNCF */
|
200
|
+
/* #undef HAVE_LROUND */
|
201
|
+
/* #undef HAVE_LROUNDF */
|
202
|
+
/* #undef HAVE_ROUND */
|
203
|
+
/* #undef HAVE_ROUNDF */
|
187
204
|
|
188
205
|
#endif /* SDL_config_os2_h_ */
|
@@ -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
|
@@ -54,6 +54,7 @@
|
|
54
54
|
#define HAVE_STRING_H 1
|
55
55
|
#define HAVE_SYS_TYPES_H 1
|
56
56
|
|
57
|
+
#define HAVE_DLOPEN 1
|
57
58
|
#define HAVE_MALLOC 1
|
58
59
|
#define HAVE_CALLOC 1
|
59
60
|
#define HAVE_REALLOC 1
|
@@ -95,6 +96,10 @@
|
|
95
96
|
#define HAVE_FLOOR 1
|
96
97
|
#define HAVE_LOG 1
|
97
98
|
#define HAVE_LOG10 1
|
99
|
+
#define HAVE_LROUND 1
|
100
|
+
#define HAVE_LROUNDF 1
|
101
|
+
#define HAVE_ROUND 1
|
102
|
+
#define HAVE_ROUNDF 1
|
98
103
|
#define HAVE_SCALBN 1
|
99
104
|
#define HAVE_SIN 1
|
100
105
|
#define HAVE_SINF 1
|
@@ -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
|
@@ -25,8 +25,6 @@
|
|
25
25
|
|
26
26
|
#include "SDL_platform.h"
|
27
27
|
|
28
|
-
|
29
|
-
|
30
28
|
#ifdef __GNUC__
|
31
29
|
#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
|
32
30
|
#endif
|
@@ -34,7 +32,7 @@
|
|
34
32
|
#define HAVE_GCC_ATOMICS 1
|
35
33
|
|
36
34
|
#define STDC_HEADERS 1
|
37
|
-
#define HAVE_ALLOCA_H
|
35
|
+
#define HAVE_ALLOCA_H 1
|
38
36
|
#define HAVE_CTYPE_H 1
|
39
37
|
#define HAVE_INTTYPES_H 1
|
40
38
|
#define HAVE_LIMITS_H 1
|
@@ -132,7 +130,7 @@
|
|
132
130
|
#define SDL_THREAD_PSP 1
|
133
131
|
|
134
132
|
/* Enable the PSP timer support (src/timer/psp/\*.c) */
|
135
|
-
#define
|
133
|
+
#define SDL_TIMER_PSP 1
|
136
134
|
|
137
135
|
/* Enable the PSP joystick driver (src/joystick/psp/\*.c) */
|
138
136
|
#define SDL_JOYSTICK_PSP 1
|
@@ -152,14 +150,16 @@
|
|
152
150
|
|
153
151
|
#define SDL_POWER_PSP 1
|
154
152
|
|
155
|
-
/*
|
156
|
-
#define
|
153
|
+
/* Enable the PSP filesystem support (src/filesystem/psp/\*.c) */
|
154
|
+
#define SDL_FILESYSTEM_PSP 1
|
157
155
|
|
158
156
|
/* PSP doesn't have haptic device (src/haptic/dummy/\*.c) */
|
159
157
|
#define SDL_HAPTIC_DISABLED 1
|
160
158
|
|
159
|
+
/* PSP doesn't have HIDAPI available */
|
160
|
+
#define SDL_HIDAPI_DISABLED 1
|
161
|
+
|
161
162
|
/* PSP can't load shared object (src/loadso/dummy/\*.c) */
|
162
163
|
#define SDL_LOADSO_DISABLED 1
|
163
164
|
|
164
|
-
|
165
165
|
#endif /* SDL_config_psp_h_ */
|
@@ -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
|
@@ -25,10 +25,23 @@
|
|
25
25
|
|
26
26
|
#include "SDL_platform.h"
|
27
27
|
|
28
|
+
/* winsdkver.h defines _WIN32_MAXVER for SDK version detection. It is present since at least the Windows 7 SDK,
|
29
|
+
* but out of caution we'll only use it if the compiler supports __has_include() to confirm its presence.
|
30
|
+
* If your compiler doesn't support __has_include() but you have winsdkver.h, define HAVE_WINSDKVER_H. */
|
31
|
+
#if !defined(HAVE_WINSDKVER_H) && defined(__has_include)
|
32
|
+
#if __has_include(<winsdkver.h>)
|
33
|
+
#define HAVE_WINSDKVER_H 1
|
34
|
+
#endif
|
35
|
+
#endif
|
36
|
+
|
37
|
+
#ifdef HAVE_WINSDKVER_H
|
38
|
+
#include <winsdkver.h>
|
39
|
+
#endif
|
40
|
+
|
28
41
|
/* This is a set of defines to configure the SDL features */
|
29
42
|
|
30
43
|
#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
|
31
|
-
#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
|
44
|
+
#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__) || defined(__clang__) || defined(__BORLANDC__) || defined(__CODEGEARC__)
|
32
45
|
#define HAVE_STDINT_H 1
|
33
46
|
#elif defined(_MSC_VER)
|
34
47
|
typedef signed __int8 int8_t;
|
@@ -82,9 +95,23 @@ typedef unsigned int uintptr_t;
|
|
82
95
|
#define HAVE_DSOUND_H 1
|
83
96
|
#define HAVE_DXGI_H 1
|
84
97
|
#define HAVE_XINPUT_H 1
|
98
|
+
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0A00 /* Windows 10 SDK */
|
99
|
+
#define HAVE_WINDOWS_GAMING_INPUT_H 1
|
100
|
+
#endif
|
101
|
+
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0602 /* Windows 8 SDK */
|
102
|
+
#define HAVE_D3D11_H 1
|
103
|
+
#endif
|
85
104
|
#define HAVE_MMDEVICEAPI_H 1
|
86
105
|
#define HAVE_AUDIOCLIENT_H 1
|
87
|
-
#define
|
106
|
+
#define HAVE_TPCSHRD_H 1
|
107
|
+
#define HAVE_SENSORSAPI_H 1
|
108
|
+
#if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600)
|
109
|
+
#define HAVE_IMMINTRIN_H 1
|
110
|
+
#elif defined(__has_include) && (defined(__i386__) || defined(__x86_64))
|
111
|
+
# if __has_include(<immintrin.h>)
|
112
|
+
# define HAVE_IMMINTRIN_H 1
|
113
|
+
# endif
|
114
|
+
#endif
|
88
115
|
|
89
116
|
/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
|
90
117
|
#ifdef HAVE_LIBC
|
@@ -119,9 +146,6 @@ typedef unsigned int uintptr_t;
|
|
119
146
|
#define HAVE_STRRCHR 1
|
120
147
|
#define HAVE_STRSTR 1
|
121
148
|
/* #undef HAVE_STRTOK_R */
|
122
|
-
#if defined(_MSC_VER)
|
123
|
-
#define HAVE_STRTOK_S 1
|
124
|
-
#endif
|
125
149
|
/* These functions have security warnings, so we won't use them */
|
126
150
|
/* #undef HAVE__LTOA */
|
127
151
|
/* #undef HAVE__ULTOA */
|
@@ -136,6 +160,7 @@ typedef unsigned int uintptr_t;
|
|
136
160
|
#define HAVE__STRNICMP 1
|
137
161
|
#define HAVE__WCSICMP 1
|
138
162
|
#define HAVE__WCSNICMP 1
|
163
|
+
#define HAVE__WCSDUP 1
|
139
164
|
#define HAVE_ACOS 1
|
140
165
|
#define HAVE_ACOSF 1
|
141
166
|
#define HAVE_ASIN 1
|
@@ -172,7 +197,12 @@ typedef unsigned int uintptr_t;
|
|
172
197
|
/* These functions were added with the VC++ 2013 C runtime library */
|
173
198
|
#if _MSC_VER >= 1800
|
174
199
|
#define HAVE_STRTOLL 1
|
200
|
+
#define HAVE_STRTOULL 1
|
175
201
|
#define HAVE_VSSCANF 1
|
202
|
+
#define HAVE_LROUND 1
|
203
|
+
#define HAVE_LROUNDF 1
|
204
|
+
#define HAVE_ROUND 1
|
205
|
+
#define HAVE_ROUNDF 1
|
176
206
|
#define HAVE_SCALBN 1
|
177
207
|
#define HAVE_SCALBNF 1
|
178
208
|
#define HAVE_TRUNC 1
|
@@ -191,20 +221,6 @@ typedef unsigned int uintptr_t;
|
|
191
221
|
#define HAVE_STDDEF_H 1
|
192
222
|
#endif
|
193
223
|
|
194
|
-
/* Check to see if we have Windows 10 build environment */
|
195
|
-
#if _MSC_VER >= 1911 /* Visual Studio 15.3 */
|
196
|
-
#include <sdkddkver.h>
|
197
|
-
#if _WIN32_WINNT >= 0x0601 /* Windows 7 */
|
198
|
-
#define SDL_WINDOWS7_SDK
|
199
|
-
#endif
|
200
|
-
#if _WIN32_WINNT >= 0x0602 /* Windows 8 */
|
201
|
-
#define SDL_WINDOWS8_SDK
|
202
|
-
#endif
|
203
|
-
#if _WIN32_WINNT >= 0x0A00 /* Windows 10 */
|
204
|
-
#define SDL_WINDOWS10_SDK
|
205
|
-
#endif
|
206
|
-
#endif /* _MSC_VER >= 1911 */
|
207
|
-
|
208
224
|
/* Enable various audio drivers */
|
209
225
|
#define SDL_AUDIO_DRIVER_WASAPI 1
|
210
226
|
#define SDL_AUDIO_DRIVER_DSOUND 1
|
@@ -219,7 +235,7 @@ typedef unsigned int uintptr_t;
|
|
219
235
|
#define SDL_JOYSTICK_RAWINPUT 1
|
220
236
|
#endif
|
221
237
|
#define SDL_JOYSTICK_VIRTUAL 1
|
222
|
-
#ifdef
|
238
|
+
#ifdef HAVE_WINDOWS_GAMING_INPUT_H
|
223
239
|
#define SDL_JOYSTICK_WGI 1
|
224
240
|
#endif
|
225
241
|
#define SDL_JOYSTICK_XINPUT 1
|
@@ -233,6 +249,7 @@ typedef unsigned int uintptr_t;
|
|
233
249
|
#define SDL_LOADSO_WINDOWS 1
|
234
250
|
|
235
251
|
/* Enable various threading systems */
|
252
|
+
#define SDL_THREAD_GENERIC_COND_SUFFIX 1
|
236
253
|
#define SDL_THREAD_WINDOWS 1
|
237
254
|
|
238
255
|
/* Enable various timer systems */
|
@@ -245,7 +262,7 @@ typedef unsigned int uintptr_t;
|
|
245
262
|
#ifndef SDL_VIDEO_RENDER_D3D
|
246
263
|
#define SDL_VIDEO_RENDER_D3D 1
|
247
264
|
#endif
|
248
|
-
#
|
265
|
+
#if !defined(SDL_VIDEO_RENDER_D3D11) && defined(HAVE_D3D11_H)
|
249
266
|
#define SDL_VIDEO_RENDER_D3D11 1
|
250
267
|
#endif
|
251
268
|
|
@@ -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
|
@@ -100,6 +100,7 @@ typedef unsigned int uintptr_t;
|
|
100
100
|
|
101
101
|
#define HAVE_MMDEVICEAPI_H 1
|
102
102
|
#define HAVE_AUDIOCLIENT_H 1
|
103
|
+
#define HAVE_TPCSHRD_H 1
|
103
104
|
|
104
105
|
#define HAVE_LIBC 1
|
105
106
|
#define STDC_HEADERS 1
|
@@ -126,17 +127,13 @@ typedef unsigned int uintptr_t;
|
|
126
127
|
#define HAVE_STRLEN 1
|
127
128
|
#define HAVE__STRREV 1
|
128
129
|
#define HAVE__STRUPR 1
|
129
|
-
//#define HAVE__STRLWR 1 // TODO, WinRT: consider using _strlwr_s instead
|
130
130
|
#define HAVE_STRCHR 1
|
131
131
|
#define HAVE_STRRCHR 1
|
132
132
|
#define HAVE_STRSTR 1
|
133
|
-
#define HAVE_STRTOK_S 1
|
134
|
-
//#define HAVE_ITOA 1 // TODO, WinRT: consider using _itoa_s instead
|
135
|
-
//#define HAVE__LTOA 1 // TODO, WinRT: consider using _ltoa_s instead
|
136
|
-
//#define HAVE__ULTOA 1 // TODO, WinRT: consider using _ultoa_s instead
|
137
133
|
#define HAVE_STRTOL 1
|
138
134
|
#define HAVE_STRTOUL 1
|
139
|
-
|
135
|
+
/* #undef HAVE_STRTOLL */
|
136
|
+
/* #undef HAVE_STRTOULL */
|
140
137
|
#define HAVE_STRTOD 1
|
141
138
|
#define HAVE_ATOI 1
|
142
139
|
#define HAVE_ATOF 1
|
@@ -145,7 +142,12 @@ typedef unsigned int uintptr_t;
|
|
145
142
|
#define HAVE__STRICMP 1
|
146
143
|
#define HAVE__STRNICMP 1
|
147
144
|
#define HAVE_VSNPRINTF 1
|
148
|
-
|
145
|
+
/* TODO, WinRT: consider using ??_s versions of the following */
|
146
|
+
/* #undef HAVE__STRLWR */
|
147
|
+
/* #undef HAVE_ITOA */
|
148
|
+
/* #undef HAVE__LTOA */
|
149
|
+
/* #undef HAVE__ULTOA */
|
150
|
+
/* #undef HAVE_SSCANF */
|
149
151
|
#define HAVE_M_PI 1
|
150
152
|
#define HAVE_ACOS 1
|
151
153
|
#define HAVE_ACOSF 1
|
@@ -172,8 +174,12 @@ typedef unsigned int uintptr_t;
|
|
172
174
|
#define HAVE_LOGF 1
|
173
175
|
#define HAVE_LOG10 1
|
174
176
|
#define HAVE_LOG10F 1
|
177
|
+
#define HAVE_LROUND 1
|
178
|
+
#define HAVE_LROUNDF 1
|
175
179
|
#define HAVE_POW 1
|
176
180
|
#define HAVE_POWF 1
|
181
|
+
#define HAVE_ROUND 1
|
182
|
+
#define HAVE_ROUNDF 1
|
177
183
|
#define HAVE__SCALB 1
|
178
184
|
#define HAVE_SIN 1
|
179
185
|
#define HAVE_SINF 1
|
@@ -196,10 +202,18 @@ typedef unsigned int uintptr_t;
|
|
196
202
|
#define SDL_HAPTIC_DISABLED 1
|
197
203
|
#else
|
198
204
|
#define SDL_JOYSTICK_VIRTUAL 1
|
205
|
+
#if (NTDDI_VERSION >= NTDDI_WIN10)
|
206
|
+
#define SDL_JOYSTICK_WGI 1
|
207
|
+
#define SDL_HAPTIC_DISABLED 1
|
208
|
+
#else
|
199
209
|
#define SDL_JOYSTICK_XINPUT 1
|
200
210
|
#define SDL_HAPTIC_XINPUT 1
|
211
|
+
#endif /* WIN10 */
|
201
212
|
#endif
|
202
213
|
|
214
|
+
/* WinRT doesn't have HIDAPI available */
|
215
|
+
#define SDL_HIDAPI_DISABLED 1
|
216
|
+
|
203
217
|
/* Enable the dummy sensor driver */
|
204
218
|
#define SDL_SENSOR_DUMMY 1
|
205
219
|
|
@@ -208,6 +222,7 @@ typedef unsigned int uintptr_t;
|
|
208
222
|
|
209
223
|
/* Enable various threading systems */
|
210
224
|
#if (NTDDI_VERSION >= NTDDI_WINBLUE)
|
225
|
+
#define SDL_THREAD_GENERIC_COND_SUFFIX 1
|
211
226
|
#define SDL_THREAD_WINDOWS 1
|
212
227
|
#else
|
213
228
|
/* WinRT on Windows 8.0 and Windows Phone 8.0 don't support CreateThread() */
|
@@ -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,6 +48,7 @@
|
|
48
48
|
#define HAVE_STRING_H 1
|
49
49
|
#define HAVE_SYS_TYPES_H 1
|
50
50
|
|
51
|
+
#define HAVE_DLOPEN 1
|
51
52
|
#define HAVE_MALLOC 1
|
52
53
|
#define HAVE_CALLOC 1
|
53
54
|
#define HAVE_REALLOC 1
|
@@ -107,8 +108,12 @@
|
|
107
108
|
#define HAVE_LOGF 1
|
108
109
|
#define HAVE_LOG10 1
|
109
110
|
#define HAVE_LOG10F 1
|
111
|
+
#define HAVE_LROUND 1
|
112
|
+
#define HAVE_LROUNDF 1
|
110
113
|
#define HAVE_POW 1
|
111
114
|
#define HAVE_POWF 1
|
115
|
+
#define HAVE_ROUND 1
|
116
|
+
#define HAVE_ROUNDF 1
|
112
117
|
#define HAVE_SCALBN 1
|
113
118
|
#define HAVE_SCALBNF 1
|
114
119
|
#define HAVE_SIN 1
|
@@ -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
|