gosu 0.15.2 → 1.0.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. checksums.yaml +4 -4
  2. data/dependencies/SDL/include/SDL.h +138 -0
  3. data/dependencies/SDL/include/SDL_assert.h +293 -0
  4. data/dependencies/SDL/include/SDL_atomic.h +295 -0
  5. data/dependencies/SDL/include/SDL_audio.h +859 -0
  6. data/dependencies/SDL/include/SDL_bits.h +121 -0
  7. data/dependencies/SDL/include/SDL_blendmode.h +123 -0
  8. data/dependencies/SDL/include/SDL_clipboard.h +71 -0
  9. data/dependencies/SDL/include/SDL_config.h +55 -0
  10. data/dependencies/SDL/include/SDL_config_android.h +182 -0
  11. data/dependencies/SDL/include/SDL_config_iphoneos.h +207 -0
  12. data/dependencies/SDL/include/SDL_config_macosx.h +266 -0
  13. data/dependencies/SDL/include/SDL_config_minimal.h +85 -0
  14. data/dependencies/SDL/include/SDL_config_os2.h +188 -0
  15. data/dependencies/SDL/include/SDL_config_pandora.h +135 -0
  16. data/dependencies/SDL/include/SDL_config_psp.h +165 -0
  17. data/dependencies/SDL/include/SDL_config_windows.h +288 -0
  18. data/dependencies/SDL/include/SDL_config_winrt.h +243 -0
  19. data/dependencies/SDL/include/SDL_config_wiz.h +149 -0
  20. data/dependencies/SDL/include/SDL_copying.h +20 -0
  21. data/dependencies/SDL/include/SDL_cpuinfo.h +299 -0
  22. data/dependencies/SDL/include/SDL_egl.h +1676 -0
  23. data/dependencies/SDL/include/SDL_endian.h +263 -0
  24. data/dependencies/SDL/include/SDL_error.h +112 -0
  25. data/dependencies/SDL/include/SDL_events.h +827 -0
  26. data/dependencies/SDL/include/SDL_filesystem.h +136 -0
  27. data/dependencies/SDL/include/SDL_gamecontroller.h +541 -0
  28. data/dependencies/SDL/include/SDL_gesture.h +87 -0
  29. data/dependencies/SDL/include/SDL_haptic.h +1247 -0
  30. data/dependencies/SDL/include/SDL_hints.h +1578 -0
  31. data/dependencies/SDL/include/SDL_joystick.h +499 -0
  32. data/dependencies/SDL/include/SDL_keyboard.h +217 -0
  33. data/dependencies/SDL/include/SDL_keycode.h +351 -0
  34. data/dependencies/SDL/include/SDL_loadso.h +81 -0
  35. data/dependencies/SDL/include/SDL_locale.h +101 -0
  36. data/dependencies/SDL/include/SDL_log.h +211 -0
  37. data/dependencies/SDL/include/SDL_main.h +180 -0
  38. data/dependencies/SDL/include/SDL_messagebox.h +146 -0
  39. data/dependencies/SDL/include/SDL_metal.h +117 -0
  40. data/dependencies/SDL/include/SDL_misc.h +75 -0
  41. data/dependencies/SDL/include/SDL_mouse.h +302 -0
  42. data/dependencies/SDL/include/SDL_mutex.h +251 -0
  43. data/dependencies/SDL/include/SDL_name.h +33 -0
  44. data/dependencies/SDL/include/SDL_opengl.h +2183 -0
  45. data/dependencies/SDL/include/SDL_opengl_glext.h +11180 -0
  46. data/dependencies/SDL/include/SDL_opengles.h +39 -0
  47. data/dependencies/SDL/include/SDL_opengles2.h +52 -0
  48. data/dependencies/SDL/include/SDL_opengles2_gl2.h +621 -0
  49. data/dependencies/SDL/include/SDL_opengles2_gl2ext.h +2050 -0
  50. data/dependencies/SDL/include/SDL_opengles2_gl2platform.h +30 -0
  51. data/dependencies/SDL/include/SDL_opengles2_khrplatform.h +282 -0
  52. data/dependencies/SDL/include/SDL_pixels.h +479 -0
  53. data/dependencies/SDL/include/SDL_platform.h +198 -0
  54. data/dependencies/SDL/include/SDL_power.h +75 -0
  55. data/dependencies/SDL/include/SDL_quit.h +58 -0
  56. data/dependencies/SDL/include/SDL_rect.h +174 -0
  57. data/dependencies/SDL/include/SDL_render.h +1158 -0
  58. data/dependencies/SDL/include/SDL_revision.h +2 -0
  59. data/dependencies/SDL/include/SDL_rwops.h +283 -0
  60. data/dependencies/SDL/include/SDL_scancode.h +413 -0
  61. data/dependencies/SDL/include/SDL_sensor.h +267 -0
  62. data/dependencies/SDL/include/SDL_shape.h +144 -0
  63. data/dependencies/SDL/include/SDL_stdinc.h +647 -0
  64. data/dependencies/SDL/include/SDL_surface.h +563 -0
  65. data/dependencies/SDL/include/SDL_system.h +325 -0
  66. data/dependencies/SDL/include/SDL_syswm.h +354 -0
  67. data/dependencies/SDL/include/SDL_test.h +69 -0
  68. data/dependencies/SDL/include/SDL_test_assert.h +105 -0
  69. data/dependencies/SDL/include/SDL_test_common.h +218 -0
  70. data/dependencies/SDL/include/SDL_test_compare.h +69 -0
  71. data/dependencies/SDL/include/SDL_test_crc32.h +124 -0
  72. data/dependencies/SDL/include/SDL_test_font.h +81 -0
  73. data/dependencies/SDL/include/SDL_test_fuzzer.h +384 -0
  74. data/dependencies/SDL/include/SDL_test_harness.h +134 -0
  75. data/dependencies/SDL/include/SDL_test_images.h +78 -0
  76. data/dependencies/SDL/include/SDL_test_log.h +67 -0
  77. data/dependencies/SDL/include/SDL_test_md5.h +129 -0
  78. data/dependencies/SDL/include/SDL_test_memory.h +63 -0
  79. data/dependencies/SDL/include/SDL_test_random.h +115 -0
  80. data/dependencies/SDL/include/SDL_thread.h +366 -0
  81. data/dependencies/SDL/include/SDL_timer.h +115 -0
  82. data/dependencies/SDL/include/SDL_touch.h +102 -0
  83. data/dependencies/SDL/include/SDL_types.h +29 -0
  84. data/dependencies/SDL/include/SDL_version.h +162 -0
  85. data/dependencies/SDL/include/SDL_video.h +1282 -0
  86. data/dependencies/SDL/include/SDL_vulkan.h +276 -0
  87. data/dependencies/SDL/include/begin_code.h +166 -0
  88. data/dependencies/SDL/include/close_code.h +40 -0
  89. data/dependencies/SDL/lib/x64/libSDL2.dll.a +0 -0
  90. data/dependencies/SDL/lib/x86/libSDL2.dll.a +0 -0
  91. data/dependencies/SDL_sound/SDL_sound.c +795 -0
  92. data/dependencies/SDL_sound/SDL_sound.h +725 -0
  93. data/dependencies/SDL_sound/SDL_sound_aiff.c +537 -0
  94. data/dependencies/SDL_sound/SDL_sound_au.c +352 -0
  95. data/dependencies/SDL_sound/SDL_sound_coreaudio.c +747 -0
  96. data/dependencies/SDL_sound/SDL_sound_flac.c +182 -0
  97. data/dependencies/SDL_sound/SDL_sound_internal.h +304 -0
  98. data/dependencies/SDL_sound/SDL_sound_modplug.c +228 -0
  99. data/dependencies/SDL_sound/SDL_sound_mp3.c +184 -0
  100. data/dependencies/SDL_sound/SDL_sound_raw.c +164 -0
  101. data/dependencies/SDL_sound/SDL_sound_shn.c +1309 -0
  102. data/dependencies/SDL_sound/SDL_sound_voc.c +550 -0
  103. data/dependencies/SDL_sound/SDL_sound_vorbis.c +223 -0
  104. data/dependencies/SDL_sound/SDL_sound_wav.c +783 -0
  105. data/dependencies/SDL_sound/dr_flac.h +5906 -0
  106. data/dependencies/SDL_sound/dr_mp3.h +2832 -0
  107. data/dependencies/SDL_sound/libmodplug/fastmix.c +1748 -0
  108. data/dependencies/SDL_sound/libmodplug/libmodplug.h +1001 -0
  109. data/dependencies/SDL_sound/libmodplug/load_669.c +188 -0
  110. data/dependencies/SDL_sound/libmodplug/load_abc.c +4725 -0
  111. data/dependencies/SDL_sound/libmodplug/load_amf.c +403 -0
  112. data/dependencies/SDL_sound/libmodplug/load_ams.c +587 -0
  113. data/dependencies/SDL_sound/libmodplug/load_dbm.c +357 -0
  114. data/dependencies/SDL_sound/libmodplug/load_dmf.c +531 -0
  115. data/dependencies/SDL_sound/libmodplug/load_dsm.c +232 -0
  116. data/dependencies/SDL_sound/libmodplug/load_far.c +253 -0
  117. data/dependencies/SDL_sound/libmodplug/load_it.c +796 -0
  118. data/dependencies/SDL_sound/libmodplug/load_mdl.c +488 -0
  119. data/dependencies/SDL_sound/libmodplug/load_med.c +757 -0
  120. data/dependencies/SDL_sound/libmodplug/load_mid.c +1405 -0
  121. data/dependencies/SDL_sound/libmodplug/load_mod.c +269 -0
  122. data/dependencies/SDL_sound/libmodplug/load_mt2.c +546 -0
  123. data/dependencies/SDL_sound/libmodplug/load_mtm.c +142 -0
  124. data/dependencies/SDL_sound/libmodplug/load_okt.c +192 -0
  125. data/dependencies/SDL_sound/libmodplug/load_pat.c +1143 -0
  126. data/dependencies/SDL_sound/libmodplug/load_pat.h +25 -0
  127. data/dependencies/SDL_sound/libmodplug/load_psm.c +350 -0
  128. data/dependencies/SDL_sound/libmodplug/load_ptm.c +204 -0
  129. data/dependencies/SDL_sound/libmodplug/load_s3m.c +325 -0
  130. data/dependencies/SDL_sound/libmodplug/load_stm.c +180 -0
  131. data/dependencies/SDL_sound/libmodplug/load_ult.c +206 -0
  132. data/dependencies/SDL_sound/libmodplug/load_umx.c +51 -0
  133. data/dependencies/SDL_sound/libmodplug/load_xm.c +554 -0
  134. data/dependencies/SDL_sound/libmodplug/mmcmp.c +382 -0
  135. data/dependencies/SDL_sound/libmodplug/modplug.c +170 -0
  136. data/dependencies/SDL_sound/libmodplug/modplug.h +90 -0
  137. data/dependencies/SDL_sound/libmodplug/snd_dsp.c +301 -0
  138. data/dependencies/SDL_sound/libmodplug/snd_flt.c +63 -0
  139. data/dependencies/SDL_sound/libmodplug/snd_fx.c +2350 -0
  140. data/dependencies/SDL_sound/libmodplug/sndfile.c +1169 -0
  141. data/dependencies/SDL_sound/libmodplug/sndmix.c +1034 -0
  142. data/dependencies/SDL_sound/libmodplug/tables.h +371 -0
  143. data/{src/stb_vorbis.c → dependencies/SDL_sound/stb_vorbis.h} +143 -78
  144. data/dependencies/al_soft/AL/al.h +655 -0
  145. data/dependencies/al_soft/AL/alc.h +270 -0
  146. data/dependencies/al_soft/AL/alext.h +585 -0
  147. data/dependencies/al_soft/AL/efx-creative.h +3 -0
  148. data/dependencies/al_soft/AL/efx-presets.h +402 -0
  149. data/dependencies/al_soft/AL/efx.h +762 -0
  150. data/dependencies/al_soft/x64/libOpenAL32.dll.a +0 -0
  151. data/dependencies/al_soft/x86/libOpenAL32.dll.a +0 -0
  152. data/{src → dependencies/stb}/stb_image.h +330 -127
  153. data/{src → dependencies/stb}/stb_image_write.h +156 -85
  154. data/{src → dependencies/stb}/stb_truetype.h +192 -69
  155. data/{src → dependencies/utf8proc}/utf8proc.c +0 -0
  156. data/{src → dependencies/utf8proc}/utf8proc.h +0 -0
  157. data/{src → dependencies/utf8proc}/utf8proc_data.h +0 -0
  158. data/ext/gosu/extconf.rb +56 -22
  159. data/{Gosu → include/Gosu}/Audio.hpp +6 -8
  160. data/{Gosu → include/Gosu}/AutoLink.hpp +0 -0
  161. data/include/Gosu/Bitmap.hpp +100 -0
  162. data/{Gosu → include/Gosu}/Buttons.hpp +94 -35
  163. data/{Gosu → include/Gosu}/Channel.h +0 -0
  164. data/{Gosu → include/Gosu}/Color.h +0 -0
  165. data/{Gosu → include/Gosu}/Color.hpp +0 -0
  166. data/{Gosu → include/Gosu}/Directories.hpp +0 -0
  167. data/{Gosu → include/Gosu}/Font.h +0 -0
  168. data/{Gosu → include/Gosu}/Font.hpp +0 -0
  169. data/{Gosu → include/Gosu}/Fwd.hpp +0 -0
  170. data/{Gosu → include/Gosu}/Gosu.h +3 -0
  171. data/{Gosu → include/Gosu}/Gosu.hpp +0 -0
  172. data/{Gosu → include/Gosu}/Graphics.hpp +0 -0
  173. data/{Gosu → include/Gosu}/GraphicsBase.hpp +0 -0
  174. data/{Gosu → include/Gosu}/IO.hpp +0 -0
  175. data/{Gosu → include/Gosu}/Image.h +0 -0
  176. data/{Gosu → include/Gosu}/Image.hpp +7 -6
  177. data/{Gosu → include/Gosu}/ImageData.hpp +0 -0
  178. data/{Gosu → include/Gosu}/Input.hpp +30 -15
  179. data/{Gosu → include/Gosu}/Inspection.hpp +0 -0
  180. data/{Gosu → include/Gosu}/Math.hpp +0 -0
  181. data/{Gosu → include/Gosu}/Platform.hpp +0 -0
  182. data/{Gosu → include/Gosu}/Sample.h +0 -0
  183. data/{Gosu → include/Gosu}/Song.h +0 -0
  184. data/{Gosu → include/Gosu}/Text.hpp +0 -0
  185. data/{Gosu → include/Gosu}/TextInput.h +0 -0
  186. data/{Gosu → include/Gosu}/TextInput.hpp +0 -0
  187. data/{Gosu → include/Gosu}/Timing.hpp +0 -0
  188. data/{Gosu → include/Gosu}/Utility.hpp +1 -1
  189. data/{Gosu → include/Gosu}/Version.hpp +0 -0
  190. data/{Gosu → include/Gosu}/Window.h +2 -0
  191. data/{Gosu → include/Gosu}/Window.hpp +21 -13
  192. data/lib/OpenAL32.dll +0 -0
  193. data/lib/SDL2.dll +0 -0
  194. data/lib/gosu.rb +0 -3
  195. data/lib/gosu/patches.rb +0 -9
  196. data/lib/gosu/swig_patches.rb +3 -2
  197. data/lib/libmpg123.dll +0 -0
  198. data/lib/libsndfile.dll +0 -0
  199. data/lib64/OpenAL32.dll +0 -0
  200. data/lib64/SDL2.dll +0 -0
  201. data/lib64/libmpg123.dll +0 -0
  202. data/lib64/libsndfile.dll +0 -0
  203. data/rdoc/gosu.rb +95 -20
  204. data/src/Audio.cpp +50 -224
  205. data/src/AudioFile.hpp +17 -37
  206. data/src/AudioFileAudioToolbox.cpp +237 -0
  207. data/src/AudioFileSDLSound.cpp +147 -0
  208. data/src/AudioImpl.cpp +3 -12
  209. data/src/AudioImpl.hpp +3 -1
  210. data/src/Bitmap.cpp +85 -83
  211. data/src/BitmapIO.cpp +52 -58
  212. data/src/Constants.cpp +80 -33
  213. data/src/Font.cpp +3 -1
  214. data/src/GosuWrapper.cpp +19 -0
  215. data/src/Graphics.cpp +7 -4
  216. data/src/Image.cpp +13 -16
  217. data/src/Input.cpp +408 -159
  218. data/src/LargeImageData.cpp +1 -1
  219. data/src/MarkupParser.cpp +2 -1
  220. data/src/RubyGosu.cxx +349 -83
  221. data/src/RubyGosu.h +4 -2
  222. data/src/TexChunk.cpp +1 -1
  223. data/src/TextBuilder.cpp +3 -1
  224. data/src/Texture.cpp +1 -1
  225. data/src/TrueTypeFont.cpp +1 -1
  226. data/src/Utility.cpp +11 -7
  227. data/src/Window.cpp +30 -39
  228. data/src/WindowWrapper.cpp +28 -0
  229. metadata +207 -52
  230. data/Gosu/Bitmap.hpp +0 -113
  231. data/src/AudioToolboxFile.hpp +0 -210
  232. data/src/OggFile.hpp +0 -92
  233. data/src/SndFile.hpp +0 -174
  234. data/src/WinMain.cpp +0 -64
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.2
3
+ * Version 4.1.0
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -28,7 +28,7 @@ public:
28
28
  class SwigDirector_Window : public Gosu::Window, public Swig::Director {
29
29
 
30
30
  public:
31
- SwigDirector_Window(VALUE self, unsigned int width, unsigned int height, bool fullscreen = false, double update_interval = 16.666666, bool resizable = false);
31
+ SwigDirector_Window(VALUE self,unsigned int width,unsigned int height,bool fullscreen=false,double update_interval=16.666666,bool resizable=false);
32
32
  virtual ~SwigDirector_Window();
33
33
  virtual void show();
34
34
  virtual bool tick();
@@ -41,6 +41,8 @@ public:
41
41
  virtual void release_memory();
42
42
  virtual void button_down(Gosu::Button arg0);
43
43
  virtual void button_up(Gosu::Button arg0);
44
+ virtual void gamepad_connected(int index);
45
+ virtual void gamepad_disconnected(int index);
44
46
  virtual void drop(std::string const &filename);
45
47
  };
46
48
 
@@ -120,7 +120,7 @@ void Gosu::TexChunk::insert(const Bitmap& original_bitmap, int x, int y)
120
120
  if (clipped_width <= 0 || clipped_height <= 0) return;
121
121
 
122
122
  clipped_bitmap.resize(clipped_width, clipped_height);
123
- clipped_bitmap.insert(original_bitmap, -clip_left, -clip_top);
123
+ clipped_bitmap.insert(-clip_left, -clip_top, original_bitmap);
124
124
  bitmap = &clipped_bitmap;
125
125
  }
126
126
 
@@ -1,8 +1,10 @@
1
1
  #include "TextBuilder.hpp"
2
2
  #include <Gosu/Text.hpp>
3
+
4
+ #include <utf8proc.h>
5
+
3
6
  #include <cassert>
4
7
  #include <cmath>
5
- #include "utf8proc.h"
6
8
  using namespace std;
7
9
 
8
10
  Gosu::WordInfo::WordInfo(const string& font_name, double font_height, vector<FormattedString> parts)
@@ -124,7 +124,7 @@ Gosu::Bitmap Gosu::Texture::to_bitmap(unsigned x, unsigned y, unsigned width, un
124
124
  // TODO: There are ways to retrieve only part of a texture, which we should use sooner or later.
125
125
  glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, full_texture.data());
