gosu 0.14.6.pre1 → 1.0.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (242) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/COPYING +1 -1
  4. data/dependencies/SDL/include/SDL.h +138 -0
  5. data/dependencies/SDL/include/SDL_assert.h +293 -0
  6. data/dependencies/SDL/include/SDL_atomic.h +295 -0
  7. data/dependencies/SDL/include/SDL_audio.h +859 -0
  8. data/dependencies/SDL/include/SDL_bits.h +121 -0
  9. data/dependencies/SDL/include/SDL_blendmode.h +123 -0
  10. data/dependencies/SDL/include/SDL_clipboard.h +71 -0
  11. data/dependencies/SDL/include/SDL_config.h +55 -0
  12. data/dependencies/SDL/include/SDL_config_android.h +182 -0
  13. data/dependencies/SDL/include/SDL_config_iphoneos.h +207 -0
  14. data/dependencies/SDL/include/SDL_config_macosx.h +266 -0
  15. data/dependencies/SDL/include/SDL_config_minimal.h +85 -0
  16. data/dependencies/SDL/include/SDL_config_os2.h +188 -0
  17. data/dependencies/SDL/include/SDL_config_pandora.h +135 -0
  18. data/dependencies/SDL/include/SDL_config_psp.h +165 -0
  19. data/dependencies/SDL/include/SDL_config_windows.h +288 -0
  20. data/dependencies/SDL/include/SDL_config_winrt.h +243 -0
  21. data/dependencies/SDL/include/SDL_config_wiz.h +149 -0
  22. data/dependencies/SDL/include/SDL_copying.h +20 -0
  23. data/dependencies/SDL/include/SDL_cpuinfo.h +299 -0
  24. data/dependencies/SDL/include/SDL_egl.h +1676 -0
  25. data/dependencies/SDL/include/SDL_endian.h +263 -0
  26. data/dependencies/SDL/include/SDL_error.h +112 -0
  27. data/dependencies/SDL/include/SDL_events.h +827 -0
  28. data/dependencies/SDL/include/SDL_filesystem.h +136 -0
  29. data/dependencies/SDL/include/SDL_gamecontroller.h +541 -0
  30. data/dependencies/SDL/include/SDL_gesture.h +87 -0
  31. data/dependencies/SDL/include/SDL_haptic.h +1247 -0
  32. data/dependencies/SDL/include/SDL_hints.h +1578 -0
  33. data/dependencies/SDL/include/SDL_joystick.h +499 -0
  34. data/dependencies/SDL/include/SDL_keyboard.h +217 -0
  35. data/dependencies/SDL/include/SDL_keycode.h +351 -0
  36. data/dependencies/SDL/include/SDL_loadso.h +81 -0
  37. data/dependencies/SDL/include/SDL_locale.h +101 -0
  38. data/dependencies/SDL/include/SDL_log.h +211 -0
  39. data/dependencies/SDL/include/SDL_main.h +180 -0
  40. data/dependencies/SDL/include/SDL_messagebox.h +146 -0
  41. data/dependencies/SDL/include/SDL_metal.h +117 -0
  42. data/dependencies/SDL/include/SDL_misc.h +75 -0
  43. data/dependencies/SDL/include/SDL_mouse.h +302 -0
  44. data/dependencies/SDL/include/SDL_mutex.h +251 -0
  45. data/dependencies/SDL/include/SDL_name.h +33 -0
  46. data/dependencies/SDL/include/SDL_opengl.h +2183 -0
  47. data/dependencies/SDL/include/SDL_opengl_glext.h +11180 -0
  48. data/dependencies/SDL/include/SDL_opengles.h +39 -0
  49. data/dependencies/SDL/include/SDL_opengles2.h +52 -0
  50. data/dependencies/SDL/include/SDL_opengles2_gl2.h +621 -0
  51. data/dependencies/SDL/include/SDL_opengles2_gl2ext.h +2050 -0
  52. data/dependencies/SDL/include/SDL_opengles2_gl2platform.h +30 -0
  53. data/dependencies/SDL/include/SDL_opengles2_khrplatform.h +282 -0
  54. data/dependencies/SDL/include/SDL_pixels.h +479 -0
  55. data/dependencies/SDL/include/SDL_platform.h +198 -0
  56. data/dependencies/SDL/include/SDL_power.h +75 -0
  57. data/dependencies/SDL/include/SDL_quit.h +58 -0
  58. data/dependencies/SDL/include/SDL_rect.h +174 -0
  59. data/dependencies/SDL/include/SDL_render.h +1158 -0
  60. data/dependencies/SDL/include/SDL_revision.h +2 -0
  61. data/dependencies/SDL/include/SDL_rwops.h +283 -0
  62. data/dependencies/SDL/include/SDL_scancode.h +413 -0
  63. data/dependencies/SDL/include/SDL_sensor.h +267 -0
  64. data/dependencies/SDL/include/SDL_shape.h +144 -0
  65. data/dependencies/SDL/include/SDL_stdinc.h +647 -0
  66. data/dependencies/SDL/include/SDL_surface.h +563 -0
  67. data/dependencies/SDL/include/SDL_system.h +325 -0
  68. data/dependencies/SDL/include/SDL_syswm.h +354 -0
  69. data/dependencies/SDL/include/SDL_test.h +69 -0
  70. data/dependencies/SDL/include/SDL_test_assert.h +105 -0
  71. data/dependencies/SDL/include/SDL_test_common.h +218 -0
  72. data/dependencies/SDL/include/SDL_test_compare.h +69 -0
  73. data/dependencies/SDL/include/SDL_test_crc32.h +124 -0
  74. data/dependencies/SDL/include/SDL_test_font.h +81 -0
  75. data/dependencies/SDL/include/SDL_test_fuzzer.h +384 -0
  76. data/dependencies/SDL/include/SDL_test_harness.h +134 -0
  77. data/dependencies/SDL/include/SDL_test_images.h +78 -0
  78. data/dependencies/SDL/include/SDL_test_log.h +67 -0
  79. data/dependencies/SDL/include/SDL_test_md5.h +129 -0
  80. data/dependencies/SDL/include/SDL_test_memory.h +63 -0
  81. data/dependencies/SDL/include/SDL_test_random.h +115 -0
  82. data/dependencies/SDL/include/SDL_thread.h +366 -0
  83. data/dependencies/SDL/include/SDL_timer.h +115 -0
  84. data/dependencies/SDL/include/SDL_touch.h +102 -0
  85. data/dependencies/SDL/include/SDL_types.h +29 -0
  86. data/dependencies/SDL/include/SDL_version.h +162 -0
  87. data/dependencies/SDL/include/SDL_video.h +1282 -0
  88. data/dependencies/SDL/include/SDL_vulkan.h +276 -0
  89. data/dependencies/SDL/include/begin_code.h +166 -0
  90. data/dependencies/SDL/include/close_code.h +40 -0
  91. data/dependencies/SDL/lib/x64/libSDL2.dll.a +0 -0
  92. data/dependencies/SDL/lib/x86/libSDL2.dll.a +0 -0
  93. data/dependencies/SDL_sound/SDL_sound.c +795 -0
  94. data/dependencies/SDL_sound/SDL_sound.h +725 -0
  95. data/dependencies/SDL_sound/SDL_sound_aiff.c +537 -0
  96. data/dependencies/SDL_sound/SDL_sound_au.c +352 -0
  97. data/dependencies/SDL_sound/SDL_sound_coreaudio.c +747 -0
  98. data/dependencies/SDL_sound/SDL_sound_flac.c +182 -0
  99. data/dependencies/SDL_sound/SDL_sound_internal.h +304 -0
  100. data/dependencies/SDL_sound/SDL_sound_modplug.c +228 -0
  101. data/dependencies/SDL_sound/SDL_sound_mp3.c +184 -0
  102. data/dependencies/SDL_sound/SDL_sound_raw.c +164 -0
  103. data/dependencies/SDL_sound/SDL_sound_shn.c +1309 -0
  104. data/dependencies/SDL_sound/SDL_sound_voc.c +550 -0
  105. data/dependencies/SDL_sound/SDL_sound_vorbis.c +223 -0
  106. data/dependencies/SDL_sound/SDL_sound_wav.c +783 -0
  107. data/dependencies/SDL_sound/dr_flac.h +5906 -0
  108. data/dependencies/SDL_sound/dr_mp3.h +2832 -0
  109. data/dependencies/SDL_sound/libmodplug/fastmix.c +1748 -0
  110. data/dependencies/SDL_sound/libmodplug/libmodplug.h +1001 -0
  111. data/dependencies/SDL_sound/libmodplug/load_669.c +188 -0
  112. data/dependencies/SDL_sound/libmodplug/load_abc.c +4725 -0
  113. data/dependencies/SDL_sound/libmodplug/load_amf.c +403 -0
  114. data/dependencies/SDL_sound/libmodplug/load_ams.c +587 -0
  115. data/dependencies/SDL_sound/libmodplug/load_dbm.c +357 -0
  116. data/dependencies/SDL_sound/libmodplug/load_dmf.c +531 -0
  117. data/dependencies/SDL_sound/libmodplug/load_dsm.c +232 -0
  118. data/dependencies/SDL_sound/libmodplug/load_far.c +253 -0
  119. data/dependencies/SDL_sound/libmodplug/load_it.c +796 -0
  120. data/dependencies/SDL_sound/libmodplug/load_mdl.c +488 -0
  121. data/dependencies/SDL_sound/libmodplug/load_med.c +757 -0
  122. data/dependencies/SDL_sound/libmodplug/load_mid.c +1405 -0
  123. data/dependencies/SDL_sound/libmodplug/load_mod.c +269 -0
  124. data/dependencies/SDL_sound/libmodplug/load_mt2.c +546 -0
  125. data/dependencies/SDL_sound/libmodplug/load_mtm.c +142 -0
  126. data/dependencies/SDL_sound/libmodplug/load_okt.c +192 -0
  127. data/dependencies/SDL_sound/libmodplug/load_pat.c +1143 -0
  128. data/dependencies/SDL_sound/libmodplug/load_pat.h +25 -0
  129. data/dependencies/SDL_sound/libmodplug/load_psm.c +350 -0
  130. data/dependencies/SDL_sound/libmodplug/load_ptm.c +204 -0
  131. data/dependencies/SDL_sound/libmodplug/load_s3m.c +325 -0
  132. data/dependencies/SDL_sound/libmodplug/load_stm.c +180 -0
  133. data/dependencies/SDL_sound/libmodplug/load_ult.c +206 -0
  134. data/dependencies/SDL_sound/libmodplug/load_umx.c +51 -0
  135. data/dependencies/SDL_sound/libmodplug/load_xm.c +554 -0
  136. data/dependencies/SDL_sound/libmodplug/mmcmp.c +382 -0
  137. data/dependencies/SDL_sound/libmodplug/modplug.c +170 -0
  138. data/dependencies/SDL_sound/libmodplug/modplug.h +90 -0
  139. data/dependencies/SDL_sound/libmodplug/snd_dsp.c +301 -0
  140. data/dependencies/SDL_sound/libmodplug/snd_flt.c +63 -0
  141. data/dependencies/SDL_sound/libmodplug/snd_fx.c +2350 -0
  142. data/dependencies/SDL_sound/libmodplug/sndfile.c +1169 -0
  143. data/dependencies/SDL_sound/libmodplug/sndmix.c +1034 -0
  144. data/dependencies/SDL_sound/libmodplug/tables.h +371 -0
  145. data/{src/stb_vorbis.c → dependencies/SDL_sound/stb_vorbis.h} +128 -23
  146. data/dependencies/al_soft/AL/al.h +655 -0
  147. data/dependencies/al_soft/AL/alc.h +270 -0
  148. data/dependencies/al_soft/AL/alext.h +585 -0
  149. data/dependencies/al_soft/AL/efx-creative.h +3 -0
  150. data/dependencies/al_soft/AL/efx-presets.h +402 -0
  151. data/dependencies/al_soft/AL/efx.h +762 -0
  152. data/dependencies/al_soft/x64/libOpenAL32.dll.a +0 -0
  153. data/dependencies/al_soft/x86/libOpenAL32.dll.a +0 -0
  154. data/{src → dependencies/stb}/stb_image.h +476 -176
  155. data/{src → dependencies/stb}/stb_image_write.h +253 -131
  156. data/{src → dependencies/stb}/stb_truetype.h +262 -104
  157. data/{src → dependencies/utf8proc}/utf8proc.c +47 -29
  158. data/{src → dependencies/utf8proc}/utf8proc.h +46 -24
  159. data/{src → dependencies/utf8proc}/utf8proc_data.h +10043 -9609
  160. data/ext/gosu/extconf.rb +53 -39
  161. data/{Gosu → include/Gosu}/Audio.hpp +6 -8
  162. data/include/Gosu/Bitmap.hpp +100 -0
  163. data/{Gosu → include/Gosu}/Buttons.hpp +104 -44
  164. data/include/Gosu/Channel.h +25 -0
  165. data/include/Gosu/Color.h +38 -0
  166. data/{Gosu → include/Gosu}/Color.hpp +0 -0
  167. data/{Gosu → include/Gosu}/Directories.hpp +0 -0
  168. data/include/Gosu/Font.h +36 -0
  169. data/{Gosu → include/Gosu}/Font.hpp +0 -0
  170. data/{Gosu → include/Gosu}/Fwd.hpp +0 -5
  171. data/include/Gosu/Gosu.h +82 -0
  172. data/{Gosu → include/Gosu}/Gosu.hpp +0 -0
  173. data/{Gosu → include/Gosu}/Graphics.hpp +0 -0
  174. data/{Gosu → include/Gosu}/GraphicsBase.hpp +0 -0
  175. data/{Gosu → include/Gosu}/IO.hpp +0 -0
  176. data/include/Gosu/Image.h +54 -0
  177. data/{Gosu → include/Gosu}/Image.hpp +7 -6
  178. data/{Gosu → include/Gosu}/ImageData.hpp +0 -0
  179. data/{Gosu → include/Gosu}/Input.hpp +39 -51
  180. data/{Gosu → include/Gosu}/Inspection.hpp +0 -0
  181. data/{Gosu → include/Gosu}/Math.hpp +0 -0
  182. data/{Gosu → include/Gosu}/Platform.hpp +0 -0
  183. data/include/Gosu/Sample.h +19 -0
  184. data/include/Gosu/Song.h +24 -0
  185. data/{Gosu → include/Gosu}/Text.hpp +0 -0
  186. data/include/Gosu/TextInput.h +30 -0
  187. data/{Gosu → include/Gosu}/TextInput.hpp +0 -0
  188. data/{Gosu → include/Gosu}/Timing.hpp +0 -0
  189. data/{Gosu → include/Gosu}/Utility.hpp +15 -4
  190. data/{Gosu → include/Gosu}/Version.hpp +3 -3
  191. data/include/Gosu/Window.h +63 -0
  192. data/{Gosu → include/Gosu}/Window.hpp +23 -25
  193. data/lib/OpenAL32.dll +0 -0
  194. data/lib/SDL2.dll +0 -0
  195. data/lib/gosu.rb +0 -3
  196. data/lib/gosu/compat.rb +9 -4
  197. data/lib/gosu/patches.rb +8 -11
  198. data/lib/gosu/swig_patches.rb +13 -6
  199. data/lib64/OpenAL32.dll +0 -0
  200. data/lib64/SDL2.dll +0 -0
  201. data/rdoc/gosu.rb +114 -21
  202. data/src/Audio.cpp +50 -224
  203. data/src/AudioFile.hpp +20 -37
  204. data/src/AudioFileAudioToolbox.cpp +237 -0
  205. data/src/AudioFileSDLSound.cpp +147 -0
  206. data/src/AudioImpl.cpp +3 -12
  207. data/src/AudioImpl.hpp +3 -1
  208. data/src/Bitmap.cpp +85 -83
  209. data/src/BitmapIO.cpp +52 -58
  210. data/src/ChannelWrapper.cpp +50 -0
  211. data/src/ColorWrapper.cpp +126 -0
  212. data/src/Constants.cpp +338 -0
  213. data/src/Font.cpp +4 -1
  214. data/src/FontWrapper.cpp +74 -0
  215. data/src/GosuWrapper.cpp +251 -0
  216. data/src/Graphics.cpp +11 -5
  217. data/src/GraphicsImpl.hpp +0 -1
  218. data/src/Image.cpp +13 -16
  219. data/src/ImageWrapper.cpp +168 -0
  220. data/src/Input.cpp +412 -164
  221. data/src/LargeImageData.cpp +2 -1
  222. data/src/MarkupParser.cpp +13 -4
  223. data/src/RubyGosu.cxx +502 -219
  224. data/src/RubyGosu.h +4 -2
  225. data/src/SampleWrapper.cpp +30 -0
  226. data/src/SongWrapper.cpp +52 -0
  227. data/src/TexChunk.cpp +29 -19
  228. data/src/Text.cpp +2 -0
  229. data/src/TextBuilder.cpp +6 -4
  230. data/src/TextInputWrapper.cpp +101 -0
  231. data/src/Texture.cpp +1 -1
  232. data/src/TrueTypeFont.cpp +2 -1
  233. data/src/Utility.cpp +11 -7
  234. data/src/Window.cpp +30 -39
  235. data/src/WindowWrapper.cpp +317 -0
  236. metadata +212 -42
  237. data/Gosu/AutoLink.hpp +0 -14
  238. data/Gosu/Bitmap.hpp +0 -113
  239. data/src/AudioToolboxFile.hpp +0 -210
  240. data/src/OggFile.hpp +0 -92
  241. data/src/SndFile.hpp +0 -174
  242. data/src/WinMain.cpp +0 -64
@@ -0,0 +1,317 @@
1
+ #include <Gosu/Gosu.hpp>
2
+
3
+ namespace Gosu
4
+ {
5
+ class WindowForWrapper : public Gosu::Window
6
+ {
7
+ public:
8
+ WindowForWrapper(int width, int height, bool fullscreen, double update_interval, bool resizable);
9
+ void update() override;
10
+ void draw() override;
11
+ void default_button_down(unsigned btn); // Enables fullscreen toggle
12
+ void button_down(Gosu::Button btn) override;
13
+ void button_up(Gosu::Button btn) override;
14
+ void gamepad_connected(int id) override;
15
+ void gamepad_disconnected(int id) override;
16
+ void drop(const std::string &filename) override;
17
+ bool needs_redraw() const override;
18
+ bool needs_cursor() const override;
19
+ void close() override;
20
+
21
+ void close_immediately();
22
+
23
+ std::function<void ()> update_callback;
24
+ std::function<void ()> draw_callback;
25
+ std::function<void (unsigned btn)> button_down_callback;
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;
29
+ std::function<void (const char *filename)> drop_callback;
30
+ std::function<bool ()> needs_redraw_callback;
31
+ std::function<bool ()> needs_cursor_callback;
32
+ std::function<void ()> close_callback;
33
+ };
34
+ } // namespace Gosu
35
+
36
+ Gosu::WindowForWrapper::WindowForWrapper(int width, int height, bool fullscreen,
37
+ double update_interval, bool resizable)
38
+ : Gosu::Window(width, height, fullscreen, update_interval, resizable)
39
+ {
40
+ }
41
+
42
+ void Gosu::WindowForWrapper::update()
43
+ {
44
+ if (update_callback != nullptr) {
45
+ update_callback();
46
+ }
47
+ }
48
+
49
+ void Gosu::WindowForWrapper::draw()
50
+ {
51
+ if (draw_callback != nullptr) {
52
+ draw_callback();
53
+ }
54
+ }
55
+
56
+ void Gosu::WindowForWrapper::default_button_down(unsigned btn)
57
+ {
58
+ Gosu::Window::button_down(Gosu::Button(btn));
59
+ }
60
+
61
+ void Gosu::WindowForWrapper::button_down(Gosu::Button btn)
62
+ {
63
+ if (button_down_callback != nullptr) {
64
+ button_down_callback(btn);
65
+ }
66
+ }
67
+
68
+ void Gosu::WindowForWrapper::button_up(Gosu::Button btn)
69
+ {
70
+ if (button_up_callback != nullptr) {
71
+ button_up_callback(btn);
72
+ }
73
+ }
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
+
89
+ void Gosu::WindowForWrapper::drop(const std::string &filename)
90
+ {
91
+ if (drop_callback != nullptr) {
92
+ drop_callback(filename.c_str());
93
+ }
94
+ }
95
+
96
+ bool Gosu::WindowForWrapper::needs_redraw() const
97
+ {
98
+ if (needs_redraw_callback != nullptr) {
99
+ return needs_redraw_callback();
100
+ }
101
+ else {
102
+ return true;
103
+ }
104
+ }
105
+
106
+ bool Gosu::WindowForWrapper::needs_cursor() const
107
+ {
108
+ if (needs_cursor_callback != nullptr) {
109
+ return needs_cursor_callback();
110
+ }
111
+ else {
112
+ return false;
113
+ }
114
+ }
115
+
116
+ void Gosu::WindowForWrapper::close()
117
+ {
118
+ if (close_callback != nullptr) {
119
+ close_callback();
120
+ }
121
+ else {
122
+ Gosu::Window::close();
123
+ }
124
+ }
125
+
126
+ void Gosu::WindowForWrapper::close_immediately()
127
+ {
128
+ Gosu::Window::close();
129
+ }
130
+
131
+ extern "C" {
132
+ #include <Gosu/Window.h>
133
+ #include <Gosu/TextInput.h>
134
+
135
+ // Constructor
136
+ Gosu_Window *Gosu_Window_create(int width, int height, bool fullscreen, double update_interval, bool resizable)
137
+ {
138
+ return reinterpret_cast<Gosu_Window *>(new Gosu::WindowForWrapper(width, height, fullscreen, update_interval, resizable));
139
+ };
140
+
141
+ // Callbacks
142
+ void Gosu_Window_set_draw(Gosu_Window *window, void function(void *data), void *data)
143
+ {
144
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->draw_callback = [=]() { function(data); };
145
+ }
146
+
147
+ void Gosu_Window_set_update(Gosu_Window *window, void function(void *data), void *data)
148
+ {
149
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->update_callback = [=]() { function(data); };
150
+ }
151
+
152
+ void Gosu_Window_set_button_down(Gosu_Window *window, void function(void *data, unsigned btn), void *data)
153
+ {
154
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->button_down_callback = [=](unsigned btn) { function(data, btn); };
155
+ }
156
+
157
+ void Gosu_Window_default_button_down(Gosu_Window *window, unsigned btn)
158
+ {
159
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->default_button_down(btn);
160
+ }
161
+
162
+ void Gosu_Window_set_button_up(Gosu_Window *window, void function(void *data, unsigned btn), void *data)
163
+ {
164
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->button_up_callback = [=](unsigned btn) { function(data, btn); };
165
+ }
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
+
177
+ void Gosu_Window_set_drop(Gosu_Window *window, void function(void *data, const char *filename), void *data)
178
+ {
179
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->drop_callback = [=](const char *filename) { function(data, filename); };
180
+ }
181
+
182
+ void Gosu_Window_set_needs_redraw(Gosu_Window *window, bool function(void *data), void *data)
183
+ {
184
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->needs_redraw_callback = [=]() -> bool { return function(data); };
185
+ }
186
+
187
+ void Gosu_Window_set_needs_cursor(Gosu_Window *window, bool function(void *data), void *data)
188
+ {
189
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->needs_cursor_callback = [=]() -> bool { return function(data); };
190
+ }
191
+
192
+ void Gosu_Window_set_close(Gosu_Window *window, void function(void *data), void *data)
193
+ {
194
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->close_callback = [=]() { function(data); };
195
+ }
196
+
197
+ Gosu_TextInput *Gosu_Window_text_input(Gosu_Window *window)
198
+ {
199
+ Gosu::Window *gosu_window = reinterpret_cast<Gosu::WindowForWrapper *>(window);
200
+ return reinterpret_cast<Gosu_TextInput *>(gosu_window->input().text_input());
201
+ }
202
+
203
+ void Gosu_Window_set_text_input(Gosu_Window *window, Gosu_TextInput *text_input)
204
+ {
205
+ Gosu::Window *gosu_window = reinterpret_cast<Gosu::WindowForWrapper *>(window);
206
+ gosu_window->input().set_text_input(reinterpret_cast<Gosu::TextInput *>(text_input));
207
+ }
208
+
209
+ void Gosu_Window_show(Gosu_Window *window)
210
+ {
211
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->show();
212
+ }
213
+
214
+ bool Gosu_Window_tick(Gosu_Window *window)
215
+ {
216
+ return reinterpret_cast<Gosu::WindowForWrapper *>(window)->tick();
217
+ }
218
+
219
+ void Gosu_Window_close_immediately(Gosu_Window *window)
220
+ {
221
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->close_immediately();
222
+ }
223
+
224
+ bool Gosu_Window_is_fullscreen(Gosu_Window *window)
225
+ {
226
+ return reinterpret_cast<Gosu::WindowForWrapper *>(window)->fullscreen();
227
+ }
228
+
229
+ bool Gosu_Window_is_resizable(Gosu_Window *window)
230
+ {
231
+ return reinterpret_cast<Gosu::WindowForWrapper *>(window)->resizable();
232
+ }
233
+
234
+ const char *Gosu_Window_caption(Gosu_Window *window)
235
+ {
236
+ static thread_local std::string caption;
237
+ caption = reinterpret_cast<Gosu::WindowForWrapper *>(window)->caption();
238
+
239
+ return caption.c_str();
240
+ }
241
+
242
+ void Gosu_Window_set_caption(Gosu_Window *window, const char *caption)
243
+ {
244
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->set_caption(caption);
245
+ }
246
+
247
+ double Gosu_Window_update_interval(Gosu_Window *window)
248
+ {
249
+ return reinterpret_cast<Gosu::WindowForWrapper *>(window)->update_interval();
250
+ }
251
+
252
+ void Gosu_Window_set_update_interval(Gosu_Window *window, double update_interval)
253
+ {
254
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->set_update_interval(update_interval);
255
+ }
256
+
257
+ void Gosu_Window_set_mouse_x(Gosu_Window *window, double x)
258
+ {
259
+ Gosu::Window *gosu_window = reinterpret_cast<Gosu::WindowForWrapper *>(window);
260
+ gosu_window->input().set_mouse_position(x, gosu_window->input().mouse_x());
261
+ }
262
+
263
+ void Gosu_Window_set_mouse_y(Gosu_Window *window, double y)
264
+ {
265
+ Gosu::Window *gosu_window = reinterpret_cast<Gosu::WindowForWrapper *>(window);
266
+ gosu_window->input().set_mouse_position(gosu_window->input().mouse_x(), y);
267
+ }
268
+
269
+ double Gosu_Window_mouse_x(Gosu_Window *window)
270
+ {
271
+ return reinterpret_cast<Gosu::WindowForWrapper *>(window)->input().mouse_x();
272
+ }
273
+
274
+ double Gosu_Window_mouse_y(Gosu_Window *window)
275
+ {
276
+ return reinterpret_cast<Gosu::WindowForWrapper *>(window)->input().mouse_y();
277
+ }
278
+
279
+ int Gosu_Window_width(Gosu_Window *window)
280
+ {
281
+ return reinterpret_cast<Gosu::WindowForWrapper *>(window)->width();
282
+ }
283
+
284
+ void Gosu_Window_set_width(Gosu_Window *window, int width)
285
+ {
286
+ Gosu::Window *gosu_window = reinterpret_cast<Gosu::WindowForWrapper *>(window);
287
+ gosu_window->resize(width, gosu_window->height(), gosu_window->fullscreen());
288
+ }
289
+
290
+ int Gosu_Window_height(Gosu_Window *window)
291
+ {
292
+ return reinterpret_cast<Gosu::WindowForWrapper *>(window)->height();
293
+ }
294
+
295
+ void Gosu_Window_set_height(Gosu_Window *window, int height)
296
+ {
297
+ Gosu::Window *gosu_window = reinterpret_cast<Gosu::WindowForWrapper *>(window);
298
+ gosu_window->resize(gosu_window->width(), height, gosu_window->fullscreen());
299
+ }
300
+
301
+ void Gosu_Window_resize(Gosu_Window *window, int width, int height, bool fullscreen)
302
+ {
303
+ reinterpret_cast<Gosu::WindowForWrapper *>(window)->resize(width, height, fullscreen);
304
+ }
305
+
306
+ int Gosu_Window_is_button_down(Gosu_Window *window, unsigned btn)
307
+ {
308
+ return reinterpret_cast<Gosu::WindowForWrapper *>(window)->input().down(Gosu::Button(btn));
309
+ }
310
+
311
+ // Destructor
312
+ void Gosu_Window_destroy(Gosu_Window *window)
313
+ {
314
+ delete (reinterpret_cast<Gosu::WindowForWrapper *>(window));
315
+ }
316
+
317
+ }
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.14.6.pre1
4
+ version: 1.0.0.pre2
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: 2019-10-18 00:00:00.000000000 Z
11
+ date: 2020-12-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.
@@ -25,33 +25,200 @@ extra_rdoc_files:
25
25
  - COPYING
