gosu 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dependencies/SDL/include/SDL.h +108 -14
- data/dependencies/SDL/include/SDL_assert.h +81 -50
- data/dependencies/SDL/include/SDL_atomic.h +135 -35
- data/dependencies/SDL/include/SDL_audio.h +960 -355
- data/dependencies/SDL/include/SDL_bits.h +11 -6
- data/dependencies/SDL/include/SDL_blendmode.h +91 -14
- data/dependencies/SDL/include/SDL_clipboard.h +30 -7
- data/dependencies/SDL/include/SDL_config.h +277 -27
- data/dependencies/SDL/include/SDL_config_android.h +13 -38
- data/dependencies/SDL/include/SDL_config_iphoneos.h +21 -62
- data/dependencies/SDL/include/SDL_config_macosx.h +23 -92
- data/dependencies/SDL/include/SDL_config_minimal.h +1 -4
- data/dependencies/SDL/include/SDL_config_pandora.h +15 -22
- data/dependencies/SDL/include/SDL_config_psp.h +16 -37
- data/dependencies/SDL/include/SDL_config_windows.h +28 -91
- data/dependencies/SDL/include/SDL_config_winrt.h +33 -61
- data/dependencies/SDL/include/SDL_config_wiz.h +28 -56
- data/dependencies/SDL/include/SDL_copying.h +1 -1
- data/dependencies/SDL/include/SDL_cpuinfo.h +331 -71
- data/dependencies/SDL/include/SDL_egl.h +906 -280
- data/dependencies/SDL/include/SDL_endian.h +101 -47
- data/dependencies/SDL/include/SDL_error.h +70 -19
- data/dependencies/SDL/include/SDL_events.h +387 -79
- data/dependencies/SDL/include/SDL_filesystem.h +73 -64
- data/dependencies/SDL/include/SDL_gamecontroller.h +585 -125
- data/dependencies/SDL/include/SDL_gesture.h +36 -6
- data/dependencies/SDL/include/SDL_haptic.h +304 -210
- data/dependencies/SDL/include/SDL_hidapi.h +451 -0
- data/dependencies/SDL/include/SDL_hints.h +1286 -897
- data/dependencies/SDL/include/SDL_joystick.h +577 -130
- data/dependencies/SDL/include/SDL_keyboard.h +162 -63
- data/dependencies/SDL/include/SDL_keycode.h +7 -5
- data/dependencies/SDL/include/SDL_loadso.h +42 -8
- data/dependencies/SDL/include/SDL_locale.h +34 -32
- data/dependencies/SDL/include/SDL_log.h +212 -19
- data/dependencies/SDL/include/SDL_main.h +72 -17
- data/dependencies/SDL/include/SDL_messagebox.h +70 -23
- data/dependencies/SDL/include/SDL_metal.h +27 -32
- data/dependencies/SDL/include/SDL_misc.h +19 -15
- data/dependencies/SDL/include/SDL_mouse.h +262 -110
- data/dependencies/SDL/include/SDL_mutex.h +286 -66
- data/dependencies/SDL/include/SDL_name.h +1 -1
- data/dependencies/SDL/include/SDL_opengl.h +1 -1
- data/dependencies/SDL/include/SDL_opengles.h +1 -1
- data/dependencies/SDL/include/SDL_opengles2.h +2 -2
- data/dependencies/SDL/include/SDL_pixels.h +199 -34
- data/dependencies/SDL/include/SDL_platform.h +39 -2
- data/dependencies/SDL/include/SDL_power.h +23 -10
- data/dependencies/SDL/include/SDL_quit.h +1 -1
- data/dependencies/SDL/include/SDL_rect.h +78 -28
- data/dependencies/SDL/include/SDL_render.h +1204 -472
- data/dependencies/SDL/include/SDL_revision.h +2 -2
- data/dependencies/SDL/include/SDL_rwops.h +605 -33
- data/dependencies/SDL/include/SDL_scancode.h +1 -1
- data/dependencies/SDL/include/SDL_sensor.h +76 -42
- data/dependencies/SDL/include/SDL_shape.h +38 -27
- data/dependencies/SDL/include/SDL_stdinc.h +96 -24
- data/dependencies/SDL/include/SDL_surface.h +571 -139
- data/dependencies/SDL/include/SDL_system.h +339 -101
- data/dependencies/SDL/include/SDL_syswm.h +50 -20
- data/dependencies/SDL/include/SDL_test.h +1 -1
- data/dependencies/SDL/include/SDL_test_assert.h +2 -2
- data/dependencies/SDL/include/SDL_test_common.h +23 -6
- data/dependencies/SDL/include/SDL_test_compare.h +1 -1
- data/dependencies/SDL/include/SDL_test_crc32.h +1 -1
- data/dependencies/SDL/include/SDL_test_font.h +3 -3
- data/dependencies/SDL/include/SDL_test_fuzzer.h +28 -26
- data/dependencies/SDL/include/SDL_test_harness.h +6 -6
- data/dependencies/SDL/include/SDL_test_images.h +1 -1
- data/dependencies/SDL/include/SDL_test_log.h +1 -1
- data/dependencies/SDL/include/SDL_test_md5.h +1 -1
- data/dependencies/SDL/include/SDL_test_memory.h +1 -1
- data/dependencies/SDL/include/SDL_test_random.h +2 -2
- data/dependencies/SDL/include/SDL_thread.h +226 -128
- data/dependencies/SDL/include/SDL_timer.h +129 -22
- data/dependencies/SDL/include/SDL_touch.h +48 -8
- data/dependencies/SDL/include/SDL_types.h +1 -1
- data/dependencies/SDL/include/SDL_version.h +72 -46
- data/dependencies/SDL/include/SDL_video.h +1266 -460
- data/dependencies/SDL/include/SDL_vulkan.h +100 -161
- data/dependencies/SDL/include/begin_code.h +22 -1
- data/dependencies/SDL/include/close_code.h +1 -1
- 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 +83 -7
- data/dependencies/SDL_sound/SDL_sound.h +4 -4
- data/dependencies/SDL_sound/SDL_sound_aiff.c +9 -12
- data/dependencies/SDL_sound/SDL_sound_au.c +7 -7
- data/dependencies/SDL_sound/SDL_sound_coreaudio.c +3 -3
- data/dependencies/SDL_sound/SDL_sound_flac.c +1 -1
- data/dependencies/SDL_sound/SDL_sound_internal.h +17 -10
- data/dependencies/SDL_sound/SDL_sound_modplug.c +25 -27
- data/dependencies/SDL_sound/SDL_sound_mp3.c +5 -17
- data/dependencies/SDL_sound/SDL_sound_raw.c +11 -11
- data/dependencies/SDL_sound/SDL_sound_shn.c +8 -7
- data/dependencies/SDL_sound/SDL_sound_voc.c +6 -4
- data/dependencies/SDL_sound/SDL_sound_vorbis.c +6 -11
- data/dependencies/SDL_sound/SDL_sound_wav.c +35 -29
- data/dependencies/SDL_sound/dr_flac.h +618 -220
- data/dependencies/SDL_sound/dr_mp3.h +263 -94
- data/dependencies/SDL_sound/libmodplug/fastmix.c +58 -64
- data/dependencies/SDL_sound/libmodplug/libmodplug.h +25 -103
- data/dependencies/SDL_sound/libmodplug/load_669.c +14 -17
- data/dependencies/SDL_sound/libmodplug/load_amf.c +11 -7
- data/dependencies/SDL_sound/libmodplug/load_ams.c +65 -22
- data/dependencies/SDL_sound/libmodplug/load_dbm.c +8 -4
- data/dependencies/SDL_sound/libmodplug/load_dmf.c +55 -25
- data/dependencies/SDL_sound/libmodplug/load_far.c +9 -13
- data/dependencies/SDL_sound/libmodplug/load_gdm.c +448 -0
- data/dependencies/SDL_sound/libmodplug/load_it.c +45 -49
- data/dependencies/SDL_sound/libmodplug/load_mdl.c +80 -53
- data/dependencies/SDL_sound/libmodplug/load_med.c +20 -12
- data/dependencies/SDL_sound/libmodplug/load_mod.c +40 -15
- data/dependencies/SDL_sound/libmodplug/load_mt2.c +29 -17
- data/dependencies/SDL_sound/libmodplug/load_okt.c +12 -8
- data/dependencies/SDL_sound/libmodplug/load_psm.c +101 -78
- data/dependencies/SDL_sound/libmodplug/load_ptm.c +18 -17
- data/dependencies/SDL_sound/libmodplug/load_s3m.c +9 -7
- data/dependencies/SDL_sound/libmodplug/load_stm.c +3 -2
- data/dependencies/SDL_sound/libmodplug/load_ult.c +2 -2
- data/dependencies/SDL_sound/libmodplug/load_umx.c +315 -35
- data/dependencies/SDL_sound/libmodplug/load_xm.c +25 -21
- data/dependencies/SDL_sound/libmodplug/mmcmp.c +295 -149
- data/dependencies/SDL_sound/libmodplug/modplug.c +7 -123
- data/dependencies/SDL_sound/libmodplug/modplug.h +32 -29
- data/dependencies/SDL_sound/libmodplug/snd_dsp.c +0 -1
- data/dependencies/SDL_sound/libmodplug/snd_flt.c +2 -2
- data/dependencies/SDL_sound/libmodplug/snd_fx.c +24 -18
- data/dependencies/SDL_sound/libmodplug/sndfile.c +55 -156
- data/dependencies/SDL_sound/libmodplug/sndmix.c +7 -12
- data/dependencies/SDL_sound/libmodplug/tables.h +10 -15
- data/dependencies/SDL_sound/stb_vorbis.h +508 -325
- data/dependencies/{al_soft → mojoAL}/AL/al.h +38 -30
- data/dependencies/{al_soft → mojoAL}/AL/alc.h +27 -56
- data/dependencies/mojoAL/mojoal.c +4594 -0
- data/ext/gosu/extconf.rb +29 -30
- data/include/Gosu/Audio.hpp +70 -85
- data/include/Gosu/Color.hpp +19 -11
- data/include/Gosu/Font.hpp +40 -44
- data/include/Gosu/Graphics.hpp +58 -71
- data/include/Gosu/GraphicsBase.hpp +26 -33
- data/include/Gosu/Image.hpp +56 -62
- data/include/Gosu/ImageData.hpp +23 -27
- data/include/Gosu/Inspection.hpp +1 -4
- data/include/Gosu/TextInput.hpp +34 -40
- data/include/Gosu/Version.hpp +1 -1
- data/include/Gosu/Window.hpp +71 -70
- data/lib/SDL2.dll +0 -0
- data/lib/gosu/compat.rb +24 -37
- data/lib/gosu.rb +2 -2
- data/lib64/SDL2.dll +0 -0
- data/src/Audio.cpp +86 -86
- data/src/AudioFile.hpp +6 -6
- data/src/AudioFileAudioToolbox.cpp +1 -1
- data/src/AudioFileSDLSound.cpp +1 -1
- data/src/AudioImpl.hpp +5 -5
- data/src/BitmapIO.cpp +0 -20
- data/src/BlockAllocator.cpp +2 -1
- data/src/Channel.cpp +22 -20
- data/src/Color.cpp +12 -9
- data/src/EmptyImageData.hpp +15 -17
- data/src/FileUnix.cpp +1 -1
- data/src/FileWin.cpp +1 -1
- data/src/Font.cpp +48 -53
- data/src/Graphics.cpp +135 -143
- data/src/Image.cpp +41 -42
- data/src/Input.cpp +1 -1
- data/src/InputUIKit.cpp +1 -1
- data/src/LargeImageData.cpp +108 -101
- data/src/LargeImageData.hpp +17 -15
- data/src/Log.hpp +6 -6
- data/src/Macro.cpp +35 -37
- data/src/Macro.hpp +11 -11
- data/src/Math.cpp +8 -1
- data/src/Resolution.cpp +12 -7
- data/src/RubyGosu.cxx +5 -5
- data/src/TexChunk.cpp +50 -41
- data/src/TexChunk.hpp +22 -22
- data/src/Text.cpp +37 -37
- data/src/TextBuilder.cpp +60 -57
- data/src/TextBuilder.hpp +20 -20
- data/src/TextInput.cpp +127 -135
- data/src/TrueTypeFont.cpp +107 -107
- data/src/TrueTypeFont.hpp +39 -38
- data/src/TrueTypeFontApple.cpp +19 -22
- data/src/TrueTypeFontUnix.cpp +21 -26
- data/src/TrueTypeFontWin.cpp +30 -30
- data/src/Window.cpp +95 -86
- data/src/WindowUIKit.cpp +46 -49
- metadata +7 -17
- data/dependencies/SDL/include/SDL_config_os2.h +0 -188
- data/dependencies/SDL_sound/libmodplug/load_abc.c +0 -4725
- data/dependencies/SDL_sound/libmodplug/load_mid.c +0 -1405
- data/dependencies/SDL_sound/libmodplug/load_pat.c +0 -1143
- data/dependencies/SDL_sound/libmodplug/load_pat.h +0 -25
- data/dependencies/al_soft/AL/alext.h +0 -585
- data/dependencies/al_soft/AL/efx-creative.h +0 -3
- data/dependencies/al_soft/AL/efx-presets.h +0 -402
- data/dependencies/al_soft/AL/efx.h +0 -762
- data/dependencies/al_soft/x64/libOpenAL32.dll.a +0 -0
- data/dependencies/al_soft/x86/libOpenAL32.dll.a +0 -0
- data/lib/OpenAL32.dll +0 -0
- data/lib64/OpenAL32.dll +0 -0
data/src/WindowUIKit.cpp
CHANGED
@@ -4,51 +4,48 @@
|
|
4
4
|
#include "GosuViewController.hpp"
|
5
5
|
#include <Gosu/Gosu.hpp>
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
struct Gosu::Window::Impl
|
7
|
+
struct Gosu::Window::Impl : Gosu::Noncopyable
|
10
8
|
{
|
11
9
|
UIWindow* window;
|
12
10
|
GosuViewController* controller;
|
13
|
-
unique_ptr<Graphics> graphics;
|
14
|
-
unique_ptr<Input> input;
|
15
|
-
|
11
|
+
std::unique_ptr<Graphics> graphics;
|
12
|
+
std::unique_ptr<Input> input;
|
13
|
+
|
16
14
|
double update_interval;
|
17
|
-
string caption;
|
15
|
+
std::string caption;
|
18
16
|
};
|
19
17
|
|
20
18
|
Gosu::Window::Window(int width, int height, unsigned window_flags, double update_interval)
|
21
|
-
:
|
19
|
+
: m_impl{new Impl}
|
22
20
|
{
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
21
|
+
m_impl->window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
22
|
+
m_impl->controller = [GosuViewController new];
|
23
|
+
m_impl->controller.gosuWindow = this;
|
24
|
+
m_impl->window.rootViewController = m_impl->controller;
|
25
|
+
|
28
26
|
// It is important to (implicitly) load the view before creating the Graphics instance.
|
29
|
-
[
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
27
|
+
[m_impl->controller view];
|
28
|
+
|
29
|
+
m_impl->graphics.reset(new Graphics(screen_width(), screen_height()));
|
30
|
+
m_impl->graphics->set_resolution(width, height);
|
31
|
+
|
32
|
+
m_impl->input.reset(new Input((__bridge void*) m_impl->controller.view, update_interval));
|
33
|
+
m_impl->input->set_mouse_factors(1.0 * width / available_width(),
|
34
|
+
1.0 * height / available_height());
|
35
|
+
|
36
|
+
m_impl->input->on_touch_began = [this](Gosu::Touch touch) { touch_began(touch); };
|
37
|
+
m_impl->input->on_touch_moved = [this](Gosu::Touch touch) { touch_moved(touch); };
|
38
|
+
m_impl->input->on_touch_ended = [this](Gosu::Touch touch) { touch_ended(touch); };
|
39
|
+
m_impl->input->on_touch_cancelled = [this](Gosu::Touch touch) { touch_cancelled(touch); };
|
40
|
+
|
42
41
|
// Now let the controller know about our Input instance.
|
43
|
-
[
|
44
|
-
|
45
|
-
pimpl->update_interval = update_interval;
|
46
|
-
}
|
42
|
+
[m_impl->controller trackTextInput:*m_impl->input];
|
47
43
|
|
48
|
-
|
49
|
-
{
|
44
|
+
m_impl->update_interval = update_interval;
|
50
45
|
}
|
51
46
|
|
47
|
+
Gosu::Window::~Window() = default;
|
48
|
+
|
52
49
|
int Gosu::Window::width() const
|
53
50
|
{
|
54
51
|
return graphics().width();
|
@@ -69,7 +66,7 @@ bool Gosu::Window::resizable() const
|
|
69
66
|
return false;
|
70
67
|
}
|
71
68
|
|
72
|
-
void Gosu::Window::set_resizable(bool
|
69
|
+
void Gosu::Window::set_resizable(bool)
|
73
70
|
{
|
74
71
|
}
|
75
72
|
|
@@ -78,53 +75,53 @@ bool Gosu::Window::borderless() const
|
|
78
75
|
return true;
|
79
76
|
}
|
80
77
|
|
81
|
-
void Gosu::Window::set_borderless(bool
|
78
|
+
void Gosu::Window::set_borderless(bool)
|
82
79
|
{
|
83
80
|
}
|
84
81
|
|
85
|
-
void Gosu::Window::resize(int
|
82
|
+
void Gosu::Window::resize(int, int, bool)
|
86
83
|
{
|
87
|
-
throw logic_error
|
84
|
+
throw std::logic_error{"Cannot resize windows on iOS"};
|
88
85
|
}
|
89
86
|
|
90
87
|
double Gosu::Window::update_interval() const
|
91
88
|
{
|
92
|
-
return
|
89
|
+
return m_impl->update_interval;
|
93
90
|
}
|
94
91
|
|
95
|
-
void Gosu::Window::set_update_interval(double
|
92
|
+
void Gosu::Window::set_update_interval(double)
|
96
93
|
{
|
97
|
-
throw logic_error
|
94
|
+
throw std::logic_error{"Cannot change the update interval on iOS"};
|
98
95
|
}
|
99
96
|
|
100
|
-
string Gosu::Window::caption() const
|
97
|
+
std::string Gosu::Window::caption() const
|
101
98
|
{
|
102
|
-
return
|
99
|
+
return m_impl->caption;
|
103
100
|
}
|
104
101
|
|
105
|
-
void Gosu::Window::set_caption(const string& caption)
|
102
|
+
void Gosu::Window::set_caption(const std::string& caption)
|
106
103
|
{
|
107
|
-
|
104
|
+
m_impl->caption = caption;
|
108
105
|
}
|
109
106
|
|
110
107
|
const Gosu::Graphics& Gosu::Window::graphics() const
|
111
108
|
{
|
112
|
-
return *
|
109
|
+
return *m_impl->graphics;
|
113
110
|
}
|
114
111
|
|
115
112
|
Gosu::Graphics& Gosu::Window::graphics()
|
116
113
|
{
|
117
|
-
return *
|
114
|
+
return *m_impl->graphics;
|
118
115
|
}
|
119
116
|
|
120
117
|
const Gosu::Input& Gosu::Window::input() const
|
121
118
|
{
|
122
|
-
return *
|
119
|
+
return *m_impl->input;
|
123
120
|
}
|
124
121
|
|
125
122
|
Gosu::Input& Gosu::Window::input()
|
126
123
|
{
|
127
|
-
return *
|
124
|
+
return *m_impl->input;
|
128
125
|
}
|
129
126
|
|
130
127
|
void Gosu::Window::show()
|
@@ -138,7 +135,7 @@ bool Gosu::Window::tick()
|
|
138
135
|
|
139
136
|
void Gosu::Window::close()
|
140
137
|
{
|
141
|
-
throw logic_error
|
138
|
+
throw std::logic_error{"Cannot close windows manually on iOS"};
|
142
139
|
}
|
143
140
|
|
144
141
|
void Gosu::Window::button_down(Button button)
|
@@ -147,7 +144,7 @@ void Gosu::Window::button_down(Button button)
|
|
147
144
|
|
148
145
|
void* Gosu::Window::uikit_window() const
|
149
146
|
{
|
150
|
-
return (__bridge void*)
|
147
|
+
return (__bridge void*) m_impl->window;
|
151
148
|
}
|
152
149
|
|
153
150
|
int Gosu::screen_width(Window*)
|
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: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Raschke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|
@@ -40,7 +40,6 @@ files:
|
|
40
40
|
- dependencies/SDL/include/SDL_config_iphoneos.h
|
41
41
|
- dependencies/SDL/include/SDL_config_macosx.h
|
42
42
|
- dependencies/SDL/include/SDL_config_minimal.h
|
43
|
-
- dependencies/SDL/include/SDL_config_os2.h
|
44
43
|
- dependencies/SDL/include/SDL_config_pandora.h
|
45
44
|
- dependencies/SDL/include/SDL_config_psp.h
|
46
45
|
- dependencies/SDL/include/SDL_config_windows.h
|
@@ -56,6 +55,7 @@ files:
|
|
56
55
|
- dependencies/SDL/include/SDL_gamecontroller.h
|
57
56
|
- dependencies/SDL/include/SDL_gesture.h
|
58
57
|
- dependencies/SDL/include/SDL_haptic.h
|
58
|
+
- dependencies/SDL/include/SDL_hidapi.h
|
59
59
|
- dependencies/SDL/include/SDL_hints.h
|
60
60
|
- dependencies/SDL/include/SDL_joystick.h
|
61
61
|
- dependencies/SDL/include/SDL_keyboard.h
|
@@ -136,23 +136,20 @@ files:
|
|
136
136
|
- dependencies/SDL_sound/libmodplug/fastmix.c
|
137
137
|
- dependencies/SDL_sound/libmodplug/libmodplug.h
|
138
138
|
- dependencies/SDL_sound/libmodplug/load_669.c
|
139
|
-
- dependencies/SDL_sound/libmodplug/load_abc.c
|
140
139
|
- dependencies/SDL_sound/libmodplug/load_amf.c
|
141
140
|
- dependencies/SDL_sound/libmodplug/load_ams.c
|
142
141
|
- dependencies/SDL_sound/libmodplug/load_dbm.c
|
143
142
|
- dependencies/SDL_sound/libmodplug/load_dmf.c
|
144
143
|
- dependencies/SDL_sound/libmodplug/load_dsm.c
|
145
144
|
- dependencies/SDL_sound/libmodplug/load_far.c
|
145
|
+
- dependencies/SDL_sound/libmodplug/load_gdm.c
|
146
146
|
- dependencies/SDL_sound/libmodplug/load_it.c
|
147
147
|
- dependencies/SDL_sound/libmodplug/load_mdl.c
|
148
148
|
- dependencies/SDL_sound/libmodplug/load_med.c
|
149
|
-
- dependencies/SDL_sound/libmodplug/load_mid.c
|
150
149
|
- dependencies/SDL_sound/libmodplug/load_mod.c
|
151
150
|
- dependencies/SDL_sound/libmodplug/load_mt2.c
|
152
151
|
- dependencies/SDL_sound/libmodplug/load_mtm.c
|
153
152
|
- dependencies/SDL_sound/libmodplug/load_okt.c
|
154
|
-
- dependencies/SDL_sound/libmodplug/load_pat.c
|
155
|
-
- dependencies/SDL_sound/libmodplug/load_pat.h
|
156
153
|
- dependencies/SDL_sound/libmodplug/load_psm.c
|
157
154
|
- dependencies/SDL_sound/libmodplug/load_ptm.c
|
158
155
|
- dependencies/SDL_sound/libmodplug/load_s3m.c
|
@@ -170,14 +167,9 @@ files:
|
|
170
167
|
- dependencies/SDL_sound/libmodplug/sndmix.c
|
171
168
|
- dependencies/SDL_sound/libmodplug/tables.h
|
172
169
|
- dependencies/SDL_sound/stb_vorbis.h
|
173
|
-
- dependencies/
|
174
|
-
- dependencies/
|
175
|
-
- dependencies/
|
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
|
170
|
+
- dependencies/mojoAL/AL/al.h
|
171
|
+
- dependencies/mojoAL/AL/alc.h
|
172
|
+
- dependencies/mojoAL/mojoal.c
|
181
173
|
- dependencies/stb/stb_image.h
|
182
174
|
- dependencies/stb/stb_image_write.h
|
183
175
|
- dependencies/stb/stb_truetype.h
|
@@ -208,7 +200,6 @@ files:
|
|
208
200
|
- include/Gosu/Utility.hpp
|
209
201
|
- include/Gosu/Version.hpp
|
210
202
|
- include/Gosu/Window.hpp
|
211
|
-
- lib/OpenAL32.dll
|
212
203
|
- lib/SDL2.dll
|
213
204
|
- lib/gosu.rb
|
214
205
|
- lib/gosu/compat.rb
|
@@ -216,7 +207,6 @@ files:
|
|
216
207
|
- lib/gosu/preview.rb
|
217
208
|
- lib/gosu/run.rb
|
218
209
|
- lib/gosu/swig_patches.rb
|
219
|
-
- lib64/OpenAL32.dll
|
220
210
|
- lib64/SDL2.dll
|
221
211
|
- rdoc/gosu.rb
|
222
212
|
- src/Audio.cpp
|
@@ -1,188 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
|
4
|
-
|
5
|
-
This software is provided 'as-is', without any express or implied
|
6
|
-
warranty. In no event will the authors be held liable for any damages
|
7
|
-
arising from the use of this software.
|
8
|
-
|
9
|
-
Permission is granted to anyone to use this software for any purpose,
|
10
|
-
including commercial applications, and to alter it and redistribute it
|
11
|
-
freely, subject to the following restrictions:
|
12
|
-
|
13
|
-
1. The origin of this software must not be misrepresented; you must not
|
14
|
-
claim that you wrote the original software. If you use this software
|
15
|
-
in a product, an acknowledgment in the product documentation would be
|
16
|
-
appreciated but is not required.
|
17
|
-
2. Altered source versions must be plainly marked as such, and must not be
|
18
|
-
misrepresented as being the original software.
|
19
|
-
3. This notice may not be removed or altered from any source distribution.
|
20
|
-
*/
|
21
|
-
|
22
|
-
#ifndef SDL_config_os2_h_
|
23
|
-
#define SDL_config_os2_h_
|
24
|
-
#define SDL_config_h_
|
25
|
-
|
26
|
-
#include "SDL_platform.h"
|
27
|
-
|
28
|
-
#define SDL_AUDIO_DRIVER_DUMMY 1
|
29
|
-
#define SDL_AUDIO_DRIVER_DISK 1
|
30
|
-
#define SDL_AUDIO_DRIVER_OS2 1
|
31
|
-
|
32
|
-
#define SDL_POWER_DISABLED 1
|
33
|
-
#define SDL_JOYSTICK_DISABLED 1
|
34
|
-
#define SDL_HAPTIC_DISABLED 1
|
35
|
-
/*#undef SDL_JOYSTICK_HIDAPI */
|
36
|
-
/*#undef SDL_JOYSTICK_VIRTUAL */
|
37
|
-
|
38
|
-
#define SDL_SENSOR_DUMMY 1
|
39
|
-
#define SDL_VIDEO_DRIVER_DUMMY 1
|
40
|
-
#define SDL_VIDEO_DRIVER_OS2 1
|
41
|
-
|
42
|
-
/* Enable OpenGL support */
|
43
|
-
/* #undef SDL_VIDEO_OPENGL */
|
44
|
-
|
45
|
-
/* Enable Vulkan support */
|
46
|
-
/* #undef SDL_VIDEO_VULKAN */
|
47
|
-
|
48
|
-
#define SDL_THREAD_OS2 1
|
49
|
-
#define SDL_LOADSO_OS2 1
|
50
|
-
#define SDL_TIMER_OS2 1
|
51
|
-
#define SDL_FILESYSTEM_OS2 1
|
52
|
-
|
53
|
-
/* Enable assembly routines */
|
54
|
-
#define SDL_ASSEMBLY_ROUTINES 1
|
55
|
-
|
56
|
-
/* use libsamplerate for audio rate conversion. */
|
57
|
-
/*#define HAVE_LIBSAMPLERATE_H 1 */
|
58
|
-
|
59
|
-
/* Enable dynamic libsamplerate support */
|
60
|
-
#define SDL_LIBSAMPLERATE_DYNAMIC "SAMPRATE.DLL"
|
61
|
-
|
62
|
-
#define HAVE_LIBC 1
|
63
|
-
|
64
|
-
#define HAVE_SYS_TYPES_H 1
|
65
|
-
#define HAVE_STDIO_H 1
|
66
|
-
#define STDC_HEADERS 1
|
67
|
-
#define HAVE_STDLIB_H 1
|
68
|
-
#define HAVE_STDARG_H 1
|
69
|
-
#define HAVE_STDDEF_H 1
|
70
|
-
#define HAVE_MALLOC_H 1
|
71
|
-
#define HAVE_MEMORY_H 1
|
72
|
-
#define HAVE_STRING_H 1
|
73
|
-
#define HAVE_STRINGS_H 1
|
74
|
-
#define HAVE_WCHAR_H 1
|
75
|
-
#define HAVE_INTTYPES_H 1
|
76
|
-
#define HAVE_STDINT_H 1
|
77
|
-
#define HAVE_LIMITS_H 1
|
78
|
-
#define HAVE_CTYPE_H 1
|
79
|
-
#define HAVE_MATH_H 1
|
80
|
-
#define HAVE_FLOAT_H 1
|
81
|
-
#define HAVE_SIGNAL_H 1
|
82
|
-
|
83
|
-
#define HAVE_MALLOC 1
|
84
|
-
#define HAVE_CALLOC 1
|
85
|
-
#define HAVE_REALLOC 1
|
86
|
-
#define HAVE_FREE 1
|
87
|
-
#if defined(__WATCOMC__)
|
88
|
-
#define HAVE__FSEEKI64 1
|
89
|
-
#define HAVE__FTELLI64 1
|
90
|
-
#endif
|
91
|
-
#define HAVE_ALLOCA 1
|
92
|
-
#define HAVE_GETENV 1
|
93
|
-
#define HAVE_SETENV 1
|
94
|
-
#define HAVE_PUTENV 1
|
95
|
-
#define HAVE_QSORT 1
|
96
|
-
#define HAVE_ABS 1
|
97
|
-
#define HAVE_BCOPY 1
|
98
|
-
#define HAVE_MEMSET 1
|
99
|
-
#define HAVE_MEMCPY 1
|
100
|
-
#define HAVE_MEMMOVE 1
|
101
|
-
#define HAVE_MEMCMP 1
|
102
|
-
#define HAVE_WCSLEN 1
|
103
|
-
#define HAVE_WCSLCPY 1
|
104
|
-
#define HAVE_WCSLCAT 1
|
105
|
-
#define HAVE_WCSCMP 1
|
106
|
-
#define HAVE__WCSICMP 1
|
107
|
-
#define HAVE__WCSNICMP 1
|
108
|
-
#define HAVE_STRLEN 1
|
109
|
-
#define HAVE_STRLCPY 1
|
110
|
-
#define HAVE_STRLCAT 1
|
111
|
-
#define HAVE__STRREV 1
|
112
|
-
#define HAVE__STRUPR 1
|
113
|
-
#define HAVE__STRLWR 1
|
114
|
-
#define HAVE_INDEX 1
|
115
|
-
#define HAVE_RINDEX 1
|
116
|
-
#define HAVE_STRCHR 1
|
117
|
-
#define HAVE_STRRCHR 1
|
118
|
-
#define HAVE_STRSTR 1
|
119
|
-
/* #undef HAVE_STRTOK_R */
|
120
|
-
#define HAVE_ITOA 1
|
121
|
-
#define HAVE__LTOA 1
|
122
|
-
#define HAVE__ULTOA 1
|
123
|
-
#define HAVE_STRTOL 1
|
124
|
-
#define HAVE_STRTOUL 1
|
125
|
-
#define HAVE__I64TOA 1
|
126
|
-
#define HAVE__UI64TOA 1
|
127
|
-
#define HAVE_STRTOLL 1
|
128
|
-
#define HAVE_STRTOULL 1
|
129
|
-
#define HAVE_STRTOD 1
|
130
|
-
#define HAVE_ATOI 1
|
131
|
-
#define HAVE_ATOF 1
|
132
|
-
#define HAVE_WCSLEN 1
|
133
|
-
#define HAVE_WCSLCPY 1
|
134
|
-
#define HAVE_WCSLCAT 1
|
135
|
-
/* #define HAVE_WCSDUP 1 */
|
136
|
-
/* #define wcsdup _wcsdup */
|
137
|
-
#define HAVE_WCSSTR 1
|
138
|
-
#define HAVE_WCSCMP 1
|
139
|
-
#define HAVE_WCSNCMP 1
|
140
|
-
#define HAVE_STRCMP 1
|
141
|
-
#define HAVE_STRNCMP 1
|
142
|
-
#define HAVE_STRICMP 1
|
143
|
-
#define HAVE_STRCASECMP 1
|
144
|
-
#define HAVE_STRNCASECMP 1
|
145
|
-
#define HAVE_SSCANF 1
|
146
|
-
#define HAVE_VSSCANF 1
|
147
|
-
#define HAVE_SNPRINTF 1
|
148
|
-
#define HAVE_VSNPRINTF 1
|
149
|
-
#define HAVE_SETJMP 1
|
150
|
-
#define HAVE_ACOS 1
|
151
|
-
/* #undef HAVE_ACOSF */
|
152
|
-
#define HAVE_ASIN 1
|
153
|
-
/* #undef HAVE_ASINF */
|
154
|
-
#define HAVE_ATAN 1
|
155
|
-
#define HAVE_ATAN2 1
|
156
|
-
/* #undef HAVE_ATAN2F */
|
157
|
-
#define HAVE_CEIL 1
|
158
|
-
/* #undef HAVE_CEILF */
|
159
|
-
/* #undef HAVE_COPYSIGN */
|
160
|
-
/* #undef HAVE_COPYSIGNF */
|
161
|
-
#define HAVE_COS 1
|
162
|
-
/* #undef HAVE_COSF */
|
163
|
-
#define HAVE_EXP 1
|
164
|
-
/* #undef HAVE_EXPF */
|
165
|
-
#define HAVE_FABS 1
|
166
|
-
/* #undef HAVE_FABSF */
|
167
|
-
#define HAVE_FLOOR 1
|
168
|
-
/* #undef HAVE_FLOORF */
|
169
|
-
#define HAVE_FMOD 1
|
170
|
-
/* #undef HAVE_FMODF */
|
171
|
-
#define HAVE_LOG 1
|
172
|
-
/* #undef HAVE_LOGF */
|
173
|
-
#define HAVE_LOG10 1
|
174
|
-
/* #undef HAVE_LOG10F */
|
175
|
-
#define HAVE_POW 1
|
176
|
-
/* #undef HAVE_POWF */
|
177
|
-
#define HAVE_SIN 1
|
178
|
-
/* #undef HAVE_SINF */
|
179
|
-
/* #undef HAVE_SCALBN */
|
180
|
-
/* #undef HAVE_SCALBNF */
|
181
|
-
#define HAVE_SQRT 1
|
182
|
-
/* #undef HAVE_SQRTF */
|
183
|
-
#define HAVE_TAN 1
|
184
|
-
/* #undef HAVE_TANF */
|
185
|
-
/* #undef HAVE_TRUNC */
|
186
|
-
/* #undef HAVE_TRUNCF */
|
187
|
-
|
188
|
-
#endif /* SDL_config_os2_h_ */
|