raylib-bindings 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +192 -187
- data/LICENSE.txt +0 -0
- data/README.md +115 -115
- data/lib/libraylib.dll +0 -0
- data/lib/libraylib.dylib +0 -0
- data/lib/physac.dll +0 -0
- data/lib/physac.dylib +0 -0
- data/lib/physac.rb +178 -178
- data/lib/raygui.dll +0 -0
- data/lib/raygui.dylib +0 -0
- data/lib/raygui.rb +559 -559
- data/lib/raylib.rb +154 -154
- data/lib/raylib_main.rb +2190 -2181
- data/lib/raymath.rb +382 -381
- data/lib/rlgl.rb +658 -658
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8593b9ef115baafa884f5d0e2b8e47248b415f0070c0d30bda2159e544cc41a9
|
4
|
+
data.tar.gz: 6338b99322c0abc4f6404e80ca9b7cecd98c3a9b1b6ab8a1455e00f638cff3f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 378cc6b3cf55d646b6c4295db4e1581cf4772e32cad2e1ecc3bc2aab147bafd9552cd75517aa2191b6c8fc3e75ba4d60907e731f27c234bb21cdf46075861d4d
|
7
|
+
data.tar.gz: b3ac769d989b37e4a5501bdff70fc8bdda35a7fc08eba28b1b9073fb210356cea0be750b6599cc73923b22a348adb7928fe0cbcfeeb872e048b4794c98b5c1fa
|
data/ChangeLog
CHANGED
@@ -1,187 +1,192 @@
|
|
1
|
-
2022-
|
2
|
-
|
3
|
-
*
|
4
|
-
*
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
*
|
11
|
-
*
|
12
|
-
|
13
|
-
2022-
|
14
|
-
|
15
|
-
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/
|
16
|
-
*
|
17
|
-
|
18
|
-
2022-
|
19
|
-
|
20
|
-
*
|
21
|
-
*
|
22
|
-
|
23
|
-
2022-01-
|
24
|
-
|
25
|
-
* examples/
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
*
|
47
|
-
|
48
|
-
2022-01-
|
49
|
-
|
50
|
-
*
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
* examples/
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
* examples/
|
82
|
-
* examples/
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
*
|
90
|
-
*
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
*
|
96
|
-
* Added
|
97
|
-
|
98
|
-
2021-
|
99
|
-
|
100
|
-
*
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
* examples/
|
114
|
-
|
115
|
-
2021-11-
|
116
|
-
|
117
|
-
* examples/
|
118
|
-
* examples/
|
119
|
-
|
120
|
-
2021-11-
|
121
|
-
|
122
|
-
* examples/
|
123
|
-
* examples/
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
* examples/
|
129
|
-
* Added
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
*
|
135
|
-
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
* Added
|
143
|
-
* examples/
|
144
|
-
|
145
|
-
2021-
|
146
|
-
|
147
|
-
*
|
148
|
-
* examples/
|
149
|
-
|
150
|
-
2021-10-
|
151
|
-
|
152
|
-
* examples/
|
153
|
-
* examples/
|
154
|
-
|
155
|
-
2021-10-
|
156
|
-
|
157
|
-
* examples/
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
*
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
*
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
*
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
*
|
177
|
-
*
|
178
|
-
*
|
179
|
-
*
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
*
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
1
|
+
2022-06-08 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/70ec71a373db426685590127122e77bfd66cbf69 ) / and raygui ( https://github.com/raysan5/raygui/commit/47269f30ce55f0399096d1bee4188b8b8c0d7186 )
|
4
|
+
* Updated submodules appropriately
|
5
|
+
|
6
|
+
2022-04-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
7
|
+
|
8
|
+
* script/rebuild_libs_windows.cmd: Added
|
9
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/5c66cc1c9bb4a3ae4af7cc6f82a521137ed5484d ) / Updated submodules appropriately
|
10
|
+
* [Windows] Updated DLLs with the latest raylib ( https://github.com/raysan5/raylib/commit/5c66cc1c9bb4a3ae4af7cc6f82a521137ed5484d ) and raygui ( https://github.com/raysan5/raygui/commit/865bb293764073c01e74314ef647464f1f10fd96 )
|
11
|
+
* [macOS] Updated DLLs with the latest raylib
|
12
|
+
|
13
|
+
2022-04-24 vaiorabbit <http://twitter.com/vaiorabbit>
|
14
|
+
|
15
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/233cf3970c9148c4963cfdea20e49e761104f9de ) and raygui ( https://github.com/raysan5/raygui/commit/865bb293764073c01e74314ef647464f1f10fd96 )
|
16
|
+
* examples/models_mesh_picking.rb: Applied changes done by https://github.com/raysan5/raylib/commit/90fc7c0376f39d7b19d632e1d69dec715ec3f2a8
|
17
|
+
|
18
|
+
2022-02-26 vaiorabbit <http://twitter.com/vaiorabbit>
|
19
|
+
|
20
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/ead8003044aab21f8d155b91ec0bce90cd193500 ), raygui ( https://github.com/raysan5/raygui/commit/c8d8fb5a865a6730cec2c609704333577463feb1 ) and Physac ( https://github.com/victorfisac/Physac/commit/c9c6b3e7054d609e93e52e70f17d5b4dd043575d )
|
21
|
+
* Fixed incomplete parsing flow
|
22
|
+
|
23
|
+
2022-01-20 vaiorabbit <http://twitter.com/vaiorabbit>
|
24
|
+
|
25
|
+
* examples/core_2d_camera.rb: Added
|
26
|
+
* examples/shapes_lines_bezier.rb: Added
|
27
|
+
|
28
|
+
2022-01-19 vaiorabbit <http://twitter.com/vaiorabbit>
|
29
|
+
|
30
|
+
* examples/lissajous_curve.rb: Added
|
31
|
+
|
32
|
+
2022-01-17 vaiorabbit <http://twitter.com/vaiorabbit>
|
33
|
+
|
34
|
+
* raygui: Revert to https://github.com/raysan5/raygui/commit/7a2964302ada73438092d0ad11e54f9f9590547a (See https://github.com/vaiorabbit/raylib-bindings/issues/2 for details)
|
35
|
+
|
36
|
+
2022-01-16 vaiorabbit <http://twitter.com/vaiorabbit>
|
37
|
+
|
38
|
+
* examples/audio_raw_stream.rb: Added
|
39
|
+
|
40
|
+
2022-01-15 vaiorabbit <http://twitter.com/vaiorabbit>
|
41
|
+
|
42
|
+
* raylib_dll/build_raylib_macos.sh: Stop copying symbolic links
|
43
|
+
|
44
|
+
2022-01-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
45
|
+
|
46
|
+
* examples/models_animation.rb: Added
|
47
|
+
|
48
|
+
2022-01-08 vaiorabbit <http://twitter.com/vaiorabbit>
|
49
|
+
|
50
|
+
* examples/raylib_opengl_interop.rb: Use opengl-bindings2
|
51
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/549ca669aa42462662a610ff240aa4d5736240e5 ) and raygui ( https://github.com/raysan5/raygui/commit/c7eb9268535298ee25be90739c86d1be215f53e5 )
|
52
|
+
|
53
|
+
2022-01-01 vaiorabbit <http://twitter.com/vaiorabbit>
|
54
|
+
|
55
|
+
* raylib-bindings.gemspec: Bump version
|
56
|
+
|
57
|
+
2021-12-30 vaiorabbit <http://twitter.com/vaiorabbit>
|
58
|
+
|
59
|
+
* BoundingBox.create (lib/raylib.rb): Fixed wrong implementation
|
60
|
+
|
61
|
+
2021-12-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
62
|
+
|
63
|
+
* examples/procedural_texture.rb: Added
|
64
|
+
|
65
|
+
2021-12-26 vaiorabbit <http://twitter.com/vaiorabbit>
|
66
|
+
|
67
|
+
* examples/shaders_raymarching.rb: Added
|
68
|
+
|
69
|
+
2021-12-24 vaiorabbit <http://twitter.com/vaiorabbit>
|
70
|
+
|
71
|
+
* examples/text_rectangle_bounds.rb: Added
|
72
|
+
|
73
|
+
2021-12-20 vaiorabbit <http://twitter.com/vaiorabbit>
|
74
|
+
|
75
|
+
* examples/text_draw_3d.rb: Added
|
76
|
+
|
77
|
+
2021-12-19 vaiorabbit <http://twitter.com/vaiorabbit>
|
78
|
+
|
79
|
+
* examples/models_mesh_picking.rb: Added
|
80
|
+
* examples/text_font_filters.rb: Added
|
81
|
+
* examples/utf8_font.rb: Modified to use texture filter
|
82
|
+
* examples/textures_mouse_painting.rb: Added
|
83
|
+
|
84
|
+
2021-12-18 vaiorabbit <http://twitter.com/vaiorabbit>
|
85
|
+
|
86
|
+
* examples/models_mesh_generation.rb: Added
|
87
|
+
* examples/utf8_font.rb: Added another font
|
88
|
+
* examples/core_3d_split_screen.rb: Added
|
89
|
+
* examples/core_world_screen.rb: Added
|
90
|
+
* examples/models_yaw_pitch_roll.rb: Added
|
91
|
+
|
92
|
+
2021-12-16 vaiorabbit <http://twitter.com/vaiorabbit>
|
93
|
+
|
94
|
+
* raylib_parser.py: Typo
|
95
|
+
* Python cindex reports va_list as int on macOS
|
96
|
+
* examples/models_loading_gltf.rb: Added
|
97
|
+
|
98
|
+
2021-12-15 vaiorabbit <http://twitter.com/vaiorabbit>
|
99
|
+
|
100
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/0454acaacfaae4a3269d443d3d88045240f738c3 )
|
101
|
+
* Added generator scripts for Windows
|
102
|
+
|
103
|
+
2021-11-14 vaiorabbit <http://twitter.com/vaiorabbit>
|
104
|
+
|
105
|
+
* examples/core_storage_values.rb: Added
|
106
|
+
|
107
|
+
2021-11-13 vaiorabbit <http://twitter.com/vaiorabbit>
|
108
|
+
|
109
|
+
* examples/core_drop_files.rb: Added
|
110
|
+
|
111
|
+
2021-11-09 vaiorabbit <http://twitter.com/vaiorabbit>
|
112
|
+
|
113
|
+
* examples/models_first_person_maze.rb: Added
|
114
|
+
|
115
|
+
2021-11-08 vaiorabbit <http://twitter.com/vaiorabbit>
|
116
|
+
|
117
|
+
* examples/raylib_opengl_interop.rb: Added
|
118
|
+
* examples/models_geometric_shapes.rb: Added
|
119
|
+
|
120
|
+
2021-11-07 vaiorabbit <http://twitter.com/vaiorabbit>
|
121
|
+
|
122
|
+
* examples/rlgl_compute_shader.rb: Added
|
123
|
+
* examples/models_billboard.rb: Added
|
124
|
+
|
125
|
+
2021-11-06 vaiorabbit <http://twitter.com/vaiorabbit>
|
126
|
+
|
127
|
+
* examples/physics_demo.rb: Added
|
128
|
+
* examples/textures_background_scrolling.rb: Added
|
129
|
+
* Added dll build scripts for Windows
|
130
|
+
|
131
|
+
2021-11-05 vaiorabbit <http://twitter.com/vaiorabbit>
|
132
|
+
|
133
|
+
* examples/models_box_collisions.rb: Added
|
134
|
+
* Added physac wrapper and wrapper generator
|
135
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/2021f09db4df72aea9f963666435bddf0718df94 )
|
136
|
+
|
137
|
+
2021-11-04 vaiorabbit <http://twitter.com/vaiorabbit>
|
138
|
+
|
139
|
+
* Bugfix: Generate correct signatures for raymath and rlgl
|
140
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/d18f3fca30858916546908e40cc2e0cea2be03ca )
|
141
|
+
* Bugfix: Fixed wrong signature in raymath.rb
|
142
|
+
* examples/audio_sound_loading.rb: Added
|
143
|
+
* examples/audio_music_stream.rb: Added
|
144
|
+
|
145
|
+
2021-11-03 vaiorabbit <http://twitter.com/vaiorabbit>
|
146
|
+
|
147
|
+
* Added raygui wrapper and wrapper generator
|
148
|
+
* examples/shapes_draw_circle_sector.rb: Added
|
149
|
+
|
150
|
+
2021-10-31 vaiorabbit <http://twitter.com/vaiorabbit>
|
151
|
+
|
152
|
+
* examples/text_unicode.rb: Added
|
153
|
+
* examples/textures_bunnymark.rb: Added
|
154
|
+
|
155
|
+
2021-10-28 vaiorabbit <http://twitter.com/vaiorabbit>
|
156
|
+
|
157
|
+
* examples/core_loading_thread.rb: Added
|
158
|
+
* examples/bitmap_font.rb and font/VP16Font_XNA.png: Added
|
159
|
+
|
160
|
+
2021-10-27 vaiorabbit <http://twitter.com/vaiorabbit>
|
161
|
+
|
162
|
+
* examples/models_waving_cubes.rb: Added
|
163
|
+
|
164
|
+
2021-10-26 vaiorabbit <http://twitter.com/vaiorabbit>
|
165
|
+
|
166
|
+
* examples/models_rlgl_solar_system.rb: Added
|
167
|
+
* Bugfix: DEG2RAD and RAD2DEG duplication
|
168
|
+
* examples/models_cubicmap.rb: Added
|
169
|
+
|
170
|
+
2021-10-25 vaiorabbit <http://twitter.com/vaiorabbit>
|
171
|
+
|
172
|
+
* examples/utf8_font.rb: Added
|
173
|
+
|
174
|
+
2021-10-24 vaiorabbit <http://twitter.com/vaiorabbit>
|
175
|
+
|
176
|
+
* generator: Add ".by_value" to struct arguments
|
177
|
+
* generator: Add struct alias hook
|
178
|
+
* examples: Added
|
179
|
+
* examples/shapes_basic_shapes.rb: Added
|
180
|
+
* generator: Now correctly handles variable-length arguments (TextFormat and TraceLog)
|
181
|
+
* Added helper functions (Color.from_u8, Vector2.create, etc.)
|
182
|
+
* examples/core_3d_camera_first_person.rb: Added
|
183
|
+
* generator: Now correctly handles return values
|
184
|
+
* Bugfix: Removed duplicated enums / Names of some structs must start with capital letter
|
185
|
+
|
186
|
+
2021-10-23 vaiorabbit <http://twitter.com/vaiorabbit>
|
187
|
+
|
188
|
+
* Experimental raylib header parser
|
189
|
+
|
190
|
+
2021-10-17 vaiorabbit <http://twitter.com/vaiorabbit>
|
191
|
+
|
192
|
+
* initial commit
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -1,115 +1,115 @@
|
|
1
|
-
<!-- -*- mode:markdown; coding:utf-8; -*- -->
|
2
|
-
|
3
|
-
# Yet another raylib wrapper for Ruby #
|
4
|
-
|
5
|
-
* Created : 2021-10-17
|
6
|
-
* Last modified : 2022-
|
7
|
-
|
8
|
-
Provides Ruby bindings for raylib-related libraries including:
|
9
|
-
|
10
|
-
* [raylib](https://github.com/raysan5/raylib)
|
11
|
-
* raylib
|
12
|
-
* raymath
|
13
|
-
* rlgl
|
14
|
-
* [raygui](https://github.com/raysan5/raygui)
|
15
|
-
* [Physac](https://github.com/victorfisac/Physac)
|
16
|
-
|
17
|
-
## Features ##
|
18
|
-
|
19
|
-
* Generated semi-automatically
|
20
|
-
* Based on Ruby/FFI
|
21
|
-
* No need to build C extension library
|
22
|
-
|
23
|
-
## Prerequisites ##
|
24
|
-
|
25
|
-
* Ruby interpreter
|
26
|
-
* Tested on:
|
27
|
-
* [macOS]
|
28
|
-
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
29
|
-
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
30
|
-
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
|
31
|
-
|
32
|
-
* Compiler
|
33
|
-
* Tested on:
|
34
|
-
* [macOS] clang
|
35
|
-
|
36
|
-
Apple clang version 13.0.0 (clang-1300.0.29.3)
|
37
|
-
Target: arm64-apple-darwin20.6.0
|
38
|
-
Thread model: posix
|
39
|
-
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
|
40
|
-
|
41
|
-
* [Windows] gcc
|
42
|
-
|
43
|
-
gcc (Rev10, Built by MSYS2 project) 11.2.0
|
44
|
-
|
45
|
-
* CMake https://cmake.org/download/
|
46
|
-
|
47
|
-
<details>
|
48
|
-
<summary>Older versions</summary>
|
49
|
-
|
50
|
-
* Ruby interpreter
|
51
|
-
* Tested on:
|
52
|
-
* [macOS]
|
53
|
-
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
54
|
-
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
55
|
-
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
56
|
-
* ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
|
57
|
-
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
58
|
-
|
59
|
-
* Compiler
|
60
|
-
* Tested on:
|
61
|
-
* [macOS] clang
|
62
|
-
|
63
|
-
Apple clang version 13.0.0 (clang-1300.0.29.3)
|
64
|
-
Target: arm64-apple-darwin20.6.0
|
65
|
-
Thread model: posix
|
66
|
-
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
|
67
|
-
|
68
|
-
* [Windows] gcc
|
69
|
-
|
70
|
-
gcc (Rev9, Built by MSYS2 project) 11.2.0
|
71
|
-
|
72
|
-
</details>
|
73
|
-
|
74
|
-
## Limitation ##
|
75
|
-
|
76
|
-
* `SetTraceLogCallback` and `TraceLogCallback` are unusable since Ruby-FFI does not support `:varargs` parameter in callbacks (`Proc`, etc.)
|
77
|
-
* Ref.: https://ffi.github.io/ruby-ffi-archive/messages/20130214-%5Bruby-ffi%5D%20Re_%20Callback%20Function%20with%20varargs-345.html
|
78
|
-
|
79
|
-
## License ##
|
80
|
-
|
81
|
-
Shared libraries in `lib` directory are built on top of these products and are available under the terms of these licenses:
|
82
|
-
|
83
|
-
* `libraylib.dylib`, `libraylib.dll`
|
84
|
-
* raylib ( https://github.com/raysan5/raylib )
|
85
|
-
* https://github.com/raysan5/raylib/blob/master/LICENSE
|
86
|
-
* `raygui.dylib`, `raygui.dll`
|
87
|
-
* raygui ( https://github.com/raysan5/raygui )
|
88
|
-
* https://github.com/raysan5/raygui/blob/master/LICENSE
|
89
|
-
* `physac.dylib`, `physac.dll`
|
90
|
-
* Physac ( https://github.com/victorfisac/Physac )
|
91
|
-
* https://github.com/victorfisac/Physac/blob/a8a6c864bfc809f8e4b2f88bb916b90d736b3f4a/src/physac.h#L59-L76
|
92
|
-
|
93
|
-
All ruby codes here are available under the terms of the zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
94
|
-
|
95
|
-
Ruby-raylib : Yet another raylib wrapper for Ruby
|
96
|
-
Copyright (c) 2021-2022 vaiorabbit <http://twitter.com/vaiorabbit>
|
97
|
-
|
98
|
-
This software is provided 'as-is', without any express or implied
|
99
|
-
warranty. In no event will the authors be held liable for any damages
|
100
|
-
arising from the use of this software.
|
101
|
-
|
102
|
-
Permission is granted to anyone to use this software for any purpose,
|
103
|
-
including commercial applications, and to alter it and redistribute it
|
104
|
-
freely, subject to the following restrictions:
|
105
|
-
|
106
|
-
1. The origin of this software must not be misrepresented; you must not
|
107
|
-
claim that you wrote the original software. If you use this software
|
108
|
-
in a product, an acknowledgment in the product documentation would be
|
109
|
-
appreciated but is not required.
|
110
|
-
|
111
|
-
2. Altered source versions must be plainly marked as such, and must not be
|
112
|
-
misrepresented as being the original software.
|
113
|
-
|
114
|
-
3. This notice may not be removed or altered from any source
|
115
|
-
distribution.
|
1
|
+
<!-- -*- mode:markdown; coding:utf-8; -*- -->
|
2
|
+
|
3
|
+
# Yet another raylib wrapper for Ruby #
|
4
|
+
|
5
|
+
* Created : 2021-10-17
|
6
|
+
* Last modified : 2022-06-08
|
7
|
+
|
8
|
+
Provides Ruby bindings for raylib-related libraries including:
|
9
|
+
|
10
|
+
* [raylib](https://github.com/raysan5/raylib)
|
11
|
+
* raylib
|
12
|
+
* raymath
|
13
|
+
* rlgl
|
14
|
+
* [raygui](https://github.com/raysan5/raygui)
|
15
|
+
* [Physac](https://github.com/victorfisac/Physac)
|
16
|
+
|
17
|
+
## Features ##
|
18
|
+
|
19
|
+
* Generated semi-automatically
|
20
|
+
* Based on Ruby/FFI
|
21
|
+
* No need to build C extension library
|
22
|
+
|
23
|
+
## Prerequisites ##
|
24
|
+
|
25
|
+
* Ruby interpreter
|
26
|
+
* Tested on:
|
27
|
+
* [macOS]
|
28
|
+
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
29
|
+
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
30
|
+
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
|
31
|
+
|
32
|
+
* Compiler
|
33
|
+
* Tested on:
|
34
|
+
* [macOS] clang
|
35
|
+
|
36
|
+
Apple clang version 13.0.0 (clang-1300.0.29.3)
|
37
|
+
Target: arm64-apple-darwin20.6.0
|
38
|
+
Thread model: posix
|
39
|
+
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
|
40
|
+
|
41
|
+
* [Windows] gcc
|
42
|
+
|
43
|
+
gcc (Rev10, Built by MSYS2 project) 11.2.0
|
44
|
+
|
45
|
+
* CMake https://cmake.org/download/
|
46
|
+
|
47
|
+
<details>
|
48
|
+
<summary>Older versions</summary>
|
49
|
+
|
50
|
+
* Ruby interpreter
|
51
|
+
* Tested on:
|
52
|
+
* [macOS]
|
53
|
+
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
54
|
+
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
55
|
+
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
56
|
+
* ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
|
57
|
+
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
58
|
+
|
59
|
+
* Compiler
|
60
|
+
* Tested on:
|
61
|
+
* [macOS] clang
|
62
|
+
|
63
|
+
Apple clang version 13.0.0 (clang-1300.0.29.3)
|
64
|
+
Target: arm64-apple-darwin20.6.0
|
65
|
+
Thread model: posix
|
66
|
+
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
|
67
|
+
|
68
|
+
* [Windows] gcc
|
69
|
+
|
70
|
+
gcc (Rev9, Built by MSYS2 project) 11.2.0
|
71
|
+
|
72
|
+
</details>
|
73
|
+
|
74
|
+
## Limitation ##
|
75
|
+
|
76
|
+
* `SetTraceLogCallback` and `TraceLogCallback` are unusable since Ruby-FFI does not support `:varargs` parameter in callbacks (`Proc`, etc.)
|
77
|
+
* Ref.: https://ffi.github.io/ruby-ffi-archive/messages/20130214-%5Bruby-ffi%5D%20Re_%20Callback%20Function%20with%20varargs-345.html
|
78
|
+
|
79
|
+
## License ##
|
80
|
+
|
81
|
+
Shared libraries in `lib` directory are built on top of these products and are available under the terms of these licenses:
|
82
|
+
|
83
|
+
* `libraylib.dylib`, `libraylib.dll`
|
84
|
+
* raylib ( https://github.com/raysan5/raylib )
|
85
|
+
* https://github.com/raysan5/raylib/blob/master/LICENSE
|
86
|
+
* `raygui.dylib`, `raygui.dll`
|
87
|
+
* raygui ( https://github.com/raysan5/raygui )
|
88
|
+
* https://github.com/raysan5/raygui/blob/master/LICENSE
|
89
|
+
* `physac.dylib`, `physac.dll`
|
90
|
+
* Physac ( https://github.com/victorfisac/Physac )
|
91
|
+
* https://github.com/victorfisac/Physac/blob/a8a6c864bfc809f8e4b2f88bb916b90d736b3f4a/src/physac.h#L59-L76
|
92
|
+
|
93
|
+
All ruby codes here are available under the terms of the zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
94
|
+
|
95
|
+
Ruby-raylib : Yet another raylib wrapper for Ruby
|
96
|
+
Copyright (c) 2021-2022 vaiorabbit <http://twitter.com/vaiorabbit>
|
97
|
+
|
98
|
+
This software is provided 'as-is', without any express or implied
|
99
|
+
warranty. In no event will the authors be held liable for any damages
|
100
|
+
arising from the use of this software.
|
101
|
+
|
102
|
+
Permission is granted to anyone to use this software for any purpose,
|
103
|
+
including commercial applications, and to alter it and redistribute it
|
104
|
+
freely, subject to the following restrictions:
|
105
|
+
|
106
|
+
1. The origin of this software must not be misrepresented; you must not
|
107
|
+
claim that you wrote the original software. If you use this software
|
108
|
+
in a product, an acknowledgment in the product documentation would be
|
109
|
+
appreciated but is not required.
|
110
|
+
|
111
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
112
|
+
misrepresented as being the original software.
|
113
|
+
|
114
|
+
3. This notice may not be removed or altered from any source
|
115
|
+
distribution.
|
data/lib/libraylib.dll
CHANGED
Binary file
|
data/lib/libraylib.dylib
CHANGED
Binary file
|
data/lib/physac.dll
CHANGED
Binary file
|
data/lib/physac.dylib
CHANGED
Binary file
|