26
26
  - rdoc/gosu.rb
27
27
  files:
28
+ - ".yardopts"
28
29
  - COPYING
29
- - Gosu/Audio.hpp
30
- - Gosu/AutoLink.hpp
31
- - Gosu/Bitmap.hpp
32
- - Gosu/Buttons.hpp
33
- - Gosu/Color.hpp
34
- - Gosu/Directories.hpp
35
- - Gosu/Font.hpp
36
- - Gosu/Fwd.hpp
37
- - Gosu/Gosu.hpp
38
- - Gosu/Graphics.hpp
39
- - Gosu/GraphicsBase.hpp
40
- - Gosu/IO.hpp
41
- - Gosu/Image.hpp
42
- - Gosu/ImageData.hpp
43
- - Gosu/Input.hpp
44
- - Gosu/Inspection.hpp
45
- - Gosu/Math.hpp
46
- - Gosu/Platform.hpp
47
- - Gosu/Text.hpp
48
- - Gosu/TextInput.hpp
49
- - Gosu/Timing.hpp
50
- - Gosu/Utility.hpp
51
- - Gosu/Version.hpp
52
- - Gosu/Window.hpp
53
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
54
187
  - ext/gosu/extconf.rb
188
+ - include/Gosu/Audio.hpp
189
+ - include/Gosu/Bitmap.hpp
190
+ - include/Gosu/Buttons.hpp
191
+ - include/Gosu/Channel.h
192
+ - include/Gosu/Color.h
193
+ - include/Gosu/Color.hpp
194
+ - include/Gosu/Directories.hpp
195
+ - include/Gosu/Font.h
196
+ - include/Gosu/Font.hpp
197
+ - include/Gosu/Fwd.hpp
198
+ - include/Gosu/Gosu.h
199
+ - include/Gosu/Gosu.hpp
200
+ - include/Gosu/Graphics.hpp
201
+ - include/Gosu/GraphicsBase.hpp
202
+ - include/Gosu/IO.hpp
203
+ - include/Gosu/Image.h
204
+ - include/Gosu/Image.hpp
205
+ - include/Gosu/ImageData.hpp
206
+ - include/Gosu/Input.hpp
207
+ - include/Gosu/Inspection.hpp
208
+ - include/Gosu/Math.hpp
209
+ - include/Gosu/Platform.hpp
210
+ - include/Gosu/Sample.h
211
+ - include/Gosu/Song.h
212
+ - include/Gosu/Text.hpp
213
+ - include/Gosu/TextInput.h
214
+ - include/Gosu/TextInput.hpp
215
+ - include/Gosu/Timing.hpp
216
+ - include/Gosu/Utility.hpp
217
+ - include/Gosu/Version.hpp
218
+ - include/Gosu/Window.h
219
+ - include/Gosu/Window.hpp
220
+ - lib/OpenAL32.dll
221
+ - lib/SDL2.dll
55
222
  - lib/gosu.rb
