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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ff45dc869d3e6b6580a58bc614aa46ee16ec4731dc2e0f2f23dac2b15d4f330
4
- data.tar.gz: ac4785455d17d1089d9092f07c81db507cab2802a98339cea60b8e874ba766cf
3
+ metadata.gz: 2554db65f215f6d4b429b0bb51ebf8338f7577cd44788d2698ef5e001a5a598f
4
+ data.tar.gz: 915d296ecdade071685d65dac1d15c5995c7188d208a78bc27e4bb3a0175cb4e
5
5
  SHA512:
6
- metadata.gz: 27ed6da2b7a9bccac8fa1662104108cafff1b300a20aab006af30a72d93350ec7c7946e8a553612a46cb15fb62b69ff5acad7b9edd4f1a80d3152fcae02984ff
7
- data.tar.gz: 361e671205aebb5714bbec11b627ec88f4efb17795d7a61353eba7602fbd7c623b3c6e91658df0512c395f7a8c523e015e6984435abad7ef8504091aa75b100e
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-2022 vaiorabbit <http://twitter.com/vaiorabbit>
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 : 2022-11-23
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
- * [2022-11-23]
27
- * SDL : 2.26.0
28
- * SDL_image : 2.6.2
29
- * SDL_mixer : 2.6.2
30
- * SDL_ttf : 2.20.1
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
- * [2022-04-29] Windows 10 (21H1), ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
92
- * [2022-10-09] macOS Monterey (12.5.1), ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
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-2022 vaiorabbit <http://twitter.com/vaiorabbit>
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 => :size_t,
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
@@ -17,7 +17,6 @@ module SDL
17
17
  MIX_DEFAULT_FREQUENCY = 44100
18
18
  MIX_DEFAULT_FORMAT = AUDIO_S16LSB
19
19
  MIX_DEFAULT_CHANNELS = 2
20
- MIX_MAX_VOLUME = MIX_MAXVOLUME
21
20
  MIX_CHANNEL_POST = -2
22
21
  MIX_EFFECTSMAXSPEED = "MIX_EFFECTSMAXSPEED"
23
22
 
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 => :size_t,
213
- :SDL_RWwrite => :size_t,
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 => :size_t,
225
- :SDL_WriteLE16 => :size_t,
226
- :SDL_WriteBE16 => :size_t,
227
- :SDL_WriteLE32 => :size_t,
228
- :SDL_WriteBE32 => :size_t,
229
- :SDL_WriteLE64 => :size_t,
230
- :SDL_WriteBE64 => :size_t,
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 => :size_t,
473
- :SDL_wcslcpy => :size_t,
474
- :SDL_wcslcat => :size_t,
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 => :size_t,
482
- :SDL_strlcpy => :size_t,
483
- :SDL_utf8strlcpy => :size_t,
484
- :SDL_strlcat => :size_t,
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 => :size_t,
495
- :SDL_utf8strnlen => :size_t,
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 => :size_t,
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
- :hwnd, :pointer,
41
- :msg, :uint32,
42
- :wParam, :uint64,
43
- :lParam, :int64
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
- :win, SysWMmsg_def_win.by_value,
50
- :dummy, :int
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
- :version, Version.by_value,
57
- :subsystem, :int,
58
- :msg, SysWMmsg_value_win.by_value
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
- :dummy, :int
65
+ :dummy, :int
66
66
  )
67
67
  end
68
68
 
69
69
  class SysWMmsg_value_cocoa < FFI::Union
70
70
  layout(
71
- :cocoa, SysWMmsg_def_cocoa.by_value,
72
- :dummy, :int
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
- :version, Version.by_value,
79
- :subsystem, :int,
80
- :msg, SysWMmsg_value_cocoa.by_value
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
- :window, :pointer,
89
- :hdc, :pointer,
90
- :hinstance, :pointer
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
- :win, SysWMinfo_def_win.by_value,
97
- :dummy, [:uint8, 64]
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
- :version, Version.by_value,
104
- :subsystem, :int,
105
- :info, SysWMinfo_value_win.by_value
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
- :window, :pointer
134
+ :window, :pointer
113
135
  )
114
136
  end
115
137
 
116
138
  class SysWMinfo_value_cocoa < FFI::Union
117
139
  layout(
118
- :cocoa, SysWMinfo_def_cocoa.by_value,
119
- :dummy, [:uint8, 64]
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
- :version, Version.by_value,
126
- :subsystem, :int,
127
- :info, SysWMinfo_value_cocoa.by_value
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
@@ -11,8 +11,8 @@ module SDL
11
11
  # Define/Macro
12
12
 
13
13
  MAJOR_VERSION = 2
14
- MINOR_VERSION = 24
15
- PATCHLEVEL = 1
14
+ MINOR_VERSION = 28
15
+ PATCHLEVEL = 0
16
16
 
17
17
  # Enum
18
18
 
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.6
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: 2022-11-23 00:00:00.000000000 Z
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: 2.6.0
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.3.7
105
+ rubygems_version: 3.4.14
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Bindings for SDL2