126
126
  Bitmap bitmap(width, height);
127
- bitmap.insert(full_texture, -int(x), -int(y));
127
+ bitmap.insert(-int(x), -int(y), full_texture);
128
128
 
129
129
  return bitmap;
130
130
  #endif
@@ -10,7 +10,7 @@
10
10
  #endif
11
11
 
12
12
  #define STB_TRUETYPE_IMPLEMENTATION
13
- #include "stb_truetype.h"
13
+ #include <stb_truetype.h>
14
14
 
15
15
  #ifdef __GNUC__
16
16
  #pragma GCC diagnostic pop
@@ -1,7 +1,7 @@
1
1
  #include <Gosu/Utility.hpp>
2
2
  #include <Gosu/Platform.hpp>
3
3
 
4
- #include "utf8proc.h"
4
+ #include <utf8proc.h>
5
5
 
6
6
  #include <cstring>
7
7
  #include <stdexcept>
@@ -45,17 +45,20 @@ u32string Gosu::utf8_to_composed_utc4(const string& utf8)
45
45
  return utc4;
46
46
  }
47
47
 
48
- bool Gosu::has_extension(const string& filename, const char* extension)
48
+ bool Gosu::has_extension(string_view filename, string_view extension)
49
49
  {
50
- size_t ext_len = strlen(extension);
50
+ size_t ext_len = extension.length();
51
51
  if (ext_len > filename.length()) {
52
52
  return false;
53
53
  }
54
54
 
55
- const char* str = filename.c_str() + filename.length();
56
- const char* ext = extension + ext_len;
55
+ string_view::iterator filename_iter = filename.end();
56
+ string_view::iterator ext_iter = extension.end();
57
57
  while (ext_len--) {
58
- if (tolower((int) *--str) != *--ext) {
58
+ --filename_iter;
59
+ --ext_iter;
60
+
61
+ if (tolower((int) *filename_iter) != tolower((int) *ext_iter)) {
59
62
  return false;
60
63
  }
61
64
  }
@@ -66,6 +69,7 @@ bool Gosu::has_extension(const string& filename, const char* extension)
66
69
  #if defined(GOSU_IS_UNIX) && !defined(GOSU_IS_MAC)
67
70
  string Gosu::language()
68
71
  {
69
- return getenv("LANG");
72
+ const char* env = getenv("LANG");
73
+ return env ? env : "en_US";
70
74
  }
71
75
  #endif
@@ -22,8 +22,6 @@ namespace Gosu
22
22
  throw runtime_error(operation + ": " + (error ? error : "(unknown error)"));
23
23
  }
24
24
 
25
- static void cleanup();
26
-
27
25
  SDL_Window* shared_window()
28
26
  {
29
27
  static SDL_Window* window = nullptr;
@@ -32,14 +30,12 @@ namespace Gosu
32
30
  throw_sdl_error("Could not initialize SDL Video");
33
31
  }
34
32
 
35
- atexit(cleanup);
36
-
37
33
  Uint32 flags = SDL_WINDOW_OPENGL | SDL_WINDOW_HIDDEN;
38
-
34
+
39
35
  #if SDL_VERSION_ATLEAST(2, 0, 1)
40
36
  flags |= SDL_WINDOW_ALLOW_HIGHDPI;
41
37
  #endif
42
-
38
+
43
39
  window =
44
40
  SDL_CreateWindow("", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 64, 64, flags);
45
41
  if (window == nullptr) {
@@ -58,27 +54,20 @@ namespace Gosu
58
54
  SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
59
55
  SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
60
56
  #endif
61
-
57
+
62
58
  context = SDL_GL_CreateContext(shared_window());
63
-
59
+
64
60
  if (context == nullptr) {
65
61
  throw_sdl_error("Could not create OpenGL context");
66
62
  }
67
63
  }
68
64
  return context;
69
65
  }