56
223
  - lib/gosu/compat.rb
57
224
  - lib/gosu/patches.rb
@@ -59,19 +226,25 @@ files:
59
226
  - lib/gosu/run.rb
60
227
  - lib/gosu/swig_patches.rb
61
228
  - lib/gosu/zen.rb
229
+ - lib64/OpenAL32.dll
230
+ - lib64/SDL2.dll
62
231
  - rdoc/gosu.rb
63
232
  - src/Audio.cpp
64
233
  - src/AudioFile.hpp
234
+ - src/AudioFileAudioToolbox.cpp
235
+ - src/AudioFileSDLSound.cpp
65
236
  - src/AudioImpl.cpp
66
237
  - src/AudioImpl.hpp
67
- - src/AudioToolboxFile.hpp
68
238
  - src/Bitmap.cpp
69
239
  - src/BitmapIO.cpp
70
240
  - src/BlockAllocator.cpp
71
241
  - src/BlockAllocator.hpp
72
242
  - src/Channel.cpp
243
+ - src/ChannelWrapper.cpp
73
244
  - src/ClipRectStack.hpp
74
245
  - src/Color.cpp
246
+ - src/ColorWrapper.cpp
247
+ - src/Constants.cpp
75
248
  - src/DirectoriesApple.cpp
76
249
  - src/DirectoriesUnix.cpp
