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