sdl2-bindings 0.2.0 → 0.2.2

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: 25b91bcb457fecf36bfa667b829977816bfcc4348a2b926676aa04f2ae2c71a8
4
- data.tar.gz: 6c807ef1fa2a8cbae4457cc7cdf255f2358a425f46d2fd4535234f716f1e266a
3
+ metadata.gz: 846860734bc78ffbbb72e61cad3d1a29862d1167a9677e99eea7becb7994ea57
4
+ data.tar.gz: 144141b0efc6c17a659eeb6bae890d334f8fb8f3f2851d058db02a0aea1195be
5
5
  SHA512:
6
- metadata.gz: 0b51083c4a27bb14ed410c07186db196ac3454b22bf39e1119e82843799142c0fa2e600a48000158b986562f8adecf9b2e6e7c6d660a1744ff7d60d0f566fc81
7
- data.tar.gz: d3e0cb0fc66b152ea8f69e909df7d46d804948f359a95a1f2d2fb131de7cda98c71dc36495d9ecb276d23a278c669e7ac1e4b1351c066416368d377d99df9e33
6
+ metadata.gz: 506882992eea3d2fb36049770c3737769c1c5ca0d2ca02b75b2347125a9e1f93394760bb36a11653b24609aa79b619a7d752762e8067290b579e1a3311c3a125
7
+ data.tar.gz: 6cfc644c9065593f64b3e2f5a66861dc0bf5e8069b4f7ed65727e90f7b4da6b95c7420c010ff378e6b41ae71d79ea7bff5400315a9bdbcbca93917105849f2ee
data/ChangeLog CHANGED
@@ -1,3 +1,15 @@
1
+ 2023-08-10 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * SDL 2.28.2 ( https://github.com/libsdl-org/SDL/releases/tag/release-2.28.2 )
4
+
5
+ 2023-06-25 vaiorabbit <http://twitter.com/vaiorabbit>
6
+
7
+ * SDL 2.28.0 ( https://github.com/libsdl-org/SDL/releases/tag/release-2.28.0 )
8
+
9
+ 2023-04-16 vaiorabbit <http://twitter.com/vaiorabbit>
10
+
11
+ * Fix parser bug
12
+
1
13
  2023-02-05 vaiorabbit <http://twitter.com/vaiorabbit>
2
14
 
3
15
  * lib/sdl2_syswm.rb: Added X11 support
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 : 2023-02-05
6
+ * Last modified : 2023-08-10
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 - 2.26.2
28
- * SDL_image : 2.6.2
29
- * SDL_mixer : 2.6.2
30
- * SDL_ttf : 2.20.1
26
+ * [2023-08-10]
27
+ * SDL : 2.28.2~
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,13 +83,34 @@ 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
100
+ * [2023-06-25]
101
+ * SDL : 2.28.x
102
+ * SDL_image : 2.6.3
103
+ * SDL_mixer : 2.6.3
104
+ * SDL_ttf : 2.20.2
105
+ * SDL2_gfx : 1.0.4
106
+ * SDL_sound : 2.0.1
86
107
 
87
108
  </details>
88
109
 
89
110
  ## Supported Environments ##
90
111
 
91
112
  * [2023-01-07] Windows 11 (22H2), ruby 3.2.0 (2022-12-25 revision a528908271) [x64-mingw-ucrt]
92
- * [2023-01-07] macOS Ventura (13.1) ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
113
+ * [2023-01-07] macOS Ventura (13.2.1) ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin22]
93
114
  * [2022-10-09] Debian 11 (bullseye) on ASUS Chromebook Detachable CZ1, ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [aarch64-linux]
94
115
  * [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]
95
116
 
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"
@@ -83,6 +84,7 @@ module SDL
83
84
  HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT = "SDL_JOYSTICK_RAWINPUT_CORRELATE_XINPUT"
84
85
  HINT_JOYSTICK_ROG_CHAKRAM = "SDL_JOYSTICK_ROG_CHAKRAM"
85
86
  HINT_JOYSTICK_THREAD = "SDL_JOYSTICK_THREAD"
87
+ HINT_JOYSTICK_WGI = "SDL_JOYSTICK_WGI"
86
88
  HINT_KMSDRM_REQUIRE_DRM_MASTER = "SDL_KMSDRM_REQUIRE_DRM_MASTER"
87
89
  HINT_JOYSTICK_DEVICE = "SDL_JOYSTICK_DEVICE"
88
90
  HINT_LINUX_DIGITAL_HATS = "SDL_LINUX_DIGITAL_HATS"
@@ -157,6 +159,7 @@ module SDL
157
159
  HINT_WAVE_RIFF_CHUNK_SIZE = "SDL_WAVE_RIFF_CHUNK_SIZE"
158
160
  HINT_WAVE_TRUNCATION = "SDL_WAVE_TRUNCATION"
159
161
  HINT_WINDOWS_DISABLE_THREAD_NAMING = "SDL_WINDOWS_DISABLE_THREAD_NAMING"
162
+ HINT_WINDOWS_ENABLE_MENU_MNEMONICS = "SDL_WINDOWS_ENABLE_MENU_MNEMONICS"
160
163
  HINT_WINDOWS_ENABLE_MESSAGELOOP = "SDL_WINDOWS_ENABLE_MESSAGELOOP"
161
164
  HINT_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS = "SDL_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS"
162
165
  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_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 = 2
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.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-05 00:00:00.000000000 Z
11
+ date: 2023-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubygems_version: 3.4.1
105
+ rubygems_version: 3.4.14
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Bindings for SDL2