77
250
  - src/DirectoriesWin.cpp
@@ -81,15 +254,18 @@ files:
81
254
  - src/FileUnix.cpp
82
255
  - src/FileWin.cpp
83
256
  - src/Font.cpp
257
+ - src/FontWrapper.cpp
84
258
  - src/GosuGLView.cpp
85
259
  - src/GosuGLView.hpp
86
260
  - src/GosuViewController.cpp
87
261
  - src/GosuViewController.hpp
262
+ - src/GosuWrapper.cpp
88
263
  - src/Graphics.cpp
89
264
  - src/GraphicsImpl.hpp
90
265
  - src/IO.cpp
91
266
  - src/Iconv.hpp
92
267
  - src/Image.cpp
268
+ - src/ImageWrapper.cpp
93
269
  - src/Input.cpp
94
270
  - src/InputUIKit.cpp
95
271
  - src/Inspection.cpp
@@ -104,18 +280,19 @@ files:
104
280
  - src/Math.cpp
105
281
  - src/OffScreenTarget.cpp
106
282
  - src/OffScreenTarget.hpp
107
- - src/OggFile.hpp
108
283
  - src/RenderState.hpp
109
284
  - src/Resolution.cpp
110
285
  - src/RubyGosu.cxx
111
286
  - src/RubyGosu.h
