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