gosu 1.4.6 → 1.5.0
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/COPYING +2 -1
- data/dependencies/SDL/include/SDL3/SDL.h +91 -0
- data/dependencies/SDL/include/SDL3/SDL_assert.h +710 -0
- data/dependencies/SDL/include/SDL3/SDL_asyncio.h +550 -0
- data/dependencies/SDL/include/SDL3/SDL_atomic.h +692 -0
- data/dependencies/SDL/include/SDL3/SDL_audio.h +2382 -0
- data/dependencies/SDL/include/SDL3/SDL_begin_code.h +553 -0
- data/dependencies/SDL/include/{SDL_bits.h → SDL3/SDL_bits.h} +47 -27
- data/dependencies/SDL/include/{SDL_blendmode.h → SDL3/SDL_blendmode.h} +59 -55
- data/dependencies/SDL/include/SDL3/SDL_camera.h +535 -0
- data/dependencies/SDL/include/SDL3/SDL_clipboard.h +331 -0
- data/dependencies/SDL/include/{close_code.h → SDL3/SDL_close_code.h} +9 -8
- data/dependencies/SDL/include/{SDL_types.h → SDL3/SDL_copying.h} +2 -9
- data/dependencies/SDL/include/SDL3/SDL_cpuinfo.h +374 -0
- data/dependencies/SDL/include/SDL3/SDL_dialog.h +343 -0
- data/dependencies/SDL/include/SDL3/SDL_dlopennote.h +234 -0
- data/dependencies/SDL/include/{SDL_egl.h → SDL3/SDL_egl.h} +11 -8
- data/dependencies/SDL/include/SDL3/SDL_endian.h +645 -0
- data/dependencies/SDL/include/SDL3/SDL_error.h +226 -0
- data/dependencies/SDL/include/SDL3/SDL_events.h +1651 -0
- data/dependencies/SDL/include/SDL3/SDL_filesystem.h +537 -0
- data/dependencies/SDL/include/SDL3/SDL_gamepad.h +1657 -0
- data/dependencies/SDL/include/SDL3/SDL_gpu.h +4637 -0
- data/dependencies/SDL/include/SDL3/SDL_guid.h +106 -0
- data/dependencies/SDL/include/SDL3/SDL_haptic.h +1461 -0
- data/dependencies/SDL/include/SDL3/SDL_hidapi.h +571 -0
- data/dependencies/SDL/include/SDL3/SDL_hints.h +5041 -0
- data/dependencies/SDL/include/SDL3/SDL_init.h +508 -0
- data/dependencies/SDL/include/SDL3/SDL_intrin.h +410 -0
- data/dependencies/SDL/include/SDL3/SDL_iostream.h +1379 -0
- data/dependencies/SDL/include/SDL3/SDL_joystick.h +1385 -0
- data/dependencies/SDL/include/SDL3/SDL_keyboard.h +615 -0
- data/dependencies/SDL/include/SDL3/SDL_keycode.h +348 -0
- data/dependencies/SDL/include/SDL3/SDL_loadso.h +145 -0
- data/dependencies/SDL/include/{SDL_locale.h → SDL3/SDL_locale.h} +40 -24
- data/dependencies/SDL/include/SDL3/SDL_log.h +541 -0
- data/dependencies/SDL/include/SDL3/SDL_main.h +704 -0
- data/dependencies/SDL/include/SDL3/SDL_main_impl.h +149 -0
- data/dependencies/SDL/include/{SDL_messagebox.h → SDL3/SDL_messagebox.h} +85 -48
- data/dependencies/SDL/include/{SDL_metal.h → SDL3/SDL_metal.h} +29 -29
- data/dependencies/SDL/include/{SDL_misc.h → SDL3/SDL_misc.h} +13 -12
- data/dependencies/SDL/include/SDL3/SDL_mouse.h +813 -0
- data/dependencies/SDL/include/SDL3/SDL_mutex.h +1117 -0
- data/dependencies/SDL/include/SDL3/SDL_oldnames.h +1339 -0
- data/dependencies/SDL/include/{SDL_opengl.h → SDL3/SDL_opengl.h} +1247 -278
- data/dependencies/SDL/include/{SDL_opengl_glext.h → SDL3/SDL_opengl_glext.h} +5 -1
- data/dependencies/SDL/include/{SDL_opengles.h → SDL3/SDL_opengles.h} +6 -7
- data/dependencies/SDL/include/{SDL_opengles2.h → SDL3/SDL_opengles2.h} +10 -11
- data/dependencies/SDL/include/SDL3/SDL_pen.h +198 -0
- data/dependencies/SDL/include/SDL3/SDL_pixels.h +1441 -0
- data/dependencies/SDL/include/{SDL_test_log.h → SDL3/SDL_platform.h} +25 -26
- data/dependencies/SDL/include/SDL3/SDL_platform_defines.h +497 -0
- data/dependencies/SDL/include/{SDL_power.h → SDL3/SDL_power.h} +40 -20
- data/dependencies/SDL/include/SDL3/SDL_process.h +441 -0
- data/dependencies/SDL/include/SDL3/SDL_properties.h +572 -0
- data/dependencies/SDL/include/SDL3/SDL_rect.h +528 -0
- data/dependencies/SDL/include/SDL3/SDL_render.h +3034 -0
- data/dependencies/SDL/include/SDL3/SDL_revision.h +56 -0
- data/dependencies/SDL/include/{SDL_scancode.h → SDL3/SDL_scancode.h} +60 -68
- data/dependencies/SDL/include/SDL3/SDL_sensor.h +321 -0
- data/dependencies/SDL/include/SDL3/SDL_stdinc.h +6186 -0
- data/dependencies/SDL/include/SDL3/SDL_storage.h +686 -0
- data/dependencies/SDL/include/SDL3/SDL_surface.h +1769 -0
- data/dependencies/SDL/include/SDL3/SDL_system.h +840 -0
- data/dependencies/SDL/include/{SDL_test.h → SDL3/SDL_test.h} +16 -22
- data/dependencies/SDL/include/{SDL_test_assert.h → SDL3/SDL_test_assert.h} +27 -34
- data/dependencies/SDL/include/{SDL_test_common.h → SDL3/SDL_test_common.h} +109 -52
- data/dependencies/SDL/include/{SDL_test_compare.h → SDL3/SDL_test_compare.h} +22 -14
- data/dependencies/SDL/include/{SDL_test_crc32.h → SDL3/SDL_test_crc32.h} +27 -30
- data/dependencies/SDL/include/{SDL_test_font.h → SDL3/SDL_test_font.h} +50 -49
- data/dependencies/SDL/include/{SDL_test_fuzzer.h → SDL3/SDL_test_fuzzer.h} +64 -79
- data/dependencies/SDL/include/{SDL_test_harness.h → SDL3/SDL_test_harness.h} +47 -30
- data/dependencies/SDL/include/SDL3/SDL_test_log.h +83 -0
- data/dependencies/SDL/include/{SDL_test_md5.h → SDL3/SDL_test_md5.h} +21 -28
- data/dependencies/SDL/include/{SDL_test_memory.h → SDL3/SDL_test_memory.h} +19 -16
- data/dependencies/SDL/include/SDL3/SDL_thread.h +602 -0
- data/dependencies/SDL/include/SDL3/SDL_time.h +249 -0
- data/dependencies/SDL/include/SDL3/SDL_timer.h +454 -0
- data/dependencies/SDL/include/SDL3/SDL_touch.h +184 -0
- data/dependencies/SDL/include/SDL3/SDL_tray.h +544 -0
- data/dependencies/SDL/include/SDL3/SDL_version.h +198 -0
- data/dependencies/SDL/include/SDL3/SDL_video.h +3497 -0
- data/dependencies/SDL/include/SDL3/SDL_vulkan.h +287 -0
- data/dependencies/SDL/lib/x64/libSDL3.dll.a +0 -0
- data/dependencies/SDL/lib/x86/libSDL3.dll.a +0 -0
- data/dependencies/SDL_sound/SDL3_sound/SDL_sound.h +755 -0
- data/dependencies/SDL_sound/SDL_sound.c +136 -215
- data/dependencies/SDL_sound/SDL_sound_aiff.c +55 -54
- data/dependencies/SDL_sound/SDL_sound_au.c +32 -32
- data/dependencies/SDL_sound/SDL_sound_coreaudio.c +24 -41
- data/dependencies/SDL_sound/SDL_sound_flac.c +32 -12
- data/dependencies/SDL_sound/SDL_sound_internal.h +33 -48
- data/dependencies/SDL_sound/SDL_sound_modplug.c +21 -29
- data/dependencies/SDL_sound/SDL_sound_mp3.c +35 -13
- data/dependencies/SDL_sound/SDL_sound_raw.c +14 -15
- data/dependencies/SDL_sound/SDL_sound_shn.c +82 -82
- data/dependencies/SDL_sound/SDL_sound_voc.c +30 -30
- data/dependencies/SDL_sound/SDL_sound_vorbis.c +34 -25
- data/dependencies/SDL_sound/SDL_sound_wav.c +86 -82
- data/dependencies/SDL_sound/dr_flac.h +1890 -1301
- data/dependencies/SDL_sound/dr_mp3.h +1098 -660
- data/dependencies/SDL_sound/libmodplug/fastmix.c +1 -1
- data/dependencies/SDL_sound/libmodplug/libmodplug.h +5 -4
- data/dependencies/SDL_sound/libmodplug/load_ams.c +6 -3
- data/dependencies/SDL_sound/libmodplug/load_dsm.c +2 -1
- data/dependencies/SDL_sound/libmodplug/load_mt2.c +2 -2
- data/dependencies/SDL_sound/libmodplug/modplug.h +2 -1
- data/dependencies/SDL_sound/libmodplug/snd_fx.c +3 -3
- data/dependencies/SDL_sound/libmodplug/sndfile.c +3 -0
- data/dependencies/SDL_sound/libmodplug/sndmix.c +7 -3
- data/dependencies/SDL_sound/stb_vorbis.h +397 -342
- data/dependencies/mojoAL/AL/alc.h +2 -2
- data/dependencies/mojoAL/mojoal.c +2120 -1885
- data/dependencies/stb/stb_image.h +1190 -1379
- data/dependencies/stb/stb_image_write.h +329 -129
- data/dependencies/stb/stb_truetype.h +304 -60
- data/dependencies/utf8proc/utf8proc.c +133 -75
- data/dependencies/utf8proc/utf8proc.h +131 -50
- data/dependencies/utf8proc/utf8proc_data.h +16213 -15658
- data/ext/gosu-ffi/extconf.rb +103 -0
- data/ext/gosu-ffi/gosu-ffi.def +467 -0
- data/ffi/Gosu.cpp +330 -0
- data/ffi/Gosu.h +84 -0
- data/ffi/Gosu_Channel.cpp +62 -0
- data/ffi/Gosu_Channel.h +17 -0
- data/ffi/Gosu_Color.cpp +176 -0
- data/ffi/Gosu_Color.h +31 -0
- data/ffi/Gosu_Constants.cpp +334 -0
- data/ffi/Gosu_FFI.h +34 -0
- data/ffi/Gosu_FFI_internal.h +160 -0
- data/ffi/Gosu_Font.cpp +97 -0
- data/ffi/Gosu_Font.h +32 -0
- data/ffi/Gosu_Image.cpp +239 -0
- data/ffi/Gosu_Image.h +71 -0
- data/ffi/Gosu_Sample.cpp +29 -0
- data/ffi/Gosu_Sample.h +14 -0
- data/ffi/Gosu_Song.cpp +69 -0
- data/ffi/Gosu_Song.h +18 -0
- data/ffi/Gosu_TextInput.cpp +94 -0
- data/ffi/Gosu_TextInput.h +25 -0
- data/ffi/Gosu_Window.cpp +314 -0
- data/ffi/Gosu_Window.h +78 -0
- data/include/Gosu/Audio.hpp +6 -11
- data/include/Gosu/Bitmap.hpp +38 -53
- data/include/Gosu/Buffer.hpp +54 -0
- data/include/Gosu/Color.hpp +29 -36
- data/include/Gosu/Directories.hpp +25 -28
- data/include/Gosu/Drawable.hpp +58 -0
- data/include/Gosu/Font.hpp +6 -5
- data/include/Gosu/Fwd.hpp +4 -6
- data/include/Gosu/Gosu.hpp +5 -5
- data/include/Gosu/Graphics.hpp +53 -61
- data/include/Gosu/GraphicsBase.hpp +1 -11
- data/include/Gosu/Image.hpp +12 -15
- data/include/Gosu/Math.hpp +50 -72
- data/include/Gosu/Transform.hpp +32 -0
- data/include/Gosu/Utility.hpp +77 -1
- data/include/Gosu/Version.hpp +2 -2
- data/include/Gosu/Window.hpp +15 -9
- data/lib/SDL3.dll +0 -0
- data/lib/gosu/channel.rb +50 -0
- data/lib/gosu/color.rb +173 -0
- data/lib/gosu/compat.rb +130 -17
- data/lib/gosu/constants.rb +386 -0
- data/lib/gosu/ffi.rb +269 -0
- data/lib/gosu/font.rb +62 -0
- data/lib/gosu/gl_tex_info.rb +33 -0
- data/lib/gosu/gosu.rb +250 -0
- data/lib/gosu/image.rb +179 -0
- data/lib/gosu/numeric.rb +17 -0
- data/lib/gosu/preview.rb +6 -6
- data/lib/gosu/sample.rb +25 -0
- data/lib/gosu/song.rb +57 -0
- data/lib/gosu/text_input.rb +83 -0
- data/lib/gosu/window.rb +249 -0
- data/lib/gosu.rb +29 -8
- data/lib64/SDL3.dll +0 -0
- data/rdoc/gosu.rb +2 -2
- data/src/Audio.cpp +30 -24
- data/src/AudioFile.hpp +5 -4
- data/src/AudioFileAudioToolbox.cpp +8 -8
- data/src/AudioFileSDLSound.cpp +12 -15
- data/src/BinPacker.cpp +188 -0
- data/src/BinPacker.hpp +55 -0
- data/src/Bitmap.cpp +172 -143
- data/src/BitmapIO.cpp +60 -86
- data/src/Buffer.cpp +150 -0
- data/src/ClipRectStack.cpp +38 -0
- data/src/ClipRectStack.hpp +17 -83
- data/src/Color.cpp +75 -80
- data/src/Directories.cpp +47 -0
- data/src/DirectoriesUIKit.cpp +50 -0
- data/src/DrawOp.hpp +20 -18
- data/src/DrawOpQueue.hpp +27 -33
- data/src/Drawable.cpp +95 -0
- data/src/EmptyDrawable.hpp +38 -0
- data/src/FPS.cpp +31 -0
- data/src/Font.cpp +104 -74
- data/src/GosuGLView.cpp +13 -11
- data/src/GosuViewController.cpp +2 -10
- data/src/Graphics.cpp +86 -145
- data/src/GraphicsImpl.hpp +14 -68
- data/src/Image.cpp +41 -35
- data/src/Input.cpp +73 -78
- data/src/Macro.cpp +46 -29
- data/src/Macro.hpp +23 -17
- data/src/MarkupParser.cpp +5 -5
- data/src/Math.cpp +48 -22
- data/src/OffScreenTarget.cpp +47 -50
- data/src/OffScreenTarget.hpp +13 -11
- data/src/OpenGLContext.cpp +116 -0
- data/src/OpenGLContext.hpp +41 -0
- data/src/RenderState.hpp +49 -71
- data/src/Resolution.cpp +65 -53
- data/src/TexChunk.cpp +35 -80
- data/src/TexChunk.hpp +44 -35
- data/src/Text.cpp +1 -1
- data/src/TextBuilder.cpp +35 -21
- data/src/TextBuilder.hpp +6 -9
- data/src/TextInput.cpp +9 -9
- data/src/Texture.cpp +62 -80
- data/src/Texture.hpp +25 -23
- data/src/TiledDrawable.cpp +149 -0
- data/src/TiledDrawable.hpp +47 -0
- data/src/TimingApple.cpp +1 -1
- data/src/Transform.cpp +45 -50
- data/src/TransformStack.hpp +16 -16
- data/src/TrueTypeFont.cpp +59 -51
- data/src/TrueTypeFont.hpp +6 -7
- data/src/TrueTypeFontApple.cpp +28 -19
- data/src/TrueTypeFontUnix.cpp +39 -32
- data/src/TrueTypeFontWin.cpp +30 -30
- data/src/Utility.cpp +113 -37
- data/src/UtilityWin.cpp +49 -0
- data/src/Window.cpp +121 -151
- data/src/WindowUIKit.cpp +14 -14
- metadata +165 -118
- data/dependencies/SDL/include/SDL.h +0 -233
- data/dependencies/SDL/include/SDL_assert.h +0 -320
- data/dependencies/SDL/include/SDL_atomic.h +0 -415
- data/dependencies/SDL/include/SDL_audio.h +0 -1500
- data/dependencies/SDL/include/SDL_clipboard.h +0 -141
- data/dependencies/SDL/include/SDL_config.h +0 -331
- data/dependencies/SDL/include/SDL_cpuinfo.h +0 -594
- data/dependencies/SDL/include/SDL_endian.h +0 -348
- data/dependencies/SDL/include/SDL_error.h +0 -163
- data/dependencies/SDL/include/SDL_events.h +0 -1166
- data/dependencies/SDL/include/SDL_filesystem.h +0 -149
- data/dependencies/SDL/include/SDL_gamecontroller.h +0 -1074
- data/dependencies/SDL/include/SDL_gesture.h +0 -117
- data/dependencies/SDL/include/SDL_guid.h +0 -100
- data/dependencies/SDL/include/SDL_haptic.h +0 -1341
- data/dependencies/SDL/include/SDL_hidapi.h +0 -451
- data/dependencies/SDL/include/SDL_hints.h +0 -2569
- data/dependencies/SDL/include/SDL_joystick.h +0 -1066
- data/dependencies/SDL/include/SDL_keyboard.h +0 -353
- data/dependencies/SDL/include/SDL_keycode.h +0 -358
- data/dependencies/SDL/include/SDL_loadso.h +0 -115
- data/dependencies/SDL/include/SDL_log.h +0 -404
- data/dependencies/SDL/include/SDL_main.h +0 -275
- data/dependencies/SDL/include/SDL_mouse.h +0 -465
- data/dependencies/SDL/include/SDL_mutex.h +0 -471
- data/dependencies/SDL/include/SDL_name.h +0 -33
- data/dependencies/SDL/include/SDL_pixels.h +0 -644
- data/dependencies/SDL/include/SDL_platform.h +0 -261
- data/dependencies/SDL/include/SDL_quit.h +0 -58
- data/dependencies/SDL/include/SDL_rect.h +0 -376
- data/dependencies/SDL/include/SDL_render.h +0 -1919
- data/dependencies/SDL/include/SDL_revision.h +0 -7
- data/dependencies/SDL/include/SDL_rwops.h +0 -841
- data/dependencies/SDL/include/SDL_sensor.h +0 -322
- data/dependencies/SDL/include/SDL_shape.h +0 -155
- data/dependencies/SDL/include/SDL_stdinc.h +0 -830
- data/dependencies/SDL/include/SDL_surface.h +0 -997
- data/dependencies/SDL/include/SDL_system.h +0 -623
- data/dependencies/SDL/include/SDL_syswm.h +0 -386
- data/dependencies/SDL/include/SDL_test_images.h +0 -78
- data/dependencies/SDL/include/SDL_test_random.h +0 -115
- data/dependencies/SDL/include/SDL_thread.h +0 -464
- data/dependencies/SDL/include/SDL_timer.h +0 -222
- data/dependencies/SDL/include/SDL_touch.h +0 -150
- data/dependencies/SDL/include/SDL_version.h +0 -204
- data/dependencies/SDL/include/SDL_video.h +0 -2150
- data/dependencies/SDL/include/SDL_vulkan.h +0 -215
- data/dependencies/SDL/include/begin_code.h +0 -187
- data/dependencies/SDL/lib/x64/libSDL2.dll.a +0 -0
- data/dependencies/SDL/lib/x86/libSDL2.dll.a +0 -0
- data/dependencies/SDL_sound/SDL_sound.h +0 -725
- data/ext/gosu/extconf.rb +0 -119
- data/include/Gosu/IO.hpp +0 -254
- data/include/Gosu/ImageData.hpp +0 -53
- data/include/Gosu/Inspection.hpp +0 -7
- data/lib/SDL2.dll +0 -0
- data/lib/gosu/patches.rb +0 -66
- data/lib/gosu/run.rb +0 -20
- data/lib/gosu/swig_patches.rb +0 -110
- data/lib64/SDL2.dll +0 -0
- data/src/BlockAllocator.cpp +0 -131
- data/src/BlockAllocator.hpp +0 -32
- data/src/DirectoriesApple.cpp +0 -69
- data/src/DirectoriesUnix.cpp +0 -46
- data/src/DirectoriesWin.cpp +0 -65
- data/src/EmptyImageData.hpp +0 -52
- data/src/FileUnix.cpp +0 -99
- data/src/FileWin.cpp +0 -88
- data/src/IO.cpp +0 -60
- data/src/Iconv.hpp +0 -51
- data/src/Inspection.cpp +0 -27
- data/src/LargeImageData.cpp +0 -215
- data/src/LargeImageData.hpp +0 -39
- data/src/Log.hpp +0 -19
- data/src/RubyGosu.cxx +0 -13100
- data/src/RubyGosu.h +0 -49
- data/src/WinUtility.cpp +0 -61
- data/src/WinUtility.hpp +0 -27
- /data/dependencies/SDL/include/{SDL_opengles2_gl2.h → SDL3/SDL_opengles2_gl2.h} +0 -0
- /data/dependencies/SDL/include/{SDL_opengles2_gl2ext.h → SDL3/SDL_opengles2_gl2ext.h} +0 -0
- /data/dependencies/SDL/include/{SDL_opengles2_gl2platform.h → SDL3/SDL_opengles2_gl2platform.h} +0 -0
- /data/dependencies/SDL/include/{SDL_opengles2_khrplatform.h → SDL3/SDL_opengles2_khrplatform.h} +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
require "rbconfig"
|
|
2
|
+
|
|
3
|
+
case RbConfig::CONFIG["host_os"]
|
|
4
|
+
when /^mingw/
|
|
5
|
+
windows = true
|
|
6
|
+
when /^darwin/
|
|
7
|
+
macos = true
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
if not windows
|
|
11
|
+
puts "The Gosu gem requires some libraries to be installed system-wide."
|
|
12
|
+
puts "See the following wiki page for a list:"
|
|
13
|
+
if macos
|
|
14
|
+
puts "https://github.com/gosu/gosu/wiki/Getting-Started-on-OS-X"
|
|
15
|
+
else
|
|
16
|
+
puts "https://github.com/gosu/gosu/wiki/Getting-Started-on-Linux"
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
require "mkmf"
|
|
21
|
+
require "fileutils"
|
|
22
|
+
|
|
23
|
+
# Ensure that FFI functions are exported.
|
|
24
|
+
$CXXFLAGS << " -DGOSU_FFI_EXPORTS"
|
|
25
|
+
|
|
26
|
+
# Silence internal deprecation warnings in Gosu.
|
|
27
|
+
$CXXFLAGS << " -DGOSU_DEPRECATED="
|
|
28
|
+
|
|
29
|
+
# Disable assertions in C and C++ code.
|
|
30
|
+
$CFLAGS << " -DNDEBUG"
|
|
31
|
+
$CXXFLAGS << " -DNDEBUG"
|
|
32
|
+
|
|
33
|
+
# Enable C++20.
|
|
34
|
+
$CXXFLAGS << " -std=gnu++20"
|
|
35
|
+
|
|
36
|
+
# Make Gosu's own header files and all of its dependencies available to C++ source files.
|
|
37
|
+
%w(include dependencies/stb dependencies/utf8proc dependencies/SDL_sound dependencies/mojoAL/AL).each do |incdir|
|
|
38
|
+
$INCFLAGS << " -I$(srcdir)/../../#{incdir}"
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# We statically compile utf8proc into the Gosu binary.
|
|
42
|
+
# This macro is required on Windows to avoid errors about dllexport/dllimport mismatches.
|
|
43
|
+
# On other platforms, it might help us avoid unnecessarily exported symbols.
|
|
44
|
+
$CFLAGS << " -DUTF8PROC_STATIC -DAL_LIBTYPE_STATIC"
|
|
45
|
+
$CXXFLAGS << " -DUTF8PROC_STATIC -DAL_LIBTYPE_STATIC"
|
|
46
|
+
|
|
47
|
+
if windows
|
|
48
|
+
# Use the bundled version of SDL 3.
|
|
49
|
+
$INCFLAGS << " -I$(srcdir)/../../dependencies/SDL/include"
|
|
50
|
+
if RbConfig::CONFIG["arch"] =~ /x64-/
|
|
51
|
+
$LDFLAGS << " -L$(srcdir)/../../dependencies/SDL/lib/x64"
|
|
52
|
+
else
|
|
53
|
+
$LDFLAGS << " -L$(srcdir)/../../dependencies/SDL/lib/x86"
|
|
54
|
+
end
|
|
55
|
+
$LDFLAGS << " -lgdi32 -lwinmm -ldwmapi -lOpenGL32 -lSDL3"
|
|
56
|
+
# Link libstdc++ statically to avoid having another DLL dependency when using Ocra.
|
|
57
|
+
$LDFLAGS << " -static-libstdc++"
|
|
58
|
+
elsif macos
|
|
59
|
+
# Compile all C++ files as Objective C++ on macOS since mkmf does not support .mm files.
|
|
60
|
+
$CXXFLAGS << " -x objective-c++ -fobjc-arc"
|
|
61
|
+
# Also hide all symbols by default. FFI symbols use the GOSU_FFI_API macro to override this.
|
|
62
|
+
$CXXFLAGS << " -fvisibility=hidden -DGOSU_FFI_EXPORTS"
|
|
63
|
+
|
|
64
|
+
# Explicitly specify libc++ as the standard library.
|
|
65
|
+
# rvm will sometimes try to override this:
|
|
66
|
+
# https://github.com/shawn42/gamebox/issues/96
|
|
67
|
+
$CXXFLAGS << " -stdlib=libc++"
|
|
68
|
+
|
|
69
|
+
# Disable an error that is enabled by default and prevents Gosu from building with universal Ruby:
|
|
70
|
+
# https://trac.macports.org/ticket/58255 / https://github.com/gosu/gosu/issues/424
|
|
71
|
+
$CXXFLAGS << " -Wno-reserved-user-defined-literal"
|
|
72
|
+
|
|
73
|
+
# Dependencies. SDL3 ships no sdl3-config, so use pkg-config instead.
|
|
74
|
+
$CFLAGS << " #{`pkg-config --cflags sdl3`.chomp}"
|
|
75
|
+
$CXXFLAGS << " #{`pkg-config --cflags sdl3`.chomp}"
|
|
76
|
+
# Prefer statically linking SDL 3.
|
|
77
|
+
$LDFLAGS << " #{`pkg-config --static --libs sdl3`.chomp} -framework OpenGL -framework Metal"
|
|
78
|
+
else
|
|
79
|
+
# Raspberry Pi support, hasn't been tested in a long time.
|
|
80
|
+
if /BCM2708/ =~ `cat /proc/cpuinfo`
|
|
81
|
+
$INCFLAGS << " -I/opt/vc/include/GLES"
|
|
82
|
+
$INCFLAGS << " -I/opt/vc/include"
|
|
83
|
+
$LDFLAGS << " -L/opt/vc/lib"
|
|
84
|
+
$LDFLAGS << " -lGLESv1_CM"
|
|
85
|
+
$CFLAGS << " -DGOSU_IS_OPENGLES"
|
|
86
|
+
$CXXFLAGS << " -DGOSU_IS_OPENGLES"
|
|
87
|
+
else
|
|
88
|
+
pkg_config "gl"
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
pkg_config "sdl3"
|
|
92
|
+
pkg_config "fontconfig"
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# mkmf only looks for C/C++ files in $srcdir by default, but our source files are in other folders.
|
|
96
|
+
|
|
97
|
+
Dir.chdir($srcdir) do # (not needed when installing the gem, but for 'rake compile')
|
|
98
|
+
$srcs = Dir["../../dependencies/**/*.c"] + Dir["../../{src,ffi}/*.cpp"]
|
|
99
|
+
# We need to expand the $VPATH so that all source files can be found reliably. https://stackoverflow.com/a/35842162
|
|
100
|
+
$VPATH += $srcs.map { |src| "$(srcdir)/#{File.dirname(src)}" }.uniq
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
create_makefile "gosu-ffi"
|
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
EXPORTS
|
|
2
|
+
Gosu_AL_CENTER
|
|
3
|
+
Gosu_AL_JUSTIFY
|
|
4
|
+
Gosu_AL_LEFT
|
|
5
|
+
Gosu_AL_RIGHT
|
|
6
|
+
Gosu_BM_ADD
|
|
7
|
+
Gosu_BM_DEFAULT
|
|
8
|
+
Gosu_BM_INTERPOLATE
|
|
9
|
+
Gosu_BM_MULTIPLY
|
|
10
|
+
Gosu_Channel_destroy
|
|
11
|
+
Gosu_Channel_pause
|
|
12
|
+
Gosu_Channel_paused
|
|
13
|
+
Gosu_Channel_playing
|
|
14
|
+
Gosu_Channel_resume
|
|
15
|
+
Gosu_Channel_set_pan
|
|
16
|
+
Gosu_Channel_set_speed
|
|
17
|
+
Gosu_Channel_set_volume
|
|
18
|
+
Gosu_Channel_stop
|
|
19
|
+
Gosu_Color_abgr
|
|
20
|
+
Gosu_Color_alpha
|
|
21
|
+
Gosu_Color_argb
|
|
22
|
+
Gosu_Color_bgr
|
|
23
|
+
Gosu_Color_blue
|
|
24
|
+
Gosu_Color_create
|
|
25
|
+
Gosu_Color_create_argb
|
|
26
|
+
Gosu_Color_create_from_ahsv
|
|
27
|
+
Gosu_Color_create_from_hsv
|
|
28
|
+
Gosu_Color_gl
|
|
29
|
+
Gosu_Color_green
|
|
30
|
+
Gosu_Color_hue
|
|
31
|
+
Gosu_Color_red
|
|
32
|
+
Gosu_Color_saturation
|
|
33
|
+
Gosu_Color_set_alpha
|
|
34
|
+
Gosu_Color_set_blue
|
|
35
|
+
Gosu_Color_set_green
|
|
36
|
+
Gosu_Color_set_hue
|
|
37
|
+
Gosu_Color_set_red
|
|
38
|
+
Gosu_Color_set_saturation
|
|
39
|
+
Gosu_Color_set_value
|
|
40
|
+
Gosu_Color_value
|
|
41
|
+
Gosu_FF_BOLD
|
|
42
|
+
Gosu_FF_COMBINATIONS
|
|
43
|
+
Gosu_FF_ITALIC
|
|
44
|
+
Gosu_FF_UNDERLINE
|
|
45
|
+
Gosu_Font_create
|
|
46
|
+
Gosu_Font_destroy
|
|
47
|
+
Gosu_Font_draw_markup
|
|
48
|
+
Gosu_Font_draw_markup_rel
|
|
49
|
+
Gosu_Font_draw_text
|
|
50
|
+
Gosu_Font_draw_text_rel
|
|
51
|
+
Gosu_Font_height
|
|
52
|
+
Gosu_Font_markup_width
|
|
53
|
+
Gosu_Font_name
|
|
54
|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
Gosu_GP_2_BUTTON_2
|
|
125
|
+
Gosu_GP_2_BUTTON_3
|
|
126
|
+
Gosu_GP_2_BUTTON_4
|
|
127
|
+
Gosu_GP_2_BUTTON_5
|
|
128
|
+
Gosu_GP_2_BUTTON_6
|
|
129
|
+
Gosu_GP_2_BUTTON_7
|
|
130
|
+
Gosu_GP_2_BUTTON_8
|
|
131
|
+
Gosu_GP_2_BUTTON_9
|
|
132
|
+
Gosu_GP_2_DOWN
|
|
133
|
+
Gosu_GP_2_DPAD_DOWN
|
|
134
|
+
Gosu_GP_2_DPAD_LEFT
|
|
135
|
+
Gosu_GP_2_DPAD_RIGHT
|
|
136
|
+
Gosu_GP_2_DPAD_UP
|
|
137
|
+
Gosu_GP_2_LEFT
|
|
138
|
+
Gosu_GP_2_LEFT_STICK_X_AXIS
|
|
139
|
+
Gosu_GP_2_LEFT_STICK_Y_AXIS
|
|
140
|
+
Gosu_GP_2_LEFT_TRIGGER_AXIS
|
|
141
|
+
Gosu_GP_2_RIGHT
|
|
142
|
+
Gosu_GP_2_RIGHT_STICK_X_AXIS
|
|
143
|
+
Gosu_GP_2_RIGHT_STICK_Y_AXIS
|
|
144
|
+
Gosu_GP_2_RIGHT_TRIGGER_AXIS
|
|
145
|
+
Gosu_GP_2_UP
|
|
146
|
+
Gosu_GP_3_BUTTON_0
|
|
147
|
+
Gosu_GP_3_BUTTON_1
|
|
148
|
+
Gosu_GP_3_BUTTON_10
|
|
149
|
+
Gosu_GP_3_BUTTON_11
|
|
150
|
+
Gosu_GP_3_BUTTON_12
|
|
151
|
+
Gosu_GP_3_BUTTON_13
|
|
152
|
+
Gosu_GP_3_BUTTON_14
|
|
153
|
+
Gosu_GP_3_BUTTON_15
|
|
154
|
+
Gosu_GP_3_BUTTON_2
|
|
155
|
+
Gosu_GP_3_BUTTON_3
|
|
156
|
+
Gosu_GP_3_BUTTON_4
|
|
157
|
+
Gosu_GP_3_BUTTON_5
|
|
158
|
+
Gosu_GP_3_BUTTON_6
|
|
159
|
+
Gosu_GP_3_BUTTON_7
|
|
160
|
+
Gosu_GP_3_BUTTON_8
|
|
161
|
+
Gosu_GP_3_BUTTON_9
|
|
162
|
+
Gosu_GP_3_DOWN
|
|
163
|
+
Gosu_GP_3_DPAD_DOWN
|
|
164
|
+
Gosu_GP_3_DPAD_LEFT
|
|
165
|
+
Gosu_GP_3_DPAD_RIGHT
|
|
166
|
+
Gosu_GP_3_DPAD_UP
|
|
167
|
+
Gosu_GP_3_LEFT
|
|
168
|
+
Gosu_GP_3_LEFT_STICK_X_AXIS
|
|
169
|
+
Gosu_GP_3_LEFT_STICK_Y_AXIS
|
|
170
|
+
Gosu_GP_3_LEFT_TRIGGER_AXIS
|
|
171
|
+
Gosu_GP_3_RIGHT
|
|
172
|
+
Gosu_GP_3_RIGHT_STICK_X_AXIS
|
|
173
|
+
Gosu_GP_3_RIGHT_STICK_Y_AXIS
|
|
174
|
+
Gosu_GP_3_RIGHT_TRIGGER_AXIS
|
|
175
|
+
Gosu_GP_3_UP
|
|
176
|
+
Gosu_GP_BUTTON_0
|
|
177
|
+
Gosu_GP_BUTTON_1
|
|
178
|
+
Gosu_GP_BUTTON_10
|
|
179
|
+
Gosu_GP_BUTTON_11
|
|
180
|
+
Gosu_GP_BUTTON_12
|
|
181
|
+
Gosu_GP_BUTTON_13
|
|
182
|
+
Gosu_GP_BUTTON_14
|
|
183
|
+
Gosu_GP_BUTTON_15
|
|
184
|
+
Gosu_GP_BUTTON_2
|
|
185
|
+
Gosu_GP_BUTTON_3
|
|
186
|
+
Gosu_GP_BUTTON_4
|
|
187
|
+
Gosu_GP_BUTTON_5
|
|
188
|
+
Gosu_GP_BUTTON_6
|
|
189
|
+
Gosu_GP_BUTTON_7
|
|
190
|
+
Gosu_GP_BUTTON_8
|
|
191
|
+
Gosu_GP_BUTTON_9
|
|
192
|
+
Gosu_GP_DOWN
|
|
193
|
+
Gosu_GP_DPAD_DOWN
|
|
194
|
+
Gosu_GP_DPAD_LEFT
|
|
195
|
+
Gosu_GP_DPAD_RIGHT
|
|
196
|
+
Gosu_GP_DPAD_UP
|
|
197
|
+
Gosu_GP_LEFT
|
|
198
|
+
Gosu_GP_LEFT_STICK_X_AXIS
|
|
199
|
+
Gosu_GP_LEFT_STICK_Y_AXIS
|
|
200
|
+
Gosu_GP_LEFT_TRIGGER_AXIS
|
|
201
|
+
Gosu_GP_RIGHT
|
|
202
|
+
Gosu_GP_RIGHT_STICK_X_AXIS
|
|
203
|
+
Gosu_GP_RIGHT_STICK_Y_AXIS
|
|
204
|
+
Gosu_GP_RIGHT_TRIGGER_AXIS
|
|
205
|
+
Gosu_GP_UP
|
|
206
|
+
Gosu_IF_RETRO
|
|
207
|
+
Gosu_IF_SMOOTH
|
|
208
|
+
Gosu_IF_TILEABLE
|
|
209
|
+
Gosu_IF_TILEABLE_BOTTOM
|
|
210
|
+
Gosu_IF_TILEABLE_LEFT
|
|
211
|
+
Gosu_IF_TILEABLE_RIGHT
|
|
212
|
+
Gosu_IF_TILEABLE_TOP
|
|
213
|
+
Gosu_Image_create
|
|
214
|
+
Gosu_Image_create_from_blob
|
|
215
|
+
Gosu_Image_create_from_markup
|
|
216
|
+
Gosu_Image_create_from_rect
|
|
217
|
+
Gosu_Image_create_from_subimage
|
|
218
|
+
Gosu_Image_create_from_text
|
|
219
|
+
Gosu_Image_create_from_tiles
|
|
220
|
+
Gosu_Image_create_tiles_from_image
|
|
221
|
+
Gosu_Image_destroy
|
|
222
|
+
Gosu_Image_draw
|
|
223
|
+
Gosu_Image_draw_as_quad
|
|
224
|
+
Gosu_Image_draw_quick
|
|
225
|
+
Gosu_Image_draw_rot
|
|
226
|
+
Gosu_Image_draw_rot_quick
|
|
227
|
+
Gosu_Image_gl_tex_info_create
|
|
228
|
+
Gosu_Image_gl_tex_info_destroy
|
|
229
|
+
Gosu_Image_height
|
|
230
|
+
Gosu_Image_insert
|
|
231
|
+
Gosu_Image_save
|
|
232
|
+
Gosu_Image_to_blob
|
|
233
|
+
Gosu_Image_width
|
|
234
|
+
Gosu_KB_0
|
|
235
|
+
Gosu_KB_1
|
|
236
|
+
Gosu_KB_2
|
|
237
|
+
Gosu_KB_3
|
|
238
|
+
Gosu_KB_4
|
|
239
|
+
Gosu_KB_5
|
|
240
|
+
Gosu_KB_6
|
|
241
|
+
Gosu_KB_7
|
|
242
|
+
Gosu_KB_8
|
|
243
|
+
Gosu_KB_9
|
|
244
|
+
Gosu_KB_A
|
|
245
|
+
Gosu_KB_APOSTROPHE
|
|
246
|
+
Gosu_KB_B
|
|
247
|
+
Gosu_KB_BACKSLASH
|
|
248
|
+
Gosu_KB_BACKSPACE
|
|
249
|
+
Gosu_KB_BACKTICK
|
|
250
|
+
Gosu_KB_C
|
|
251
|
+
Gosu_KB_CAPS_LOCK
|
|
252
|
+
Gosu_KB_COMMA
|
|
253
|
+
Gosu_KB_D
|
|
254
|
+
Gosu_KB_DELETE
|
|
255
|
+
Gosu_KB_DOWN
|
|
256
|
+
Gosu_KB_E
|
|
257
|
+
Gosu_KB_END
|
|
258
|
+
Gosu_KB_ENTER
|
|
259
|
+
Gosu_KB_EQUALS
|
|
260
|
+
Gosu_KB_ESCAPE
|
|
261
|
+
Gosu_KB_F
|
|
262
|
+
Gosu_KB_F1
|
|
263
|
+
Gosu_KB_F10
|
|
264
|
+
Gosu_KB_F11
|
|
265
|
+
Gosu_KB_F12
|
|
266
|
+
Gosu_KB_F2
|
|
267
|
+
Gosu_KB_F3
|
|
268
|
+
Gosu_KB_F4
|
|
269
|
+
Gosu_KB_F5
|
|
270
|
+
Gosu_KB_F6
|
|
271
|
+
Gosu_KB_F7
|
|
272
|
+
Gosu_KB_F8
|
|
273
|
+
Gosu_KB_F9
|
|
274
|
+
Gosu_KB_G
|
|
275
|
+
Gosu_KB_H
|
|
276
|
+
Gosu_KB_HOME
|
|
277
|
+
Gosu_KB_I
|
|
278
|
+
Gosu_KB_INSERT
|
|
279
|
+
Gosu_KB_ISO
|
|
280
|
+
Gosu_KB_J
|
|
281
|
+
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ROL
|
|
321
|
+
Gosu_KB_RIGHT_META
|
|
322
|
+
Gosu_KB_RIGHT_SHIFT
|
|
323
|
+
Gosu_KB_S
|
|
324
|
+
Gosu_KB_SCROLL_LOCK
|
|
325
|
+
Gosu_KB_SEMICOLON
|
|
326
|
+
Gosu_KB_SLASH
|
|
327
|
+
Gosu_KB_SPACE
|
|
328
|
+
Gosu_KB_T
|
|
329
|
+
Gosu_KB_TAB
|
|
330
|
+
Gosu_KB_U
|
|
331
|
+
Gosu_KB_UP
|
|
332
|
+
Gosu_KB_V
|
|
333
|
+
Gosu_KB_W
|
|
334
|
+
Gosu_KB_X
|
|
335
|
+
Gosu_KB_Y
|
|
336
|
+
Gosu_KB_Z
|
|
337
|
+
Gosu_MAJOR_VERSION
|
|
338
|
+
Gosu_MINOR_VERSION
|
|
339
|
+
Gosu_MS_LEFT
|
|
340
|
+
Gosu_MS_MIDDLE
|
|
341
|
+
Gosu_MS_OTHER_0
|
|
342
|
+
Gosu_MS_OTHER_1
|
|
343
|
+
Gosu_MS_OTHER_2
|
|
344
|
+
Gosu_MS_OTHER_3
|
|
345
|
+
Gosu_MS_OTHER_4
|
|
346
|
+
Gosu_MS_OTHER_5
|
|
347
|
+
Gosu_MS_OTHER_6
|
|
348
|
+
Gosu_MS_OTHER_7
|
|
349
|
+
Gosu_MS_RIGHT
|
|
350
|
+
Gosu_MS_WHEEL_DOWN
|
|
351
|
+
Gosu_MS_WHEEL_UP
|
|
352
|
+
Gosu_NO_BUTTON
|
|
353
|
+
Gosu_NUM_GAMEPADS
|
|
354
|
+
Gosu_POINT_VERSION
|
|
355
|
+
Gosu_Sample_create
|
|
356
|
+
Gosu_Sample_destroy
|
|
357
|
+
Gosu_Sample_play
|
|
358
|
+
Gosu_Sample_play_pan
|
|
359
|
+
Gosu_Song_create
|
|
360
|
+
Gosu_Song_current_song
|
|
361
|
+
Gosu_Song_destroy
|
|
362
|
+
Gosu_Song_pause
|
|
363
|
+
Gosu_Song_paused
|
|
364
|
+
Gosu_Song_play
|
|
365
|
+
Gosu_Song_playing
|
|
366
|
+
Gosu_Song_set_volume
|
|
367
|
+
Gosu_Song_stop
|
|
368
|
+
Gosu_Song_volume
|
|
369
|
+
Gosu_TextInput_caret_pos
|
|
370
|
+
Gosu_TextInput_create
|
|
371
|
+
Gosu_TextInput_delete_backward
|
|
372
|
+
Gosu_TextInput_delete_forward
|
|
373
|
+
Gosu_TextInput_destroy
|
|
374
|
+
Gosu_TextInput_insert_text
|
|
375
|
+
Gosu_TextInput_selection_start
|
|
376
|
+
Gosu_TextInput_set_caret_pos
|
|
377
|
+
Gosu_TextInput_set_filter
|
|
378
|
+
Gosu_TextInput_set_filter_result
|
|
379
|
+
Gosu_TextInput_set_selection_start
|
|
380
|
+
Gosu_TextInput_set_text
|
|
381
|
+
Gosu_TextInput_text
|
|
382
|
+
Gosu_WF_BORDERLESS
|
|
383
|
+
Gosu_WF_FULLSCREEN
|
|
384
|
+
Gosu_WF_RESIZABLE
|
|
385
|
+
Gosu_WF_WINDOWED
|
|
386
|
+
Gosu_Window_caption
|
|
387
|
+
Gosu_Window_close_immediately
|
|
388
|
+
Gosu_Window_create
|
|
389
|
+
Gosu_Window_default_button_down
|
|
390
|
+
Gosu_Window_destroy
|
|
391
|
+
Gosu_Window_gain_focus
|
|
392
|
+
Gosu_Window_height
|
|
393
|
+
Gosu_Window_is_borderless
|
|
394
|
+
Gosu_Window_is_fullscreen
|
|
395
|
+
Gosu_Window_is_resizable
|
|
396
|
+
Gosu_Window_lose_focus
|
|
397
|
+
Gosu_Window_mouse_x
|
|
398
|
+
Gosu_Window_mouse_y
|
|
399
|
+
Gosu_Window_resize
|
|
400
|
+
Gosu_Window_sdl_window
|
|
401
|
+
Gosu_Window_set_borderless
|
|
402
|
+
Gosu_Window_set_button_down
|
|
403
|
+
Gosu_Window_set_button_up
|
|
404
|
+
Gosu_Window_set_caption
|
|
405
|
+
Gosu_Window_set_close
|
|
406
|
+
Gosu_Window_set_draw
|
|
407
|
+
Gosu_Window_set_drop
|
|
408
|
+
Gosu_Window_set_fullscreen
|
|
409
|
+
Gosu_Window_set_gain_focus
|
|
410
|
+
Gosu_Window_set_gamepad_connected
|
|
411
|
+
Gosu_Window_set_gamepad_disconnected
|
|
412
|
+
Gosu_Window_set_height
|
|
413
|
+
Gosu_Window_set_lose_focus
|
|
414
|
+
Gosu_Window_set_mouse_x
|
|
415
|
+
Gosu_Window_set_mouse_y
|
|
416
|
+
Gosu_Window_set_needs_cursor
|
|
417
|
+
Gosu_Window_set_needs_redraw
|
|
418
|
+
Gosu_Window_set_resizable
|
|
419
|
+
Gosu_Window_set_text_input
|
|
420
|
+
Gosu_Window_set_update
|
|
421
|
+
Gosu_Window_set_update_interval
|
|
422
|
+
Gosu_Window_set_width
|
|
423
|
+
Gosu_Window_show
|
|
424
|
+
Gosu_Window_text_input
|
|
425
|
+
Gosu_Window_tick
|
|
426
|
+
Gosu_Window_update_interval
|
|
427
|
+
Gosu_Window_width
|
|
428
|
+
Gosu_angle
|
|
429
|
+
Gosu_angle_diff
|
|
430
|
+
Gosu_available_height
|
|
431
|
+
Gosu_available_width
|
|
432
|
+
Gosu_axis
|
|
433
|
+
Gosu_button_char_to_id
|
|
434
|
+
Gosu_button_down
|
|
435
|
+
Gosu_button_id_to_char
|
|
436
|
+
Gosu_button_name
|
|
437
|
+
Gosu_clip_to
|
|
438
|
+
Gosu_clipboard
|
|
439
|
+
Gosu_default_font_name
|
|
440
|
+
Gosu_distance
|
|
441
|
+
Gosu_draw_line
|
|
442
|
+
Gosu_draw_quad
|
|
443
|
+
Gosu_draw_rect
|
|
444
|
+
Gosu_draw_triangle
|
|
445
|
+
Gosu_flush
|
|
446
|
+
Gosu_fps
|
|
447
|
+
Gosu_gamepad_name
|
|
448
|
+
Gosu_gl
|
|
449
|
+
Gosu_gl_z
|
|
450
|
+
Gosu_last_error
|
|
451
|
+
Gosu_licenses
|
|
452
|
+
Gosu_milliseconds
|
|
453
|
+
Gosu_offset_x
|
|
454
|
+
Gosu_offset_y
|
|
455
|
+
Gosu_random
|
|
456
|
+
Gosu_record
|
|
457
|
+
Gosu_render
|
|
458
|
+
Gosu_rotate
|
|
459
|
+
Gosu_scale
|
|
460
|
+
Gosu_screen_height
|
|
461
|
+
Gosu_screen_width
|
|
462
|
+
Gosu_set_clipboard
|
|
463
|
+
Gosu_transform
|
|
464
|
+
Gosu_translate
|
|
465
|
+
Gosu_user_languages
|
|
466
|
+
Gosu_version
|
|
467
|
+
Init_gosu
|