sdl2-bindings 0.1.6 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +13 -0
- data/LICENSE.txt +1 -1
- data/README.md +26 -9
- data/lib/sdl2_cpuinfo.rb +1 -1
- data/lib/sdl2_hints.rb +2 -0
- data/lib/sdl2_mixer.rb +0 -1
- data/lib/sdl2_rwops.rb +9 -9
- data/lib/sdl2_stdinc.rb +10 -10
- data/lib/sdl2_syswm.rb +103 -29
- data/lib/sdl2_version.rb +2 -2
- data/lib/sdl2_video.rb +9 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2554db65f215f6d4b429b0bb51ebf8338f7577cd44788d2698ef5e001a5a598f
|
4
|
+
data.tar.gz: 915d296ecdade071685d65dac1d15c5995c7188d208a78bc27e4bb3a0175cb4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74c13be618068c1ef29a5baf976d3ccf4d98f3abfaa93560a8c3343b3923bf646d49167719540bda09d2bc37d6ff57a395cf64a60e83721cb540d56884fffd66
|
7
|
+
data.tar.gz: 4113ed7666ba1d9298a1f6acecc39b7432eadf5aad783dfcc78e93ba2523ccc4308716564ab775afed767c7c3d9326c52c6e8b7e2ec38a8511ba11f44eae1435
|
data/ChangeLog
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
2023-06-25 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* SDL 2.28.0 ( https://github.com/libsdl-org/SDL/releases/tag/release-2.28.0 )
|
4
|
+
|
5
|
+
2023-04-16 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* Fix parser bug
|
8
|
+
|
9
|
+
2023-02-05 vaiorabbit <http://twitter.com/vaiorabbit>
|
10
|
+
|
11
|
+
* lib/sdl2_syswm.rb: Added X11 support
|
12
|
+
* Added Linux (on WSL) as a tested environment
|
13
|
+
|
1
14
|
2022-11-23 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
15
|
|
3
16
|
* SDL 2.26.0 ( https://github.com/libsdl-org/SDL/releases/tag/release-2.26.0 )
|
data/LICENSE.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
sdl2-bindings : Yet another SDL2 wrapper for Ruby
|
2
|
-
Copyright (c) 2015-
|
2
|
+
Copyright (c) 2015-2023 vaiorabbit <http://twitter.com/vaiorabbit>
|
3
3
|
|
4
4
|
This software is provided 'as-is', without any express or implied
|
5
5
|
warranty. In no event will the authors be held liable for any damages
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# sdl2-bindings : Yet another SDL2 wrapper for Ruby #
|
4
4
|
|
5
5
|
* Created : 2015-09-19
|
6
|
-
* Last modified :
|
6
|
+
* Last modified : 2023-06-25
|
7
7
|
|
8
8
|
## Features ##
|
9
9
|
|
@@ -23,11 +23,11 @@ See the project below to learn how to use this library:
|
|
23
23
|
|
24
24
|
## Target version ##
|
25
25
|
|
26
|
-
* [
|
27
|
-
* SDL : 2.
|
28
|
-
* SDL_image : 2.6.
|
29
|
-
* SDL_mixer : 2.6.
|
30
|
-
* SDL_ttf : 2.20.
|
26
|
+
* [2023-06-25]
|
27
|
+
* SDL : 2.28.x
|
28
|
+
* SDL_image : 2.6.3
|
29
|
+
* SDL_mixer : 2.6.3
|
30
|
+
* SDL_ttf : 2.20.2
|
31
31
|
* SDL2_gfx : 1.0.4
|
32
32
|
* SDL_sound : 2.0.1
|
33
33
|
|
@@ -83,18 +83,35 @@ See the project below to learn how to use this library:
|
|
83
83
|
* SDL_ttf : 2.20.1
|
84
84
|
* SDL2_gfx : 1.0.4
|
85
85
|
* SDL_sound : 2.0.1
|
86
|
+
* [2022-11-23]
|
87
|
+
* SDL : 2.26.0 - 2.26.2
|
88
|
+
* SDL_image : 2.6.2
|
89
|
+
* SDL_mixer : 2.6.2
|
90
|
+
* SDL_ttf : 2.20.1
|
91
|
+
* SDL2_gfx : 1.0.4
|
92
|
+
* SDL_sound : 2.0.1
|
93
|
+
* [2023-04-16]
|
94
|
+
* SDL : 2.26.x
|
95
|
+
* SDL_image : 2.6.3
|
96
|
+
* SDL_mixer : 2.6.3
|
97
|
+
* SDL_ttf : 2.20.2
|
98
|
+
* SDL2_gfx : 1.0.4
|
99
|
+
* SDL_sound : 2.0.1
|
86
100
|
|
87
101
|
</details>
|
88
102
|
|
89
103
|
## Supported Environments ##
|
90
104
|
|
91
|
-
* [
|
92
|
-
* [
|
105
|
+
* [2023-01-07] Windows 11 (22H2), ruby 3.2.0 (2022-12-25 revision a528908271) [x64-mingw-ucrt]
|
106
|
+
* [2023-01-07] macOS Ventura (13.2.1) ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin22]
|
93
107
|
* [2022-10-09] Debian 11 (bullseye) on ASUS Chromebook Detachable CZ1, ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [aarch64-linux]
|
108
|
+
* [2023-02-05] Ubuntu Linux 22.04 LTS (jammy) on WSL/Windows 11, ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
|
94
109
|
|
95
110
|
<details>
|
96
111
|
<summary>Older Environments</summary>
|
97
112
|
|
113
|
+
* [2022-04-29] Windows 10 (21H1), ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
|
114
|
+
* [2022-10-09] macOS Monterey (12.5.1), ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
|
98
115
|
* [2022-07-31] macOS Monterey (12.4), ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin21]
|
99
116
|
* [2022-02-12] Windows 10 (21H1), ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x64-mingw-ucrt]
|
100
117
|
* [2022-01-11] macOS Monterey (12.1), ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
@@ -111,7 +128,7 @@ See the project below to learn how to use this library:
|
|
111
128
|
The zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
112
129
|
|
113
130
|
sdl2-bindings : Yet another SDL2 wrapper for Ruby
|
114
|
-
Copyright (c) 2015-
|
131
|
+
Copyright (c) 2015-2023 vaiorabbit <http://twitter.com/vaiorabbit>
|
115
132
|
|
116
133
|
This software is provided 'as-is', without any express or implied
|
117
134
|
warranty. In no event will the authors be held liable for any damages
|
data/lib/sdl2_cpuinfo.rb
CHANGED
@@ -119,7 +119,7 @@ module SDL
|
|
119
119
|
:SDL_HasLSX => :int,
|
120
120
|
:SDL_HasLASX => :int,
|
121
121
|
:SDL_GetSystemRAM => :int,
|
122
|
-
:SDL_SIMDGetAlignment => :
|
122
|
+
:SDL_SIMDGetAlignment => :ulong,
|
123
123
|
:SDL_SIMDAlloc => :pointer,
|
124
124
|
:SDL_SIMDRealloc => :pointer,
|
125
125
|
:SDL_SIMDFree => :void,
|
data/lib/sdl2_hints.rb
CHANGED
@@ -32,6 +32,7 @@ module SDL
|
|
32
32
|
HINT_DISPLAY_USABLE_BOUNDS = "SDL_DISPLAY_USABLE_BOUNDS"
|
33
33
|
HINT_EMSCRIPTEN_ASYNCIFY = "SDL_EMSCRIPTEN_ASYNCIFY"
|
34
34
|
HINT_EMSCRIPTEN_KEYBOARD_ELEMENT = "SDL_EMSCRIPTEN_KEYBOARD_ELEMENT"
|
35
|
+
HINT_ENABLE_SCREEN_KEYBOARD = "SDL_ENABLE_SCREEN_KEYBOARD"
|
35
36
|
HINT_ENABLE_STEAM_CONTROLLERS = "SDL_ENABLE_STEAM_CONTROLLERS"
|
36
37
|
HINT_EVENT_LOGGING = "SDL_EVENT_LOGGING"
|
37
38
|
HINT_FORCE_RAISEWINDOW = "SDL_HINT_FORCE_RAISEWINDOW"
|
@@ -157,6 +158,7 @@ module SDL
|
|
157
158
|
HINT_WAVE_RIFF_CHUNK_SIZE = "SDL_WAVE_RIFF_CHUNK_SIZE"
|
158
159
|
HINT_WAVE_TRUNCATION = "SDL_WAVE_TRUNCATION"
|
159
160
|
HINT_WINDOWS_DISABLE_THREAD_NAMING = "SDL_WINDOWS_DISABLE_THREAD_NAMING"
|
161
|
+
HINT_WINDOWS_ENABLE_MENU_MNEMONICS = "SDL_WINDOWS_ENABLE_MENU_MNEMONICS"
|
160
162
|
HINT_WINDOWS_ENABLE_MESSAGELOOP = "SDL_WINDOWS_ENABLE_MESSAGELOOP"
|
161
163
|
HINT_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS = "SDL_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS"
|
162
164
|
HINT_WINDOWS_FORCE_SEMAPHORE_KERNEL = "SDL_WINDOWS_FORCE_SEMAPHORE_KERNEL"
|
data/lib/sdl2_mixer.rb
CHANGED
data/lib/sdl2_rwops.rb
CHANGED
@@ -209,8 +209,8 @@ module SDL
|
|
209
209
|
:SDL_RWsize => :long_long,
|
210
210
|
:SDL_RWseek => :long_long,
|
211
211
|
:SDL_RWtell => :long_long,
|
212
|
-
:SDL_RWread => :
|
213
|
-
:SDL_RWwrite => :
|
212
|
+
:SDL_RWread => :ulong,
|
213
|
+
:SDL_RWwrite => :ulong,
|
214
214
|
:SDL_RWclose => :int,
|
215
215
|
:SDL_LoadFile_RW => :pointer,
|
216
216
|
:SDL_LoadFile => :pointer,
|
@@ -221,13 +221,13 @@ module SDL
|
|
221
221
|
:SDL_ReadBE32 => :uint,
|
222
222
|
:SDL_ReadLE64 => :ulong_long,
|
223
223
|
:SDL_ReadBE64 => :ulong_long,
|
224
|
-
:SDL_WriteU8 => :
|
225
|
-
:SDL_WriteLE16 => :
|
226
|
-
:SDL_WriteBE16 => :
|
227
|
-
:SDL_WriteLE32 => :
|
228
|
-
:SDL_WriteBE32 => :
|
229
|
-
:SDL_WriteLE64 => :
|
230
|
-
:SDL_WriteBE64 => :
|
224
|
+
:SDL_WriteU8 => :ulong,
|
225
|
+
:SDL_WriteLE16 => :ulong,
|
226
|
+
:SDL_WriteBE16 => :ulong,
|
227
|
+
:SDL_WriteLE32 => :ulong,
|
228
|
+
:SDL_WriteBE32 => :ulong,
|
229
|
+
:SDL_WriteLE64 => :ulong,
|
230
|
+
:SDL_WriteBE64 => :ulong,
|
231
231
|
}
|
232
232
|
symbols.each do |sym|
|
233
233
|
begin
|
data/lib/sdl2_stdinc.rb
CHANGED
@@ -469,19 +469,19 @@ module SDL
|
|
469
469
|
:SDL_memcpy => :pointer,
|
470
470
|
:SDL_memmove => :pointer,
|
471
471
|
:SDL_memcmp => :int,
|
472
|
-
:SDL_wcslen => :
|
473
|
-
:SDL_wcslcpy => :
|
474
|
-
:SDL_wcslcat => :
|
472
|
+
:SDL_wcslen => :ulong,
|
473
|
+
:SDL_wcslcpy => :ulong,
|
474
|
+
:SDL_wcslcat => :ulong,
|
475
475
|
:SDL_wcsdup => :pointer,
|
476
476
|
:SDL_wcsstr => :pointer,
|
477
477
|
:SDL_wcscmp => :int,
|
478
478
|
:SDL_wcsncmp => :int,
|
479
479
|
:SDL_wcscasecmp => :int,
|
480
480
|
:SDL_wcsncasecmp => :int,
|
481
|
-
:SDL_strlen => :
|
482
|
-
:SDL_strlcpy => :
|
483
|
-
:SDL_utf8strlcpy => :
|
484
|
-
:SDL_strlcat => :
|
481
|
+
:SDL_strlen => :ulong,
|
482
|
+
:SDL_strlcpy => :ulong,
|
483
|
+
:SDL_utf8strlcpy => :ulong,
|
484
|
+
:SDL_strlcat => :ulong,
|
485
485
|
:SDL_strdup => :pointer,
|
486
486
|
:SDL_strrev => :pointer,
|
487
487
|
:SDL_strupr => :pointer,
|
@@ -491,8 +491,8 @@ module SDL
|
|
491
491
|
:SDL_strstr => :pointer,
|
492
492
|
:SDL_strcasestr => :pointer,
|
493
493
|
:SDL_strtokr => :pointer,
|
494
|
-
:SDL_utf8strlen => :
|
495
|
-
:SDL_utf8strnlen => :
|
494
|
+
:SDL_utf8strlen => :ulong,
|
495
|
+
:SDL_utf8strnlen => :ulong,
|
496
496
|
:SDL_itoa => :pointer,
|
497
497
|
:SDL_uitoa => :pointer,
|
498
498
|
:SDL_ltoa => :pointer,
|
@@ -560,7 +560,7 @@ module SDL
|
|
560
560
|
:SDL_tanf => :float,
|
561
561
|
:SDL_iconv_open => :pointer,
|
562
562
|
:SDL_iconv_close => :int,
|
563
|
-
:SDL_iconv => :
|
563
|
+
:SDL_iconv => :ulong,
|
564
564
|
:SDL_iconv_string => :pointer,
|
565
565
|
}
|
566
566
|
symbols.each do |sym|
|
data/lib/sdl2_syswm.rb
CHANGED
@@ -37,47 +37,69 @@ module SDL
|
|
37
37
|
|
38
38
|
class SysWMmsg_def_win < FFI::Struct
|
39
39
|
layout(
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
:hwnd, :pointer,
|
41
|
+
:msg, :uint32,
|
42
|
+
:wParam, :uint64,
|
43
|
+
:lParam, :int64
|
44
44
|
)
|
45
45
|
end
|
46
46
|
|
47
47
|
class SysWMmsg_value_win < FFI::Union
|
48
48
|
layout(
|
49
|
-
|
50
|
-
|
49
|
+
:win, SysWMmsg_def_win.by_value,
|
50
|
+
:dummy, :int
|
51
51
|
)
|
52
52
|
end
|
53
53
|
|
54
54
|
class SysWMmsg_win < FFI::Struct
|
55
55
|
layout(
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
:version, Version.by_value,
|
57
|
+
:subsystem, :int,
|
58
|
+
:msg, SysWMmsg_value_win.by_value
|
59
59
|
)
|
60
60
|
end
|
61
61
|
|
62
62
|
|
63
63
|
class SysWMmsg_def_cocoa < FFI::Struct
|
64
64
|
layout(
|
65
|
-
|
65
|
+
:dummy, :int
|
66
66
|
)
|
67
67
|
end
|
68
68
|
|
69
69
|
class SysWMmsg_value_cocoa < FFI::Union
|
70
70
|
layout(
|
71
|
-
|
72
|
-
|
71
|
+
:cocoa, SysWMmsg_def_cocoa.by_value,
|
72
|
+
:dummy, :int
|
73
73
|
)
|
74
74
|
end
|
75
75
|
|
76
76
|
class SysWMmsg_cocoa < FFI::Struct
|
77
77
|
layout(
|
78
|
-
|
79
|
-
|
80
|
-
|
78
|
+
:version, Version.by_value,
|
79
|
+
:subsystem, :int,
|
80
|
+
:msg, SysWMmsg_value_cocoa.by_value
|
81
|
+
)
|
82
|
+
end
|
83
|
+
|
84
|
+
|
85
|
+
class SysWMmsg_def_x11 < FFI::Struct
|
86
|
+
layout(
|
87
|
+
:event, [:long, 24] # /usr/include/X11/Xlib.h
|
88
|
+
)
|
89
|
+
end
|
90
|
+
|
91
|
+
class SysWMmsg_value_x11 < FFI::Union
|
92
|
+
layout(
|
93
|
+
:x11, SysWMmsg_def_x11.by_value,
|
94
|
+
:dummy, :int
|
95
|
+
)
|
96
|
+
end
|
97
|
+
|
98
|
+
class SysWMmsg_x11 < FFI::Struct
|
99
|
+
layout(
|
100
|
+
:version, Version.by_value,
|
101
|
+
:subsystem, :int,
|
102
|
+
:msg, SysWMmsg_value_x11.by_value
|
81
103
|
)
|
82
104
|
end
|
83
105
|
|
@@ -85,46 +107,98 @@ module SDL
|
|
85
107
|
|
86
108
|
class SysWMinfo_def_win < FFI::Struct
|
87
109
|
layout(
|
88
|
-
|
89
|
-
|
90
|
-
|
110
|
+
:window, :pointer,
|
111
|
+
:hdc, :pointer,
|
112
|
+
:hinstance, :pointer
|
91
113
|
)
|
92
114
|
end
|
93
115
|
|
94
116
|
class SysWMinfo_value_win < FFI::Union
|
95
117
|
layout(
|
96
|
-
|
97
|
-
|
118
|
+
:win, SysWMinfo_def_win.by_value,
|
119
|
+
:dummy, [:uint8, 64]
|
98
120
|
)
|
99
121
|
end
|
100
122
|
|
101
123
|
class SysWMinfo_win < FFI::Struct
|
102
124
|
layout(
|
103
|
-
|
104
|
-
|
105
|
-
|
125
|
+
:version, Version.by_value,
|
126
|
+
:subsystem, :int,
|
127
|
+
:info, SysWMinfo_value_win.by_value
|
106
128
|
)
|
107
129
|
end
|
108
130
|
|
109
131
|
|
110
132
|
class SysWMinfo_def_cocoa < FFI::Struct
|
111
133
|
layout(
|
112
|
-
|
134
|
+
:window, :pointer
|
113
135
|
)
|
114
136
|
end
|
115
137
|
|
116
138
|
class SysWMinfo_value_cocoa < FFI::Union
|
117
139
|
layout(
|
118
|
-
|
119
|
-
|
140
|
+
:cocoa, SysWMinfo_def_cocoa.by_value,
|
141
|
+
:dummy, [:uint8, 64]
|
120
142
|
)
|
121
143
|
end
|
122
144
|
|
123
145
|
class SysWMinfo_cocoa < FFI::Struct
|
124
146
|
layout(
|
125
|
-
|
126
|
-
|
127
|
-
|
147
|
+
:version, Version.by_value,
|
148
|
+
:subsystem, :int,
|
149
|
+
:info, SysWMinfo_value_cocoa.by_value
|
150
|
+
)
|
151
|
+
end
|
152
|
+
|
153
|
+
|
154
|
+
class SysWMinfo_def_x11 < FFI::Struct
|
155
|
+
layout(
|
156
|
+
:display, :pointer,
|
157
|
+
:window, :ulong # /usr/include/X11/X.h
|
158
|
+
)
|
159
|
+
end
|
160
|
+
|
161
|
+
class SysWMinfo_value_x11 < FFI::Union
|
162
|
+
layout(
|
163
|
+
:x11, SysWMinfo_def_x11.by_value,
|
164
|
+
:dummy, [:uint8, 64]
|
165
|
+
)
|
166
|
+
end
|
167
|
+
|
168
|
+
class SysWMinfo_x11 < FFI::Struct
|
169
|
+
layout(
|
170
|
+
:version, Version.by_value,
|
171
|
+
:subsystem, :int,
|
172
|
+
:info, SysWMinfo_value_x11.by_value
|
173
|
+
)
|
174
|
+
end
|
175
|
+
|
176
|
+
|
177
|
+
class SysWMinfo_def_wl < FFI::Struct
|
178
|
+
layout(
|
179
|
+
:display, :pointer,
|
180
|
+
:surface, :pointer,
|
181
|
+
:shell_surface, :pointer,
|
182
|
+
:egl_window, :pointer,
|
183
|
+
:xdg_surface, :pointer,
|
184
|
+
:xdg_toplevel, :pointer,
|
185
|
+
:xdg_popup, :pointer,
|
186
|
+
:xdg_positioner, :pointer
|
187
|
+
)
|
188
|
+
end
|
189
|
+
|
190
|
+
class SysWMinfo_value_wl < FFI::Union
|
191
|
+
layout(
|
192
|
+
:wl, SysWMinfo_def_wl.by_value,
|
193
|
+
:dummy, [:uint8, 64]
|
194
|
+
)
|
195
|
+
end
|
196
|
+
|
197
|
+
class SysWMinfo_wl < FFI::Struct
|
198
|
+
layout(
|
199
|
+
:version, Version.by_value,
|
200
|
+
:subsystem, :int,
|
201
|
+
:info, SysWMinfo_value_wl.by_value
|
128
202
|
)
|
129
203
|
end
|
130
204
|
|
data/lib/sdl2_version.rb
CHANGED
data/lib/sdl2_video.rb
CHANGED
@@ -62,6 +62,7 @@ module SDL
|
|
62
62
|
DISPLAYEVENT_ORIENTATION = 1
|
63
63
|
DISPLAYEVENT_CONNECTED = 2
|
64
64
|
DISPLAYEVENT_DISCONNECTED = 3
|
65
|
+
DISPLAYEVENT_MOVED = 4
|
65
66
|
ORIENTATION_UNKNOWN = 0
|
66
67
|
ORIENTATION_LANDSCAPE = 1
|
67
68
|
ORIENTATION_LANDSCAPE_FLIPPED = 2
|
@@ -206,9 +207,11 @@ module SDL
|
|
206
207
|
:SDL_MinimizeWindow,
|
207
208
|
:SDL_RestoreWindow,
|
208
209
|
:SDL_SetWindowFullscreen,
|
210
|
+
:SDL_HasWindowSurface,
|
209
211
|
:SDL_GetWindowSurface,
|
210
212
|
:SDL_UpdateWindowSurface,
|
211
213
|
:SDL_UpdateWindowSurfaceRects,
|
214
|
+
:SDL_DestroyWindowSurface,
|
212
215
|
:SDL_SetWindowGrab,
|
213
216
|
:SDL_SetWindowKeyboardGrab,
|
214
217
|
:SDL_SetWindowMouseGrab,
|
@@ -303,9 +306,11 @@ module SDL
|
|
303
306
|
:SDL_MinimizeWindow => :MinimizeWindow,
|
304
307
|
:SDL_RestoreWindow => :RestoreWindow,
|
305
308
|
:SDL_SetWindowFullscreen => :SetWindowFullscreen,
|
309
|
+
:SDL_HasWindowSurface => :HasWindowSurface,
|
306
310
|
:SDL_GetWindowSurface => :GetWindowSurface,
|
307
311
|
:SDL_UpdateWindowSurface => :UpdateWindowSurface,
|
308
312
|
:SDL_UpdateWindowSurfaceRects => :UpdateWindowSurfaceRects,
|
313
|
+
:SDL_DestroyWindowSurface => :DestroyWindowSurface,
|
309
314
|
:SDL_SetWindowGrab => :SetWindowGrab,
|
310
315
|
:SDL_SetWindowKeyboardGrab => :SetWindowKeyboardGrab,
|
311
316
|
:SDL_SetWindowMouseGrab => :SetWindowMouseGrab,
|
@@ -400,9 +405,11 @@ module SDL
|
|
400
405
|
:SDL_MinimizeWindow => [:pointer],
|
401
406
|
:SDL_RestoreWindow => [:pointer],
|
402
407
|
:SDL_SetWindowFullscreen => [:pointer, :uint],
|
408
|
+
:SDL_HasWindowSurface => [:pointer],
|
403
409
|
:SDL_GetWindowSurface => [:pointer],
|
404
410
|
:SDL_UpdateWindowSurface => [:pointer],
|
405
411
|
:SDL_UpdateWindowSurfaceRects => [:pointer, :pointer, :int],
|
412
|
+
:SDL_DestroyWindowSurface => [:pointer],
|
406
413
|
:SDL_SetWindowGrab => [:pointer, :int],
|
407
414
|
:SDL_SetWindowKeyboardGrab => [:pointer, :int],
|
408
415
|
:SDL_SetWindowMouseGrab => [:pointer, :int],
|
@@ -497,9 +504,11 @@ module SDL
|
|
497
504
|
:SDL_MinimizeWindow => :void,
|
498
505
|
:SDL_RestoreWindow => :void,
|
499
506
|
:SDL_SetWindowFullscreen => :int,
|
507
|
+
:SDL_HasWindowSurface => :int,
|
500
508
|
:SDL_GetWindowSurface => :pointer,
|
501
509
|
:SDL_UpdateWindowSurface => :int,
|
502
510
|
:SDL_UpdateWindowSurfaceRects => :int,
|
511
|
+
:SDL_DestroyWindowSurface => :int,
|
503
512
|
:SDL_SetWindowGrab => :void,
|
504
513
|
:SDL_SetWindowKeyboardGrab => :void,
|
505
514
|
:SDL_SetWindowMouseGrab => :void,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sdl2-bindings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -95,14 +95,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
95
95
|
requirements:
|
96
96
|
- - ">="
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
98
|
+
version: 3.0.0
|
99
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
|
-
rubygems_version: 3.
|
105
|
+
rubygems_version: 3.4.14
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: Bindings for SDL2
|