sdl2-bindings 0.1.4 → 0.1.5

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: cd77fceb8ffd1049445bd935e70a4f195c7a5a226b31935e245a16ef1a92f02b
4
- data.tar.gz: 30c35f832b5601403101ba55ca38d65b68c1861a458f2fbf3bff09c5f5d27e8a
3
+ metadata.gz: ca4423c0218ca2efe6fd3522958924fb2f80a7f8f4306297eb4be53aaea8fc4b
4
+ data.tar.gz: a55940e461db8235156d115de6fc775421e69e34506e16310f99fa952b18e559
5
5
  SHA512:
6
- metadata.gz: 50865f79869188cf34ed0cd4a6fa16b08413fb7270afad386fa6c70ad67f665594d10eb084387c5068b0c0e8fde0b9fdb97f2610b44e98d8a1248daa6144f4f5
7
- data.tar.gz: ce21fba9684e64d286e83b7cfd8185678331d3c864ded0c3a0fc7cc1214b21b7270f1b6a96889e90a4d8ca38ffea978a7b9c25cf9cf5c1b5a753b2f4b4d0ecea
6
+ metadata.gz: b65767f1f1f62aafeb0cfb1ad18aacee9064cb8d4b320f722de7ec64be0d97528794bda50e56545a9627ad57ff7a0e14a79ca5fe094d42dc881fde4af9ca0f4c
7
+ data.tar.gz: 1a4d46c4aa8e7dd30db494f0db17883f6ea01a40ebbd550a0bbf51c683d0680dd9e879845b620d6c7e8d8743fedc2abe1ba80463d9b92ab2d2c26a661de9df77
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2022-10-09 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * SDL 2.24.1 ( https://github.com/libsdl-org/SDL/releases/tag/release-2.24.1 )
4
+ * Fixed wrong value definitions
5
+
1
6
  2022-08-20 vaiorabbit <http://twitter.com/vaiorabbit>
2
7
 
3
8
  * SDL 2.24.0 ( https://github.com/libsdl-org/SDL/releases/tag/release-2.24.0 )
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-08-20
6
+ * Last modified : 2022-10-09
7
7
 
8
8
  ## Features ##
9
9
 
@@ -11,14 +11,20 @@
11
11
  * Based on Ruby/FFI
12
12
  * No need to build C extension library
13
13
 
14
+ See the project below to learn how to use this library:
15
+
16
+ * Whac-a-Mole! : Ruby SDL2 bindings demo
17
+ * <https://github.com/vaiorabbit/sdl2-bindings-whacamole>
18
+ * [![](http://img.youtube.com/vi/HroP-_EWcg8/mqdefault.jpg)](https://www.youtube.com/watch?v=HroP-_EWcg8)
19
+
14
20
  ## Limitations ##
15
21
 
16
22
  * Several original APIs originally defined with pre-processor macro are unavailable in this library (e.g. `SDL_LoadBMP`)
17
23
 
18
24
  ## Target version ##
19
25
 
20
- * [2022-08-20]
21
- * SDL : 2.24.0
26
+ * [2022-10-09]
27
+ * SDL : 2.24.1
22
28
  * SDL_image : 2.6.2
23
29
  * SDL_mixer : 2.6.2
24
30
  * SDL_ttf : 2.20.1
@@ -56,17 +62,26 @@
56
62
  * SDL_ttf : 2.20.0
57
63
  * SDL2_gfx : 1.0.4
58
64
  * SDL_sound : 2.0.1
65
+ * [2022-08-20]
66
+ * SDL : 2.24.0
67
+ * SDL_image : 2.6.2
68
+ * SDL_mixer : 2.6.2
69
+ * SDL_ttf : 2.20.1
70
+ * SDL2_gfx : 1.0.4
71
+ * SDL_sound : 2.0.1
59
72
 
60
73
  </details>
61
74
 
62
75
  ## Supported Environments ##
63
76
 
64
77
  * [2022-04-29] Windows 10 (21H1), ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
65
- * [2022-07-31] macOS Monterey (12.4), ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin21]
78
+ * [2022-10-09] macOS Monterey (12.5.1), ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
79
+ * [2022-10-09] Debian 11 (bullseye) on ASUS Chromebook Detachable CZ1, ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [aarch64-linux]
66
80
 
67
81
  <details>
68
82
  <summary>Older Environments</summary>
69
83
 
84
+ * [2022-07-31] macOS Monterey (12.4), ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin21]
70
85
  * [2022-02-12] Windows 10 (21H1), ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x64-mingw-ucrt]
71
86
  * [2022-01-11] macOS Monterey (12.1), ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
72
87
  * [2021-12-02] macOS Big Sur (11.6), ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
data/lib/sdl2_stdinc.rb CHANGED
@@ -10,10 +10,10 @@ module SDL
10
10
  extend FFI::Library
11
11
  # Define/Macro
12
12
 
13
- ICONV_ERROR = -1
14
- ICONV_E2BIG = -2
15
- ICONV_EILSEQ = -3
16
- ICONV_EINVAL = -4
13
+ ICONV_ERROR = 4294967295
14
+ ICONV_E2BIG = 4294967294
15
+ ICONV_EILSEQ = 4294967293
16
+ ICONV_EINVAL = 4294967292
17
17
 
18
18
  # Enum
19
19
 
@@ -22,6 +22,14 @@ module SDL
22
22
 
23
23
  # Typedef
24
24
 
25
+ typedef :char, :int8_t
26
+ typedef :short, :int16_t
27
+ typedef :int, :int32_t
28
+ typedef :long_long, :int64_t
29
+ typedef :uchar, :uint8_t
30
+ typedef :ushort, :uint16_t
31
+ typedef :uint, :uint32_t
32
+ typedef :ulong_long, :uint64_t
25
33
  typedef :int, :SDL_bool
26
34
  typedef :char, :Sint8
27
35
  typedef :uchar, :Uint8
data/lib/sdl2_touch.rb CHANGED
@@ -10,7 +10,7 @@ module SDL
10
10
  extend FFI::Library
11
11
  # Define/Macro
12
12
 
13
- TOUCH_MOUSEID = -1
13
+ TOUCH_MOUSEID = 4294967295
14
14
  MOUSE_TOUCHID = -1
15
15
 
16
16
  # Enum
data/lib/sdl2_version.rb CHANGED
@@ -12,7 +12,7 @@ module SDL
12
12
 
13
13
  MAJOR_VERSION = 2
14
14
  MINOR_VERSION = 24
15
- PATCHLEVEL = 0
15
+ PATCHLEVEL = 1
16
16
 
17
17
  # Enum
18
18
 
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
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-20 00:00:00.000000000 Z
11
+ date: 2022-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi