sdl2-bindings 0.0.8 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +124 -92
- data/LICENSE.txt +1 -1
- data/README.md +77 -53
- data/lib/sdl2.rb +131 -172
- data/lib/sdl2_audio.rb +261 -222
- data/lib/sdl2_blendmode.rb +72 -69
- data/lib/sdl2_clipboard.rb +56 -51
- data/lib/sdl2_cpuinfo.rb +129 -106
- data/lib/sdl2_error.rb +71 -64
- data/lib/sdl2_events.rb +564 -533
- data/lib/sdl2_filesystem.rb +52 -48
- data/lib/sdl2_framerate.rb +74 -67
- data/lib/sdl2_gamecontroller.rb +329 -274
- data/lib/sdl2_gesture.rb +61 -55
- data/lib/sdl2_gfxPrimitives.rb +283 -222
- data/lib/sdl2_haptic.rb +301 -269
- data/lib/sdl2_hidapi.rb +139 -118
- data/lib/sdl2_hints.rb +221 -197
- data/lib/sdl2_image.rb +232 -185
- data/lib/sdl2_imageFilter.rb +164 -132
- data/lib/sdl2_joystick.rb +294 -239
- data/lib/sdl2_keyboard.rb +125 -99
- data/lib/sdl2_keycode.rb +307 -305
- data/lib/sdl2_log.rb +131 -115
- data/lib/sdl2_main.rb +74 -67
- data/lib/sdl2_messagebox.rb +102 -98
- data/lib/sdl2_misc.rb +48 -45
- data/lib/sdl2_mixer.rb +392 -317
- data/lib/sdl2_mouse.rb +136 -117
- data/lib/sdl2_pixels.rb +240 -224
- data/lib/sdl2_platform.rb +48 -45
- data/lib/sdl2_power.rb +54 -51
- data/lib/sdl2_rect.rb +145 -102
- data/lib/sdl2_render.rb +408 -322
- data/lib/sdl2_rotozoom.rb +76 -66
- data/lib/sdl2_rwops.rb +238 -208
- data/lib/sdl2_scancode.rb +289 -287
- data/lib/sdl2_sensor.rb +115 -97
- data/lib/sdl2_shape.rb +83 -77
- data/lib/sdl2_sound.rb +154 -0
- data/lib/sdl2_stdinc.rb +556 -439
- data/lib/sdl2_surface.rb +229 -188
- data/lib/sdl2_syswm.rb +160 -156
- data/lib/sdl2_timer.rb +74 -65
- data/lib/sdl2_touch.rb +86 -75
- data/lib/sdl2_ttf.rb +358 -202
- data/lib/sdl2_version.rb +67 -62
- data/lib/sdl2_video.rb +540 -446
- data/lib/sdl2_vulkan.rb +72 -64
- metadata +19 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f72af1471f1fab233bf113d816dc9fd44f09a3d9b59c71abf706dc32b5080fa
|
4
|
+
data.tar.gz: 95b3a5f472b90107eae20af3b050385fbd407371ae0748a6eba076404163455b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3ff6e76415386227e597c3dc0abe049be7554b6990e1b37f46163ead164beb92ebf03d4920188b38ecbccbb1c8ae78b2e2d7572285b4388ff90ce62fd77c09e
|
7
|
+
data.tar.gz: 9b203789bacbaa3f51fd527f3f1646864b20c97df60cba9562458ec9ecb0e4bcc7b00c2fd4766fa4c1567b81c7734f95e625f3bea2220e34fb68eb9dad60b452
|
data/ChangeLog
CHANGED
@@ -1,92 +1,124 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
* Added SDL 2.0.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
*
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
*
|
27
|
-
*
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
* Added SDL 2.0.
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
*
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
*
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
* Added
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
* lib/
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
* Added SDL 2.0.
|
64
|
-
*
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
* lib/
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
*
|
73
|
-
*
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
*
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
*
|
86
|
-
*
|
87
|
-
*
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
1
|
+
2022-04-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Added SDL 2.0.22 features ( https://github.com/libsdl-org/SDL/releases/tag/release-2.0.22 )
|
4
|
+
|
5
|
+
2022-03-28 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* lib/sdl2_sound.rb: Added
|
8
|
+
|
9
|
+
2022-02-13 vaiorabbit <http://twitter.com/vaiorabbit>
|
10
|
+
|
11
|
+
* Removed unavailable inline functions (SDL_memset4, SDL_memcpy4)
|
12
|
+
|
13
|
+
2022-02-12 vaiorabbit <http://twitter.com/vaiorabbit>
|
14
|
+
|
15
|
+
* Some tests are now available on Windows
|
16
|
+
|
17
|
+
2022-01-26 vaiorabbit <http://twitter.com/vaiorabbit>
|
18
|
+
|
19
|
+
* test/test*.rb: Changed namespace
|
20
|
+
* load_lib: Now accepts argument 'output_error'
|
21
|
+
|
22
|
+
2022-01-22 vaiorabbit <http://twitter.com/vaiorabbit>
|
23
|
+
|
24
|
+
* lib/sdl2_ttf.rb: Generated for version 2.0.18
|
25
|
+
* generator: Fixed wrong 'by_value' handling
|
26
|
+
* .gitignore: Added
|
27
|
+
* test/test_opengl.rb: Use opengl-bindings2
|
28
|
+
|
29
|
+
2022-01-11 vaiorabbit <http://twitter.com/vaiorabbit>
|
30
|
+
|
31
|
+
* Added SDL 2.0.20 features ( https://github.com/libsdl-org/SDL/releases/tag/release-2.0.20 )
|
32
|
+
|
33
|
+
2021-12-02 vaiorabbit <http://twitter.com/vaiorabbit>
|
34
|
+
|
35
|
+
* Added SDL 2.0.18 features ( https://github.com/libsdl-org/SDL/releases/tag/release-2.0.18 )
|
36
|
+
|
37
|
+
2021-08-12 vaiorabbit <http://twitter.com/vaiorabbit>
|
38
|
+
|
39
|
+
* Added SDL 2.0.14 features (SDL_misc).
|
40
|
+
* Added SDL 2.0.16 features (SDL_sensor).
|
41
|
+
|
42
|
+
2021-02-21 vaiorabbit <http://twitter.com/vaiorabbit>
|
43
|
+
|
44
|
+
* Added defines from Audio, Mixer and TTF
|
45
|
+
|
46
|
+
2020-12-27 vaiorabbit <http://twitter.com/vaiorabbit>
|
47
|
+
|
48
|
+
* Added SDL 2.0.14 features.
|
49
|
+
* third_party/sdl2_build_dll.sh: Added to build x64 DLL for Windows
|
50
|
+
* test/util.rb: Added
|
51
|
+
|
52
|
+
2020-12-20 vaiorabbit <http://twitter.com/vaiorabbit>
|
53
|
+
|
54
|
+
* third_party/sdl2_build_dylib.sh: Added to build x86_64|arm64 Universal Binary
|
55
|
+
|
56
|
+
2020-06-08 vaiorabbit <http://twitter.com/vaiorabbit>
|
57
|
+
|
58
|
+
* lib/sdl2_syswm.rb: Added
|
59
|
+
* lib/sdl2_hints.rb: Added hint string symboles
|
60
|
+
|
61
|
+
2020-03-22 vaiorabbit <http://twitter.com/vaiorabbit>
|
62
|
+
|
63
|
+
* Added SDL 2.0.12 features.
|
64
|
+
* Generate callback types correctly.
|
65
|
+
|
66
|
+
2019-10-27 vaiorabbit <http://twitter.com/vaiorabbit>
|
67
|
+
|
68
|
+
* lib/sdl2_stdinc.rb: Added.
|
69
|
+
|
70
|
+
2019-08-31 vaiorabbit <http://twitter.com/vaiorabbit>
|
71
|
+
|
72
|
+
* Refactoring + Cleanup
|
73
|
+
* Some tests are usable again
|
74
|
+
|
75
|
+
2019-08-28 vaiorabbit <http://twitter.com/vaiorabbit>
|
76
|
+
|
77
|
+
* Exception-safety
|
78
|
+
|
79
|
+
2019-08-27 vaiorabbit <http://twitter.com/vaiorabbit>
|
80
|
+
|
81
|
+
* lib/sdl2_mixer.rb: Added (experimental)
|
82
|
+
|
83
|
+
2019-08-24 vaiorabbit <http://twitter.com/vaiorabbit>
|
84
|
+
|
85
|
+
* Added SDL 2.0.10 features.
|
86
|
+
* Added generator. Binding codes are generated semi-automatically.
|
87
|
+
* Now depends on Ruby/FFI. Note that some codes in 'test' directory are still not usable.
|
88
|
+
|
89
|
+
2016-04-03 vaiorabbit <http://twitter.com/vaiorabbit>
|
90
|
+
|
91
|
+
* lib/sdl2_gfx.rb, test/test_gfx.rb: Added.
|
92
|
+
|
93
|
+
2016-04-02 vaiorabbit <http://twitter.com/vaiorabbit>
|
94
|
+
|
95
|
+
* Added SDL 2.0.4 features.
|
96
|
+
* lib/version.rb: Added SDL_MAJOR_VERSION, etc.
|
97
|
+
|
98
|
+
2015-09-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
99
|
+
|
100
|
+
* lib/sdl2_ttf.rb: Added.
|
101
|
+
|
102
|
+
2015-09-28 vaiorabbit <http://twitter.com/vaiorabbit>
|
103
|
+
|
104
|
+
* lib/sdl2_image.rb: Added.
|
105
|
+
* lib/sdl2_mixer.rb: Added.
|
106
|
+
|
107
|
+
2015-09-22 vaiorabbit <http://twitter.com/vaiorabbit>
|
108
|
+
|
109
|
+
* lib/pixels.rb, lib/gamecontroller.rb, lib/joystick.rb: Added.
|
110
|
+
* lib/rwops.rb, lib/syswm.rb, lib/surface.rb, lib/render.rb: Added.
|
111
|
+
* lib/cpuinfo.rb, lib/gesture.rb, lib/touch.rb, lib/audio.rb: Added.
|
112
|
+
|
113
|
+
2015-09-21 vaiorabbit <http://twitter.com/vaiorabbit>
|
114
|
+
|
115
|
+
* lib/events.rb, lib/timer.rb, lib/video.rb: Added.
|
116
|
+
* lib/keyboard.rb, lib/keycode.rb, lib/scancode.rb: Added.
|
117
|
+
* lib/error.rb: Added.
|
118
|
+
* lib/blendmode.rb, lib/clipboard.rb, lib/filesystem.rb, lib/version.rb: Added.
|
119
|
+
* lib/platform.rb, lib/rect.rb, lib/mouse.rb: Added.
|
120
|
+
* lib/messagebox.rb, lib/pixels.rb: Added.
|
121
|
+
|
122
|
+
2015-09-19 vaiorabbit <http://twitter.com/vaiorabbit>
|
123
|
+
|
124
|
+
* Project started.
|
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-2022 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
@@ -1,53 +1,77 @@
|
|
1
|
-
<!-- -*- mode:markdown; coding:utf-8; -*- -->
|
2
|
-
|
3
|
-
# sdl2-bindings : Yet another SDL2 wrapper for Ruby #
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
*
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
*
|
24
|
-
*
|
25
|
-
*
|
26
|
-
*
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
* [
|
32
|
-
* [
|
33
|
-
* [
|
34
|
-
|
35
|
-
* [
|
36
|
-
|
37
|
-
* [2021-12-02] SDL 2.0.18
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
1
|
+
<!-- -*- mode:markdown; coding:utf-8; -*- -->
|
2
|
+
|
3
|
+
# sdl2-bindings : Yet another SDL2 wrapper for Ruby #
|
4
|
+
|
5
|
+
* Created : 2015-09-19
|
6
|
+
* Last modified : 2022-04-29
|
7
|
+
|
8
|
+
## Features ##
|
9
|
+
|
10
|
+
* Generated semi-automatically
|
11
|
+
* Based on Ruby/FFI
|
12
|
+
* No need to build C extension library
|
13
|
+
|
14
|
+
## Limitations ##
|
15
|
+
|
16
|
+
* Several original APIs originally defined with pre-processor macro are unavailable in this library (e.g. `SDL_LoadBMP`)
|
17
|
+
|
18
|
+
## Target version ##
|
19
|
+
|
20
|
+
* [2022-04-29]
|
21
|
+
* SDL : 2.0.22
|
22
|
+
* SDL_image : 2.0.5
|
23
|
+
* SDL_mixer : 2.0.4
|
24
|
+
* SDL_ttf : 2.0.18
|
25
|
+
* SDL2_gfx : 1.0.4
|
26
|
+
* SDL_sound : 2.0.1
|
27
|
+
|
28
|
+
<details>
|
29
|
+
<summary>Older versions</summary>
|
30
|
+
|
31
|
+
* [2015-09-19] SDL 2.0.3
|
32
|
+
* [2016-04-03] SDL 2.0.4
|
33
|
+
* [2019-08-31] SDL 2.0.10
|
34
|
+
* [2020-03-22] SDL 2.0.12
|
35
|
+
* [2020-12-27] SDL 2.0.14
|
36
|
+
* [2021-08-12] SDL 2.0.16
|
37
|
+
* [2021-12-02] SDL 2.0.18
|
38
|
+
* [2022-03-28]
|
39
|
+
* SDL : 2.0.20
|
40
|
+
* SDL_image : 2.0.5
|
41
|
+
* SDL_mixer : 2.0.4
|
42
|
+
* SDL_ttf : 2.0.18
|
43
|
+
* SDL2_gfx : 1.0.4
|
44
|
+
* SDL_sound : 2.0.1
|
45
|
+
|
46
|
+
</details>
|
47
|
+
|
48
|
+
## Supported Environments ##
|
49
|
+
|
50
|
+
* [2022-02-12] Windows 10 (21H1), ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x64-mingw-ucrt]
|
51
|
+
* [2022-01-11] macOS Monterey (12.1), ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
52
|
+
|
53
|
+
<details>
|
54
|
+
<summary>Older Environments</summary>
|
55
|
+
|
56
|
+
* [2021-12-02] macOS Big Sur (11.6), ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
57
|
+
* [2021-08-12] macOS Big Sur (11.5), ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [arm64-darwin20]
|
58
|
+
* [2020-12-27] macOS Big Sur (11.0.1), ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20]
|
59
|
+
* [2016-04-03] Mac OS X 10.11.4, ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
|
60
|
+
* [2015-09-19] Mac OS X 10.10.5, ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
|
61
|
+
|
62
|
+
</details>
|
63
|
+
|
64
|
+
## License ##
|
65
|
+
|
66
|
+
The zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
67
|
+
|
68
|
+
sdl2-bindings : Yet another SDL2 wrapper for Ruby
|
69
|
+
Copyright (c) 2015-2022 vaiorabbit <http://twitter.com/vaiorabbit>
|
70
|
+
|
71
|
+
This software is provided 'as-is', without any express or implied
|
72
|
+
warranty. In no event will the authors be held liable for any damages
|
73
|
+
arising from the use of this software.
|
74
|
+
|
75
|
+
Permission is granted to anyone to use this software for any purpose,
|
76
|
+
including commercial applications, and to alter it and redistribute it
|
77
|
+
freely, subject to the following restrictions:
|