112
- - src/SndFile.hpp
287
+ - src/SampleWrapper.cpp
288
+ - src/SongWrapper.cpp
113
289
  - src/TexChunk.cpp
114
290
  - src/TexChunk.hpp
115
291
  - src/Text.cpp
116
292
  - src/TextBuilder.cpp
117
293
  - src/TextBuilder.hpp
118
294
  - src/TextInput.cpp
295
+ - src/TextInputWrapper.cpp
119
296
  - src/Texture.cpp
120
297
  - src/Texture.hpp
121
298
  - src/TimingApple.cpp
@@ -132,23 +309,16 @@ files:
132
309
  - src/UtilityApple.cpp
133
310
  - src/UtilityWin.cpp
134
311
  - src/Version.cpp
135
- - src/WinMain.cpp
136
312
  - src/WinUtility.cpp
137
313
  - src/WinUtility.hpp
138
314
  - src/Window.cpp
139
315
  - src/WindowUIKit.cpp
140
- - src/stb_image.h
141
- - src/stb_image_write.h
142
- - src/stb_truetype.h
143
- - src/stb_vorbis.c
144
- - src/utf8proc.c
145
- - src/utf8proc.h
146
- - src/utf8proc_data.h
316
+ - src/WindowWrapper.cpp
147
317
  homepage: https://www.libgosu.org/
148
318
  licenses:
149
319
  - MIT
150
320
  metadata: {}
151
- post_install_message:
321
+ post_install_message:
152
322
  rdoc_options:
153
323
  - "-m"
154
324
  - README.md
@@ -160,15 +330,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
330
  requirements:
161
331
  - - ">="
162
332
  - !ruby/object:Gem::Version
163
- version: 1.9.3
333
+ version: 2.5.0
164
334
  required_rubygems_version: !ruby/object:Gem::Requirement
165
335
  requirements:
166
336
  - - ">"
167
337
  - !ruby/object:Gem::Version
168
338
  version: 1.3.1
169
339
  requirements: []
170
- rubygems_version: 3.0.3
171
- signing_key:
340
+ rubygems_version: 3.2.3
341
+ signing_key:
172
342
  specification_version: 4
173
343
  summary: 2D game development library.
174
344
  test_files: []