70
-
66
+
71
67
  void ensure_current_context()
72
68
  {
73
69
  SDL_GL_MakeCurrent(shared_window(), shared_gl_context());
74
70
  }
75
-
76
- static void cleanup()
77
- {
78
- SDL_GL_DeleteContext(shared_gl_context());
79
- SDL_DestroyWindow(shared_window());
80
- SDL_QuitSubSystem(SDL_INIT_VIDEO);
81
- }
82
71
  }
83
72
 
84
73
  struct Gosu::Window::Impl
@@ -123,6 +112,8 @@ Gosu::Window::Window(unsigned width, unsigned height, bool fullscreen, double up
123
112
 
124
113
  input().on_button_down = [this](Button button) { button_down(button); };
125
114
  input().on_button_up = [this](Button button) { button_up(button); };
115
+ input().on_gamepad_connected = [this](int index) { gamepad_connected(index); };
116
+ input().on_gamepad_disconnected = [this](int index) { gamepad_disconnected(index); };
126
117
  }
127
118
 
128
119
  Gosu::Window::~Window()
@@ -153,17 +144,17 @@ bool Gosu::Window::resizable() const
153
144
  void Gosu::Window::resize(unsigned width, unsigned height, bool fullscreen)
154
145
  {
155
146
  pimpl->fullscreen = fullscreen;
156
-
147
+
157
148
  int actual_width = width;
158
149
  int actual_height = height;
159
150
  double scale_factor = 1.0;
160
151
  double black_bar_width = 0;
161
152
  double black_bar_height = 0;
162
-
153
+
163
154
  if (fullscreen) {
164
155
  actual_width = Gosu::screen_width(this);
165
156
  actual_height = Gosu::screen_height(this);
166
-
157
+
167
158
  if (resizable()) {
168
159
  // Resizable fullscreen windows stubbornly follow the desktop resolution.
169
160
  width = actual_width;
@@ -186,7 +177,7 @@ void Gosu::Window::resize(unsigned width, unsigned height, bool fullscreen)
186
177
  else {
187
178
  unsigned max_width = Gosu::available_width(this);
188
179
  unsigned max_height = Gosu::available_height(this);
189
-
180
+
190
181
  if (resizable()) {
191
182
  // If the window is resizable, limit its size, without preserving the aspect ratio.
192
183
  width = actual_width = min(width, max_width);
@@ -199,18 +190,18 @@ void Gosu::Window::resize(unsigned width, unsigned height, bool fullscreen)
199
190
  actual_height = height * scale_factor;
200
191
  }
201
192
  }
202
-
193
+
203
194
  SDL_SetWindowFullscreen(shared_window(), fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0);
204
195
  if (!pimpl->resizing) {
205
196
  SDL_SetWindowSize(shared_window(), actual_width, actual_height);
206
197
  }
207
-
198
+
208
199
  #if SDL_VERSION_ATLEAST(2, 0, 1)
209
200
  SDL_GL_GetDrawableSize(shared_window(), &actual_width, &actual_height);
210
201
  #endif
211
-
202
+
212
203
  ensure_current_context();
213
-
204
+
214
205
  if (!pimpl->graphics) {
215
206
  pimpl->graphics.reset(new Graphics(actual_width, actual_height));
216
207
  }
@@ -218,7 +209,7 @@ void Gosu::Window::resize(unsigned width, unsigned height, bool fullscreen)
218
209
  pimpl->graphics->set_physical_resolution(actual_width, actual_height);
219
210
  }
220
211
  pimpl->graphics->set_resolution(width, height, black_bar_width, black_bar_height);
221
-
212
+
222
213
  if (!pimpl->input) {
223
214
  pimpl->input.reset(new Input(shared_window()));
224
215
  }
@@ -250,17 +241,17 @@ void Gosu::Window::set_caption(const string& caption)
250
241
  void Gosu::Window::show()
251
242
  {
252
243
  unsigned long time_before_tick = milliseconds();
253
-
244
+
254
245
  while (tick()) {
255
246
  // Sleep to keep this loop from eating 100% CPU.
256
247
  unsigned long tick_time = milliseconds() - time_before_tick;
257
248
  if (tick_time < update_interval()) {
258
249
  sleep(update_interval() - tick_time);
259
250
  }
260
-
251
+
261
252
  time_before_tick = milliseconds();
262
253
  }
263
-
254
+
264
255
  pimpl->state = Impl::CLOSED;
265
256
  }
266
257
 
@@ -270,7 +261,7 @@ bool Gosu::Window::tick()
270
261
  pimpl->state = Impl::CLOSED;
271
262
  return false;
272
263
  }
273
-
264
+
274
265
  if (pimpl->state == Impl::CLOSED) {
275
266
  SDL_ShowWindow(shared_window());
276
267
  pimpl->state = Impl::OPEN;
@@ -282,7 +273,7 @@ bool Gosu::Window::tick()
282
273
  SDL_GL_GetDrawableSize(shared_window(), &width, &height);
283
274
  graphics().set_physical_resolution(width, height);
284
275
  }
285
-
276
+
286
277
  SDL_Event e;
287
278
  while (SDL_PollEvent(&e)) {
288
279
 
@@ -320,29 +311,29 @@ bool Gosu::Window::tick()
320
311
  }
321
312
  }
