gosu 0.15.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/COPYING +1 -1
- data/dependencies/SDL/include/SDL.h +138 -0
- data/dependencies/SDL/include/SDL_assert.h +293 -0
- data/dependencies/SDL/include/SDL_atomic.h +295 -0
- data/dependencies/SDL/include/SDL_audio.h +859 -0
- data/dependencies/SDL/include/SDL_bits.h +121 -0
- data/dependencies/SDL/include/SDL_blendmode.h +123 -0
- data/dependencies/SDL/include/SDL_clipboard.h +71 -0
- data/dependencies/SDL/include/SDL_config.h +55 -0
- data/dependencies/SDL/include/SDL_config_android.h +182 -0
- data/dependencies/SDL/include/SDL_config_iphoneos.h +207 -0
- data/dependencies/SDL/include/SDL_config_macosx.h +266 -0
- data/dependencies/SDL/include/SDL_config_minimal.h +85 -0
- data/dependencies/SDL/include/SDL_config_os2.h +188 -0
- data/dependencies/SDL/include/SDL_config_pandora.h +135 -0
- data/dependencies/SDL/include/SDL_config_psp.h +165 -0
- data/dependencies/SDL/include/SDL_config_windows.h +288 -0
- data/dependencies/SDL/include/SDL_config_winrt.h +243 -0
- data/dependencies/SDL/include/SDL_config_wiz.h +149 -0
- data/dependencies/SDL/include/SDL_copying.h +20 -0
- data/dependencies/SDL/include/SDL_cpuinfo.h +299 -0
- data/dependencies/SDL/include/SDL_egl.h +1676 -0
- data/dependencies/SDL/include/SDL_endian.h +263 -0
- data/dependencies/SDL/include/SDL_error.h +112 -0
- data/dependencies/SDL/include/SDL_events.h +827 -0
- data/dependencies/SDL/include/SDL_filesystem.h +136 -0
- data/dependencies/SDL/include/SDL_gamecontroller.h +541 -0
- data/dependencies/SDL/include/SDL_gesture.h +87 -0
- data/dependencies/SDL/include/SDL_haptic.h +1247 -0
- data/dependencies/SDL/include/SDL_hints.h +1578 -0
- data/dependencies/SDL/include/SDL_joystick.h +499 -0
- data/dependencies/SDL/include/SDL_keyboard.h +217 -0
- data/dependencies/SDL/include/SDL_keycode.h +351 -0
- data/dependencies/SDL/include/SDL_loadso.h +81 -0
- data/dependencies/SDL/include/SDL_locale.h +101 -0
- data/dependencies/SDL/include/SDL_log.h +211 -0
- data/dependencies/SDL/include/SDL_main.h +180 -0
- data/dependencies/SDL/include/SDL_messagebox.h +146 -0
- data/dependencies/SDL/include/SDL_metal.h +117 -0
- data/dependencies/SDL/include/SDL_misc.h +75 -0
- data/dependencies/SDL/include/SDL_mouse.h +302 -0
- data/dependencies/SDL/include/SDL_mutex.h +251 -0
- data/dependencies/SDL/include/SDL_name.h +33 -0
- data/dependencies/SDL/include/SDL_opengl.h +2183 -0
- data/dependencies/SDL/include/SDL_opengl_glext.h +11180 -0
- data/dependencies/SDL/include/SDL_opengles.h +39 -0
- data/dependencies/SDL/include/SDL_opengles2.h +52 -0
- data/dependencies/SDL/include/SDL_opengles2_gl2.h +621 -0
- data/dependencies/SDL/include/SDL_opengles2_gl2ext.h +2050 -0
- data/dependencies/SDL/include/SDL_opengles2_gl2platform.h +30 -0
- data/dependencies/SDL/include/SDL_opengles2_khrplatform.h +282 -0
- data/dependencies/SDL/include/SDL_pixels.h +479 -0
- data/dependencies/SDL/include/SDL_platform.h +198 -0
- data/dependencies/SDL/include/SDL_power.h +75 -0
- data/dependencies/SDL/include/SDL_quit.h +58 -0
- data/dependencies/SDL/include/SDL_rect.h +174 -0
- data/dependencies/SDL/include/SDL_render.h +1158 -0
- data/dependencies/SDL/include/SDL_revision.h +2 -0
- data/dependencies/SDL/include/SDL_rwops.h +283 -0
- data/dependencies/SDL/include/SDL_scancode.h +413 -0
- data/dependencies/SDL/include/SDL_sensor.h +267 -0
- data/dependencies/SDL/include/SDL_shape.h +144 -0
- data/dependencies/SDL/include/SDL_stdinc.h +647 -0
- data/dependencies/SDL/include/SDL_surface.h +563 -0
- data/dependencies/SDL/include/SDL_system.h +325 -0
- data/dependencies/SDL/include/SDL_syswm.h +354 -0
- data/dependencies/SDL/include/SDL_test.h +69 -0
- data/dependencies/SDL/include/SDL_test_assert.h +105 -0
- data/dependencies/SDL/include/SDL_test_common.h +218 -0
- data/dependencies/SDL/include/SDL_test_compare.h +69 -0
- data/dependencies/SDL/include/SDL_test_crc32.h +124 -0
- data/dependencies/SDL/include/SDL_test_font.h +81 -0
- data/dependencies/SDL/include/SDL_test_fuzzer.h +384 -0
- data/dependencies/SDL/include/SDL_test_harness.h +134 -0
- data/dependencies/SDL/include/SDL_test_images.h +78 -0
- data/dependencies/SDL/include/SDL_test_log.h +67 -0
- data/dependencies/SDL/include/SDL_test_md5.h +129 -0
- data/dependencies/SDL/include/SDL_test_memory.h +63 -0
- data/dependencies/SDL/include/SDL_test_random.h +115 -0
- data/dependencies/SDL/include/SDL_thread.h +366 -0
- data/dependencies/SDL/include/SDL_timer.h +115 -0
- data/dependencies/SDL/include/SDL_touch.h +102 -0
- data/dependencies/SDL/include/SDL_types.h +29 -0
- data/dependencies/SDL/include/SDL_version.h +162 -0
- data/dependencies/SDL/include/SDL_video.h +1282 -0
- data/dependencies/SDL/include/SDL_vulkan.h +276 -0
- data/dependencies/SDL/include/begin_code.h +166 -0
- data/dependencies/SDL/include/close_code.h +40 -0
- 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.c +795 -0
- data/dependencies/SDL_sound/SDL_sound.h +725 -0
- data/dependencies/SDL_sound/SDL_sound_aiff.c +537 -0
- data/dependencies/SDL_sound/SDL_sound_au.c +352 -0
- data/dependencies/SDL_sound/SDL_sound_coreaudio.c +747 -0
- data/dependencies/SDL_sound/SDL_sound_flac.c +182 -0
- data/dependencies/SDL_sound/SDL_sound_internal.h +304 -0
- data/dependencies/SDL_sound/SDL_sound_modplug.c +228 -0
- data/dependencies/SDL_sound/SDL_sound_mp3.c +184 -0
- data/dependencies/SDL_sound/SDL_sound_raw.c +164 -0
- data/dependencies/SDL_sound/SDL_sound_shn.c +1309 -0
- data/dependencies/SDL_sound/SDL_sound_voc.c +550 -0
- data/dependencies/SDL_sound/SDL_sound_vorbis.c +223 -0
- data/dependencies/SDL_sound/SDL_sound_wav.c +783 -0
- data/dependencies/SDL_sound/dr_flac.h +5906 -0
- data/dependencies/SDL_sound/dr_mp3.h +2832 -0
- data/dependencies/SDL_sound/libmodplug/fastmix.c +1748 -0
- data/dependencies/SDL_sound/libmodplug/libmodplug.h +1001 -0
- data/dependencies/SDL_sound/libmodplug/load_669.c +188 -0
- data/dependencies/SDL_sound/libmodplug/load_abc.c +4725 -0
- data/dependencies/SDL_sound/libmodplug/load_amf.c +403 -0
- data/dependencies/SDL_sound/libmodplug/load_ams.c +587 -0
- data/dependencies/SDL_sound/libmodplug/load_dbm.c +357 -0
- data/dependencies/SDL_sound/libmodplug/load_dmf.c +531 -0
- data/dependencies/SDL_sound/libmodplug/load_dsm.c +232 -0
- data/dependencies/SDL_sound/libmodplug/load_far.c +253 -0
- data/dependencies/SDL_sound/libmodplug/load_it.c +796 -0
- data/dependencies/SDL_sound/libmodplug/load_mdl.c +488 -0
- data/dependencies/SDL_sound/libmodplug/load_med.c +757 -0
- data/dependencies/SDL_sound/libmodplug/load_mid.c +1405 -0
- data/dependencies/SDL_sound/libmodplug/load_mod.c +269 -0
- data/dependencies/SDL_sound/libmodplug/load_mt2.c +546 -0
- data/dependencies/SDL_sound/libmodplug/load_mtm.c +142 -0
- data/dependencies/SDL_sound/libmodplug/load_okt.c +192 -0
- data/dependencies/SDL_sound/libmodplug/load_pat.c +1143 -0
- data/dependencies/SDL_sound/libmodplug/load_pat.h +25 -0
- data/dependencies/SDL_sound/libmodplug/load_psm.c +350 -0
- data/dependencies/SDL_sound/libmodplug/load_ptm.c +204 -0
- data/dependencies/SDL_sound/libmodplug/load_s3m.c +325 -0
- data/dependencies/SDL_sound/libmodplug/load_stm.c +180 -0
- data/dependencies/SDL_sound/libmodplug/load_ult.c +206 -0
- data/dependencies/SDL_sound/libmodplug/load_umx.c +51 -0
- data/dependencies/SDL_sound/libmodplug/load_xm.c +554 -0
- data/dependencies/SDL_sound/libmodplug/mmcmp.c +382 -0
- data/dependencies/SDL_sound/libmodplug/modplug.c +170 -0
- data/dependencies/SDL_sound/libmodplug/modplug.h +90 -0
- data/dependencies/SDL_sound/libmodplug/snd_dsp.c +301 -0
- data/dependencies/SDL_sound/libmodplug/snd_flt.c +63 -0
- data/dependencies/SDL_sound/libmodplug/snd_fx.c +2350 -0
- data/dependencies/SDL_sound/libmodplug/sndfile.c +1169 -0
- data/dependencies/SDL_sound/libmodplug/sndmix.c +1034 -0
- data/dependencies/SDL_sound/libmodplug/tables.h +371 -0
- data/{src/stb_vorbis.c → dependencies/SDL_sound/stb_vorbis.h} +128 -23
- data/dependencies/al_soft/AL/al.h +655 -0
- data/dependencies/al_soft/AL/alc.h +270 -0
- data/dependencies/al_soft/AL/alext.h +585 -0
- data/dependencies/al_soft/AL/efx-creative.h +3 -0
- data/dependencies/al_soft/AL/efx-presets.h +402 -0
- data/dependencies/al_soft/AL/efx.h +762 -0
- data/dependencies/al_soft/x64/libOpenAL32.dll.a +0 -0
- data/dependencies/al_soft/x86/libOpenAL32.dll.a +0 -0
- data/{src → dependencies/stb}/stb_image.h +476 -176
- data/{src → dependencies/stb}/stb_image_write.h +253 -131
- data/{src → dependencies/stb}/stb_truetype.h +262 -104
- data/{src → dependencies/utf8proc}/utf8proc.c +47 -29
- data/{src → dependencies/utf8proc}/utf8proc.h +46 -24
- data/{src → dependencies/utf8proc}/utf8proc_data.h +10043 -9609
- data/ext/gosu/extconf.rb +53 -39
- data/{Gosu → include/Gosu}/Audio.hpp +6 -8
- data/include/Gosu/Bitmap.hpp +100 -0
- data/{Gosu → include/Gosu}/Buttons.hpp +104 -44
- data/include/Gosu/Channel.h +25 -0
- data/include/Gosu/Color.h +38 -0
- data/{Gosu → include/Gosu}/Color.hpp +0 -0
- data/{Gosu → include/Gosu}/Directories.hpp +0 -0
- data/include/Gosu/Font.h +36 -0
- data/{Gosu → include/Gosu}/Font.hpp +1 -1
- data/{Gosu → include/Gosu}/Fwd.hpp +0 -5
- data/include/Gosu/Gosu.h +82 -0
- data/{Gosu → include/Gosu}/Gosu.hpp +0 -0
- data/{Gosu → include/Gosu}/Graphics.hpp +0 -0
- data/{Gosu → include/Gosu}/GraphicsBase.hpp +0 -0
- data/{Gosu → include/Gosu}/IO.hpp +0 -0
- data/include/Gosu/Image.h +54 -0
- data/{Gosu → include/Gosu}/Image.hpp +7 -6
- data/{Gosu → include/Gosu}/ImageData.hpp +0 -0
- data/{Gosu → include/Gosu}/Input.hpp +39 -51
- data/{Gosu → include/Gosu}/Inspection.hpp +0 -0
- data/{Gosu → include/Gosu}/Math.hpp +0 -0
- data/{Gosu → include/Gosu}/Platform.hpp +0 -0
- data/include/Gosu/Sample.h +19 -0
- data/include/Gosu/Song.h +24 -0
- data/{Gosu → include/Gosu}/Text.hpp +0 -0
- data/include/Gosu/TextInput.h +30 -0
- data/{Gosu → include/Gosu}/TextInput.hpp +0 -0
- data/{Gosu → include/Gosu}/Timing.hpp +0 -0
- data/{Gosu → include/Gosu}/Utility.hpp +15 -4
- data/{Gosu → include/Gosu}/Version.hpp +2 -2
- data/include/Gosu/Window.h +63 -0
- data/{Gosu → include/Gosu}/Window.hpp +23 -25
- data/lib/OpenAL32.dll +0 -0
- data/lib/SDL2.dll +0 -0
- data/lib/gosu.rb +0 -3
- data/lib/gosu/patches.rb +0 -23
- data/lib/gosu/preview.rb +1 -3
- data/lib/gosu/swig_patches.rb +3 -2
- data/lib64/OpenAL32.dll +0 -0
- data/lib64/SDL2.dll +0 -0
- data/rdoc/gosu.rb +98 -22
- data/src/Audio.cpp +50 -224
- data/src/AudioFile.hpp +20 -37
- data/src/AudioFileAudioToolbox.cpp +237 -0
- data/src/AudioFileSDLSound.cpp +147 -0
- data/src/AudioImpl.cpp +3 -12
- data/src/AudioImpl.hpp +3 -1
- data/src/Bitmap.cpp +85 -83
- data/src/BitmapIO.cpp +52 -58
- data/src/ChannelWrapper.cpp +50 -0
- data/src/ColorWrapper.cpp +126 -0
- data/src/Constants.cpp +338 -0
- data/src/Font.cpp +4 -1
- data/src/FontWrapper.cpp +74 -0
- data/src/GosuWrapper.cpp +251 -0
- data/src/Graphics.cpp +7 -4
- data/src/Image.cpp +13 -16
- data/src/ImageWrapper.cpp +168 -0
- data/src/Input.cpp +412 -164
- data/src/LargeImageData.cpp +2 -1
- data/src/MarkupParser.cpp +2 -1
- data/src/RubyGosu.cxx +912 -172
- data/src/RubyGosu.h +4 -2
- data/src/SampleWrapper.cpp +30 -0
- data/src/SongWrapper.cpp +52 -0
- data/src/TexChunk.cpp +1 -1
- data/src/Text.cpp +1 -0
- data/src/TextBuilder.cpp +3 -1
- data/src/TextInputWrapper.cpp +101 -0
- data/src/Texture.cpp +1 -1
- data/src/TrueTypeFont.cpp +2 -1
- data/src/Utility.cpp +11 -7
- data/src/Window.cpp +30 -39
- data/src/WindowWrapper.cpp +317 -0
- metadata +212 -43
- data/Gosu/AutoLink.hpp +0 -14
- data/Gosu/Bitmap.hpp +0 -113
- data/lib/gosu/zen.rb +0 -89
- data/src/AudioToolboxFile.hpp +0 -210
- data/src/OggFile.hpp +0 -92
- data/src/SndFile.hpp +0 -174
- 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.
|
4
|
+
version: 1.0.0
|
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-
|
11
|
+
date: 2020-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|
@@ -25,53 +25,225 @@ 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
|
58
225
|
- lib/gosu/preview.rb
|
59
226
|
- lib/gosu/run.rb
|
60
227
|
- lib/gosu/swig_patches.rb
|
61
|
-
-
|
228
|
+
- lib64/OpenAL32.dll
|
229
|
+
- lib64/SDL2.dll
|
62
230
|
- rdoc/gosu.rb
|
63
231
|
- src/Audio.cpp
|
64
232
|
- src/AudioFile.hpp
|
233
|
+
- src/AudioFileAudioToolbox.cpp
|
234
|
+
- src/AudioFileSDLSound.cpp
|
65
235
|
- src/AudioImpl.cpp
|
66
236
|
- src/AudioImpl.hpp
|
67
|
-
- src/AudioToolboxFile.hpp
|
68
237
|
- src/Bitmap.cpp
|
69
238
|
- src/BitmapIO.cpp
|
70
239
|
- src/BlockAllocator.cpp
|
71
240
|
- src/BlockAllocator.hpp
|
72
241
|
- src/Channel.cpp
|
242
|
+
- src/ChannelWrapper.cpp
|
73
243
|
- src/ClipRectStack.hpp
|
74
244
|
- src/Color.cpp
|
245
|
+
- src/ColorWrapper.cpp
|
246
|
+
- src/Constants.cpp
|
75
247
|
- src/DirectoriesApple.cpp
|
76
248
|
- src/DirectoriesUnix.cpp
|
77
249
|
- src/DirectoriesWin.cpp
|
@@ -81,15 +253,18 @@ files:
|
|
81
253
|
- src/FileUnix.cpp
|
82
254
|
- src/FileWin.cpp
|
83
255
|
- src/Font.cpp
|
256
|
+
- src/FontWrapper.cpp
|
84
257
|
- src/GosuGLView.cpp
|
85
258
|
- src/GosuGLView.hpp
|
86
259
|
- src/GosuViewController.cpp
|
87
260
|
- src/GosuViewController.hpp
|
261
|
+
- src/GosuWrapper.cpp
|
88
262
|
- src/Graphics.cpp
|
89
263
|
- src/GraphicsImpl.hpp
|
90
264
|
- src/IO.cpp
|
91
265
|
- src/Iconv.hpp
|
92
266
|
- src/Image.cpp
|
267
|
+
- src/ImageWrapper.cpp
|
93
268
|
- src/Input.cpp
|
94
269
|
- src/InputUIKit.cpp
|
95
270
|
- src/Inspection.cpp
|
@@ -104,18 +279,19 @@ files:
|
|
104
279
|
- src/Math.cpp
|
105
280
|
- src/OffScreenTarget.cpp
|
106
281
|
- src/OffScreenTarget.hpp
|
107
|
-
- src/OggFile.hpp
|
108
282
|
- src/RenderState.hpp
|
109
283
|
- src/Resolution.cpp
|
110
284
|
- src/RubyGosu.cxx
|
111
285
|
- src/RubyGosu.h
|
112
|
-
- src/
|
286
|
+
- src/SampleWrapper.cpp
|
287
|
+
- src/SongWrapper.cpp
|
113
288
|
- src/TexChunk.cpp
|
114
289
|
- src/TexChunk.hpp
|
115
290
|
- src/Text.cpp
|
116
291
|
- src/TextBuilder.cpp
|
117
292
|
- src/TextBuilder.hpp
|
118
293
|
- src/TextInput.cpp
|
294
|
+
- src/TextInputWrapper.cpp
|
119
295
|
- src/Texture.cpp
|
120
296
|
- src/Texture.hpp
|
121
297
|
- src/TimingApple.cpp
|
@@ -132,23 +308,16 @@ files:
|
|
132
308
|
- src/UtilityApple.cpp
|
133
309
|
- src/UtilityWin.cpp
|
134
310
|
- src/Version.cpp
|
135
|
-
- src/WinMain.cpp
|
136
311
|
- src/WinUtility.cpp
|
137
312
|
- src/WinUtility.hpp
|
138
313
|
- src/Window.cpp
|
139
314
|
- src/WindowUIKit.cpp
|
140
|
-
- src/
|
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
|
315
|
+
- src/WindowWrapper.cpp
|
147
316
|
homepage: https://www.libgosu.org/
|
148
317
|
licenses:
|
149
318
|
- MIT
|
150
319
|
metadata: {}
|
151
|
-
post_install_message:
|
320
|
+
post_install_message:
|
152
321
|
rdoc_options:
|
153
322
|
- "-m"
|
154
323
|
- README.md
|
@@ -160,15 +329,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
329
|
requirements:
|
161
330
|
- - ">="
|
162
331
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
332
|
+
version: 2.5.0
|
164
333
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
334
|
requirements:
|
166
335
|
- - ">="
|
167
336
|
- !ruby/object:Gem::Version
|
168
337
|
version: '0'
|
169
338
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
171
|
-
signing_key:
|
339
|
+
rubygems_version: 3.2.3
|
340
|
+
signing_key:
|
172
341
|
specification_version: 4
|
173
342
|
summary: 2D game development library.
|
174
343
|
test_files: []
|