322
313
  }
323
-
314
+
324
315
  Song::update();
325
-
316
+
326
317
  input().update();
327
-
318
+
328
319
  update();
329
-
320
+
330
321
  SDL_ShowCursor(needs_cursor());
331
-
322
+
332
323
  if (needs_redraw()) {
333
324
  ensure_current_context();
334
325
  graphics().frame([&] {
335
326
  draw();
336
327
  FPS::register_frame();
337
328
  });
338
-
329
+
339
330
  SDL_GL_SwapWindow(shared_window());
340
331
  }
341
-
332
+
342
333
  if (pimpl->state == Impl::CLOSING) {
343
334
  pimpl->state = Impl::CLOSED;
344
335
  }
345
-
336
+
346
337
  return pimpl->state == Impl::OPEN;
347
338
  }
348
339
 
@@ -357,7 +348,7 @@ void Gosu::Window::button_down(Button button)
357
348
  bool toggle_fullscreen;
358
349
 
359
350
  // Default shortcuts for toggling fullscreen mode, see: https://github.com/gosu/gosu/issues/361
360
-
351
+
361
352
  #ifdef GOSU_IS_MAC
362
353
  // cmd+F and cmd+ctrl+F are both common shortcuts for toggling fullscreen mode on macOS.
363
354
  toggle_fullscreen = button == KB_F &&
@@ -11,6 +11,8 @@ public:
11
11
  void default_button_down(unsigned btn); // Enables fullscreen toggle
12
12
  void button_down(Gosu::Button btn) override;
13
13
  void button_up(Gosu::Button btn) override;
14
+ void gamepad_connected(int id) override;
15
+ void gamepad_disconnected(int id) override;
14
16
  void drop(const std::string &filename) override;
15
17
  bool needs_redraw() const override;
16
18
  bool needs_cursor() const override;
@@ -22,6 +24,8 @@ public:
22
24
  std::function<void ()> draw_callback;
23
25
  std::function<void (unsigned btn)> button_down_callback;
24
26
  std::function<void (unsigned btn)> button_up_callback;
27
+ std::function<void (int id)> gamepad_connected_callback;
28
+ std::function<void (int id)> gamepad_disconnected_callback;
25
29
  std::function<void (const char *filename)> drop_callback;
26
30
  std::function<bool ()> needs_redraw_callback;
27
31
  std::function<bool ()> needs_cursor_callback;
@@ -68,6 +72,20 @@ void Gosu::WindowForWrapper::button_up(Gosu::Button btn)
68
72
  }
69
73
  }
70
74
 
75
+ void Gosu::WindowForWrapper::gamepad_connected(int id)
76
+ {
77
+ if (gamepad_connected_callback != nullptr) {
78
+ gamepad_connected_callback(id);
79
+ }
80
+ }
81
+
82
+ void Gosu::WindowForWrapper::gamepad_disconnected(int id)
83
+ {
84
+ if (gamepad_disconnected_callback != nullptr) {
85
+ gamepad_disconnected_callback(id);
86
+ }
87
+ }
88
+
71
89
  void Gosu::WindowForWrapper::drop(const std::string &filename)
72
90
  {
73
91
  if (drop_callback != nullptr) {
@@ -146,6 +164,16 @@ void Gosu_Window_set_button_up(Gosu_Window *window, void function(void *data, un
146
164
  reinterpret_cast<Gosu::WindowForWrapper *>(window)->button_up_callback = [=](unsigned btn) { function(data, btn); };
147
165
  }
148
166
 
167
+ void Gosu_Window_set_gamepad_connected(Gosu_Window *window, void function(void *data, int id), void *data)
168
+ {
169
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->gamepad_connected_callback = [=](int id) { function(data, id); };
170
+ }
171
+
172
+ void Gosu_Window_set_gamepad_disconnected(Gosu_Window *window, void function(void *data, int id), void *data)
173
+ {
174
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->gamepad_disconnected_callback = [=](int id) { function(data, id); };
175
+ }
176
+
149
177
  void Gosu_Window_set_drop(Gosu_Window *window, void function(void *data, const char *filename), void *data)
150
178
  {
151
179
  reinterpret_cast<Gosu::WindowForWrapper *>(window)->drop_callback = [=](const char *filename) { function(data, filename); };
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 1.0.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Raschke
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-02 00:00:00.000000000 Z
11
+ date: 2020-12-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.
@@ -27,41 +27,199 @@ extra_rdoc_files:
27
27
  files:
28
28
  - ".yardopts"
29
29
  - COPYING
30
- - Gosu/Audio.hpp
31
- - Gosu/AutoLink.hpp
32
- - Gosu/Bitmap.hpp
33
- - Gosu/Buttons.hpp
34
- - Gosu/Channel.h
35
- - Gosu/Color.h
36
- - Gosu/Color.hpp
37
- - Gosu/Directories.hpp
38
- - Gosu/Font.h
39
- - Gosu/Font.hpp
40
- - Gosu/Fwd.hpp
41
- - Gosu/Gosu.h
42
- - Gosu/Gosu.hpp
43
- - Gosu/Graphics.hpp
44
- - Gosu/GraphicsBase.hpp
45
- - Gosu/IO.hpp
46
- - Gosu/Image.h
47
- - Gosu/Image.hpp
48
- - Gosu/ImageData.hpp
49
- - Gosu/Input.hpp
50
- - Gosu/Inspection.hpp
51
- - Gosu/Math.hpp
52
- - Gosu/Platform.hpp
53
- - Gosu/Sample.h
54
- - Gosu/Song.h
55
- - Gosu/Text.hpp
56
- - Gosu/TextInput.h
57
- - Gosu/TextInput.hpp
58
- - Gosu/Timing.hpp
59
- - Gosu/Utility.hpp
60
- - Gosu/Version.hpp
61
- - Gosu/Window.h
62
- - Gosu/Window.hpp
63
30
  - README.md
31
+ - dependencies/SDL/include/SDL.h
32
+ - dependencies/SDL/include/SDL_assert.h
33
+ - dependencies/SDL/include/SDL_atomic.h
34
+ - dependencies/SDL/include/SDL_audio.h
35
+ - dependencies/SDL/include/SDL_bits.h
36
+ - dependencies/SDL/include/SDL_blendmode.h
37
+ - dependencies/SDL/include/SDL_clipboard.h
38
+ - dependencies/SDL/include/SDL_config.h
39
+ - dependencies/SDL/include/SDL_config_android.h
40
+ - dependencies/SDL/include/SDL_config_iphoneos.h
41
+ - dependencies/SDL/include/SDL_config_macosx.h
42
+ - dependencies/SDL/include/SDL_config_minimal.h
43
+ - dependencies/SDL/include/SDL_config_os2.h
44
+ - dependencies/SDL/include/SDL_config_pandora.h
45
+ - dependencies/SDL/include/SDL_config_psp.h
46
+ - dependencies/SDL/include/SDL_config_windows.h
47
+ - dependencies/SDL/include/SDL_config_winrt.h
48
+ - dependencies/SDL/include/SDL_config_wiz.h
49
+ - dependencies/SDL/include/SDL_copying.h
50
+ - dependencies/SDL/include/SDL_cpuinfo.h
51
+ - dependencies/SDL/include/SDL_egl.h
52
+ - dependencies/SDL/include/SDL_endian.h
53
+ - dependencies/SDL/include/SDL_error.h
54
+ - dependencies/SDL/include/SDL_events.h
55
+ - dependencies/SDL/include/SDL_filesystem.h
56
+ - dependencies/SDL/include/SDL_gamecontroller.h
57
+ - dependencies/SDL/include/SDL_gesture.h
58
+ - dependencies/SDL/include/SDL_haptic.h
59
+ - dependencies/SDL/include/SDL_hints.h
60
+ - dependencies/SDL/include/SDL_joystick.h
61
+ - dependencies/SDL/include/SDL_keyboard.h
62
+ - dependencies/SDL/include/SDL_keycode.h
63
+ - dependencies/SDL/include/SDL_loadso.h
64
+ - dependencies/SDL/include/SDL_locale.h
65
+ - dependencies/SDL/include/SDL_log.h
66
+ - dependencies/SDL/include/SDL_main.h
67
+ - dependencies/SDL/include/SDL_messagebox.h
68
+ - dependencies/SDL/include/SDL_metal.h
69
+ - dependencies/SDL/include/SDL_misc.h
70
+ - dependencies/SDL/include/SDL_mouse.h
71
+ - dependencies/SDL/include/SDL_mutex.h
72
+ - dependencies/SDL/include/SDL_name.h
73
+ - dependencies/SDL/include/SDL_opengl.h
74
+ - dependencies/SDL/include/SDL_opengl_glext.h
75
+ - dependencies/SDL/include/SDL_opengles.h
76
+ - dependencies/SDL/include/SDL_opengles2.h
77
+ - dependencies/SDL/include/SDL_opengles2_gl2.h
78
+ - dependencies/SDL/include/SDL_opengles2_gl2ext.h
79
+ - dependencies/SDL/include/SDL_opengles2_gl2platform.h
80
+ - dependencies/SDL/include/SDL_opengles2_khrplatform.h
81
+ - dependencies/SDL/include/SDL_pixels.h
82
+ - dependencies/SDL/include/SDL_platform.h
83
+ - dependencies/SDL/include/SDL_power.h
84
+ - dependencies/SDL/include/SDL_quit.h
85
+ - dependencies/SDL/include/SDL_rect.h
86
+ - dependencies/SDL/include/SDL_render.h
87
+ - dependencies/SDL/include/SDL_revision.h
88
+ - dependencies/SDL/include/SDL_rwops.h
89
+ - dependencies/SDL/include/SDL_scancode.h
90
+ - dependencies/SDL/include/SDL_sensor.h
91
+ - dependencies/SDL/include/SDL_shape.h
92
+ - dependencies/SDL/include/SDL_stdinc.h
93
+ - dependencies/SDL/include/SDL_surface.h
94
+ - dependencies/SDL/include/SDL_system.h
95
+ - dependencies/SDL/include/SDL_syswm.h
96
+ - dependencies/SDL/include/SDL_test.h
97
+ - dependencies/SDL/include/SDL_test_assert.h
98
+ - dependencies/SDL/include/SDL_test_common.h
99
+ - dependencies/SDL/include/SDL_test_compare.h
100
+ - dependencies/SDL/include/SDL_test_crc32.h
101
+ - dependencies/SDL/include/SDL_test_font.h
102
+ - dependencies/SDL/include/SDL_test_fuzzer.h
103
+ - dependencies/SDL/include/SDL_test_harness.h
104
+ - dependencies/SDL/include/SDL_test_images.h
105
+ - dependencies/SDL/include/SDL_test_log.h
106
+ - dependencies/SDL/include/SDL_test_md5.h
107
+ - dependencies/SDL/include/SDL_test_memory.h
108
+ - dependencies/SDL/include/SDL_test_random.h
109
+ - dependencies/SDL/include/SDL_thread.h
110
+ - dependencies/SDL/include/SDL_timer.h
111
+ - dependencies/SDL/include/SDL_touch.h
112
+ - dependencies/SDL/include/SDL_types.h
113
+ - dependencies/SDL/include/SDL_version.h
114
+ - dependencies/SDL/include/SDL_video.h
115
+ - dependencies/SDL/include/SDL_vulkan.h
116
+ - dependencies/SDL/include/begin_code.h
117
+ - dependencies/SDL/include/close_code.h
118
+ - dependencies/SDL/lib/x64/libSDL2.dll.a
119
+ - dependencies/SDL/lib/x86/libSDL2.dll.a
120
+ - dependencies/SDL_sound/SDL_sound.c
121
+ - dependencies/SDL_sound/SDL_sound.h
122
+ - dependencies/SDL_sound/SDL_sound_aiff.c
123
+ - dependencies/SDL_sound/SDL_sound_au.c
124
+ - dependencies/SDL_sound/SDL_sound_coreaudio.c
125
+ - dependencies/SDL_sound/SDL_sound_flac.c
126
+ - dependencies/SDL_sound/SDL_sound_internal.h
127
+ - dependencies/SDL_sound/SDL_sound_modplug.c
128
+ - dependencies/SDL_sound/SDL_sound_mp3.c
129
+ - dependencies/SDL_sound/SDL_sound_raw.c
130
+ - dependencies/SDL_sound/SDL_sound_shn.c
131
+ - dependencies/SDL_sound/SDL_sound_voc.c
132
+ - dependencies/SDL_sound/SDL_sound_vorbis.c
133
+ - dependencies/SDL_sound/SDL_sound_wav.c
134
+ - dependencies/SDL_sound/dr_flac.h
135
+ - dependencies/SDL_sound/dr_mp3.h
136
+ - dependencies/SDL_sound/libmodplug/fastmix.c
137
+ - dependencies/SDL_sound/libmodplug/libmodplug.h
138
+ - dependencies/SDL_sound/libmodplug/load_669.c
139
+ - dependencies/SDL_sound/libmodplug/load_abc.c
140
+ - dependencies/SDL_sound/libmodplug/load_amf.c
141
+ - dependencies/SDL_sound/libmodplug/load_ams.c
142
+ - dependencies/SDL_sound/libmodplug/load_dbm.c
143
+ - dependencies/SDL_sound/libmodplug/load_dmf.c
144
+ - dependencies/SDL_sound/libmodplug/load_dsm.c
145
+ - dependencies/SDL_sound/libmodplug/load_far.c
146
+ - dependencies/SDL_sound/libmodplug/load_it.c
147
+ - dependencies/SDL_sound/libmodplug/load_mdl.c
148
+ - dependencies/SDL_sound/libmodplug/load_med.c
149
+ - dependencies/SDL_sound/libmodplug/load_mid.c
150
+ - dependencies/SDL_sound/libmodplug/load_mod.c
151
+ - dependencies/SDL_sound/libmodplug/load_mt2.c
152
+ - dependencies/SDL_sound/libmodplug/load_mtm.c
153
+ - dependencies/SDL_sound/libmodplug/load_okt.c
154
+ - dependencies/SDL_sound/libmodplug/load_pat.c
155
+ - dependencies/SDL_sound/libmodplug/load_pat.h
156
+ - dependencies/SDL_sound/libmodplug/load_psm.c
157
+ - dependencies/SDL_sound/libmodplug/load_ptm.c
158
+ - dependencies/SDL_sound/libmodplug/load_s3m.c
159
+ - dependencies/SDL_sound/libmodplug/load_stm.c
160
+ - dependencies/SDL_sound/libmodplug/load_ult.c
161
+ - dependencies/SDL_sound/libmodplug/load_umx.c
162
+ - dependencies/SDL_sound/libmodplug/load_xm.c
163
+ - dependencies/SDL_sound/libmodplug/mmcmp.c
164
+ - dependencies/SDL_sound/libmodplug/modplug.c
165
+ - dependencies/SDL_sound/libmodplug/modplug.h
166
+ - dependencies/SDL_sound/libmodplug/snd_dsp.c
167
+ - dependencies/SDL_sound/libmodplug/snd_flt.c
168
+ - dependencies/SDL_sound/libmodplug/snd_fx.c
169
+ - dependencies/SDL_sound/libmodplug/sndfile.c
170
+ - dependencies/SDL_sound/libmodplug/sndmix.c
171
+ - dependencies/SDL_sound/libmodplug/tables.h
172
+ - dependencies/SDL_sound/stb_vorbis.h
173
+ - dependencies/al_soft/AL/al.h
174
+ - dependencies/al_soft/AL/alc.h
175
+ - dependencies/al_soft/AL/alext.h
176
+ - dependencies/al_soft/AL/efx-creative.h
177
+ - dependencies/al_soft/AL/efx-presets.h
178
+ - dependencies/al_soft/AL/efx.h
179
+ - dependencies/al_soft/x64/libOpenAL32.dll.a
180
+ - dependencies/al_soft/x86/libOpenAL32.dll.a
181
+ - dependencies/stb/stb_image.h
182
+ - dependencies/stb/stb_image_write.h
183
+ - dependencies/stb/stb_truetype.h
184
+ - dependencies/utf8proc/utf8proc.c
185
+ - dependencies/utf8proc/utf8proc.h
186
+ - dependencies/utf8proc/utf8proc_data.h
64
187
  - ext/gosu/extconf.rb
188
+ - include/Gosu/Audio.hpp
189
+ - include/Gosu/AutoLink.hpp
190
+ - include/Gosu/Bitmap.hpp
191
+ - include/Gosu/Buttons.hpp
192
+ - include/Gosu/Channel.h
193
+ - include/Gosu/Color.h
194
+ - include/Gosu/Color.hpp
195
+ - include/Gosu/Directories.hpp
196
+ - include/Gosu/Font.h
197
+ - include/Gosu/Font.hpp
198
+ - include/Gosu/Fwd.hpp
199
+ - include/Gosu/Gosu.h
200
+ - include/Gosu/Gosu.hpp
201
+ - include/Gosu/Graphics.hpp
202
+ - include/Gosu/GraphicsBase.hpp
203
+ - include/Gosu/IO.hpp
204
+ - include/Gosu/Image.h
205
+ - include/Gosu/Image.hpp
206
+ - include/Gosu/ImageData.hpp
207
+ - include/Gosu/Input.hpp
208
+ - include/Gosu/Inspection.hpp
209
+ - include/Gosu/Math.hpp
210
+ - include/Gosu/Platform.hpp
211
+ - include/Gosu/Sample.h
212
+ - include/Gosu/Song.h
213
+ - include/Gosu/Text.hpp
214
+ - include/Gosu/TextInput.h
215
+ - include/Gosu/TextInput.hpp
216
+ - include/Gosu/Timing.hpp
217
+ - include/Gosu/Utility.hpp
218
+ - include/Gosu/Version.hpp
219
+ - include/Gosu/Window.h
220
+ - include/Gosu/Window.hpp
221
+ - lib/OpenAL32.dll
222
+ - lib/SDL2.dll
65
223
  - lib/gosu.rb
66
224
  - lib/gosu/compat.rb
67
225
  - lib/gosu/patches.rb
@@ -69,12 +227,19 @@ files:
69
227
  - lib/gosu/run.rb
70
228
  - lib/gosu/swig_patches.rb
71
229
  - lib/gosu/zen.rb
230
+ - lib/libmpg123.dll
231
+ - lib/libsndfile.dll
232
+ - lib64/OpenAL32.dll
233
+ - lib64/SDL2.dll
234
+ - lib64/libmpg123.dll
235
+ - lib64/libsndfile.dll
72
236
  - rdoc/gosu.rb
73
237
  - src/Audio.cpp
74
238
  - src/AudioFile.hpp
239
+ - src/AudioFileAudioToolbox.cpp
240
+ - src/AudioFileSDLSound.cpp
75
241
  - src/AudioImpl.cpp
76
242
  - src/AudioImpl.hpp
77
- - src/AudioToolboxFile.hpp
78
243
  - src/Bitmap.cpp
79
244
  - src/BitmapIO.cpp
80
245
  - src/BlockAllocator.cpp
@@ -120,13 +285,11 @@ files:
120
285
  - src/Math.cpp
121
286
  - src/OffScreenTarget.cpp
122
287
  - src/OffScreenTarget.hpp
123
- - src/OggFile.hpp
124
288
  - src/RenderState.hpp
125
289
  - src/Resolution.cpp
126
290
  - src/RubyGosu.cxx
127
291
  - src/RubyGosu.h
128
292
  - src/SampleWrapper.cpp
129
- - src/SndFile.hpp
130
293
  - src/SongWrapper.cpp
131
294
  - src/TexChunk.cpp
132
295
  - src/TexChunk.hpp
@@ -151,24 +314,16 @@ files:
151
314
  - src/UtilityApple.cpp
152
315
  - src/UtilityWin.cpp
153
316
  - src/Version.cpp
154
- - src/WinMain.cpp
155
317
  - src/WinUtility.cpp
156
318
  - src/WinUtility.hpp
157
319
  - src/Window.cpp
158
320
  - src/WindowUIKit.cpp
159
321
  - src/WindowWrapper.cpp
160
- - src/stb_image.h
161
- - src/stb_image_write.h
162
- - src/stb_truetype.h
163
- - src/stb_vorbis.c
164
- - src/utf8proc.c
165
- - src/utf8proc.h
166
- - src/utf8proc_data.h
167
322
  homepage: https://www.libgosu.org/
168
323
  licenses:
169
324
  - MIT
170
325
  metadata: {}
171
- post_install_message:
326
+ post_install_message:
172
327
  rdoc_options:
173
328
  - "-m"
174
329
  - README.md
@@ -183,12 +338,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
338
  version: 1.9.3
184
339
  required_rubygems_version: !ruby/object:Gem::Requirement
185
340
  requirements:
186
- - - ">="
341
+ - - ">"
187
342
  - !ruby/object:Gem::Version
188
- version: '0'
343
+ version: 1.3.1
189
344
  requirements: []
190
- rubygems_version: 3.0.3
191
- signing_key:
345
+ rubygems_version: 3.2.3
346
+ signing_key:
192
347
  specification_version: 4
193
348
  summary: 2D game development library.
194
349
  test_files: []