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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92d82d1bbcaa58cd9b78af0af353abfbc6954c3fb61510d8cebb2614cd57b3b9
4
- data.tar.gz: 57d9a2e8ee59fd5734680e59300eb16d2e008063a71cd2cb4a7df36ac16e9972
3
+ metadata.gz: f265f2bb3b641937a614df8d8e98be0fba842b114f1679edd40c455341231d20
4
+ data.tar.gz: b8e08199f775b11a269ca3e15fefefd5e5914cf4d01c52666120b8f627f0ab04
5
5
  SHA512:
6
- metadata.gz: da1c9898a4e51506551d7f744468f188e03503975e770976ee6ed482f7a51c5d63f582d9861e39798b7bb53d867b98c69cbee7dcce6698a55a2a961616a39329
7
- data.tar.gz: 4cba3315aca0485339dafe413d1769fe885a3fb6431e54e003f7a3737ea048dbbe5235116583690ebd6af918e5ffcd1562b9c4ee3a99a280f82cbe024202ac41
6
+ metadata.gz: cdba348025d42f7c2bfaaea76dddddf08cc77f7696c3c87695e779b467cdcbb892c02d6a3e4bebd97b381f565f40fb629e9c5faa01f8b209634de82f58e41811
7
+ data.tar.gz: f80d020a1d7ad6e1843ae2ed8b3b6898f9a00795c6d4410dbe8ee0a9e9d00586a53c3321cd038d82e4b6f4a6471968c906440db3aa9108a6de49a01d137383d6
data/ChangeLog CHANGED
@@ -1,145 +1,153 @@
1
- 2022-01-08 vaiorabbit <http://twitter.com/vaiorabbit>
2
-
3
- * examples/raylib_opengl_interop.rb: Use opengl-bindings2
4
- * Pulled latest raylib ( https://github.com/raysan5/raylib/commit/549ca669aa42462662a610ff240aa4d5736240e5 ) and raygui ( https://github.com/raysan5/raygui/commit/c7eb9268535298ee25be90739c86d1be215f53e5 )
5
-
6
- 2022-01-01 vaiorabbit <http://twitter.com/vaiorabbit>
7
-
8
- * raylib-bindings.gemspec: Bump version
9
-
10
- 2021-12-30 vaiorabbit <http://twitter.com/vaiorabbit>
11
-
12
- * BoundingBox.create (lib/raylib.rb): Fixed wrong implementation
13
-
14
- 2021-12-29 vaiorabbit <http://twitter.com/vaiorabbit>
15
-
16
- * examples/procedural_texture.rb: Added
17
-
18
- 2021-12-26 vaiorabbit <http://twitter.com/vaiorabbit>
19
-
20
- * examples/shaders_raymarching.rb: Added
21
-
22
- 2021-12-24 vaiorabbit <http://twitter.com/vaiorabbit>
23
-
24
- * examples/text_rectangle_bounds.rb: Added
25
-
26
- 2021-12-20 vaiorabbit <http://twitter.com/vaiorabbit>
27
-
28
- * examples/text_draw_3d.rb: Added
29
-
30
- 2021-12-19 vaiorabbit <http://twitter.com/vaiorabbit>
31
-
32
- * examples/models_mesh_picking.rb: Added
33
- * examples/text_font_filters.rb: Added
34
- * examples/utf8_font.rb: Modified to use texture filter
35
- * examples/textures_mouse_painting.rb: Added
36
-
37
- 2021-12-18 vaiorabbit <http://twitter.com/vaiorabbit>
38
-
39
- * examples/models_mesh_generation.rb: Added
40
- * examples/utf8_font.rb: Added another font
41
- * examples/core_3d_split_screen.rb: Added
42
- * examples/core_world_screen.rb: Added
43
- * examples/models_yaw_pitch_roll.rb: Added
44
-
45
- 2021-12-16 vaiorabbit <http://twitter.com/vaiorabbit>
46
-
47
- * raylib_parser.py: Typo
48
- * Python cindex reports va_list as int on macOS
49
- * examples/models_loading_gltf.rb: Added
50
-
51
- 2021-12-15 vaiorabbit <http://twitter.com/vaiorabbit>
52
-
53
- * Pulled latest raylib ( https://github.com/raysan5/raylib/commit/0454acaacfaae4a3269d443d3d88045240f738c3 )
54
- * Added generator scripts for Windows
55
-
56
- 2021-11-14 vaiorabbit <http://twitter.com/vaiorabbit>
57
-
58
- * examples/core_storage_values.rb: Added
59
-
60
- 2021-11-13 vaiorabbit <http://twitter.com/vaiorabbit>
61
-
62
- * examples/core_drop_files.rb: Added
63
-
64
- 2021-11-09 vaiorabbit <http://twitter.com/vaiorabbit>
65
-
66
- * examples/models_first_person_maze.rb: Added
67
-
68
- 2021-11-08 vaiorabbit <http://twitter.com/vaiorabbit>
69
-
70
- * examples/raylib_opengl_interop.rb: Added
71
- * examples/models_geometric_shapes.rb: Added
72
-
73
- 2021-11-07 vaiorabbit <http://twitter.com/vaiorabbit>
74
-
75
- * examples/rlgl_compute_shader.rb: Added
76
- * examples/models_billboard.rb: Added
77
-
78
- 2021-11-06 vaiorabbit <http://twitter.com/vaiorabbit>
79
-
80
- * examples/physics_demo.rb: Added
81
- * examples/textures_background_scrolling.rb: Added
82
- * Added dll build scripts for Windows
83
-
84
- 2021-11-05 vaiorabbit <http://twitter.com/vaiorabbit>
85
-
86
- * examples/models_box_collisions.rb: Added
87
- * Added physac wrapper and wrapper generator
88
- * Pulled latest raylib ( https://github.com/raysan5/raylib/commit/2021f09db4df72aea9f963666435bddf0718df94 )
89
-
90
- 2021-11-04 vaiorabbit <http://twitter.com/vaiorabbit>
91
-
92
- * Bugfix: Generate correct signatures for raymath and rlgl
93
- * Pulled latest raylib ( https://github.com/raysan5/raylib/commit/d18f3fca30858916546908e40cc2e0cea2be03ca )
94
- * Bugfix: Fixed wrong signature in raymath.rb
95
- * examples/audio_sound_loading.rb: Added
96
- * examples/audio_music_stream.rb: Added
97
-
98
- 2021-11-03 vaiorabbit <http://twitter.com/vaiorabbit>
99
-
100
- * Added raygui wrapper and wrapper generator
101
- * examples/shapes_draw_circle_sector.rb: Added
102
-
103
- 2021-10-31 vaiorabbit <http://twitter.com/vaiorabbit>
104
-
105
- * examples/text_unicode.rb: Added
106
- * examples/textures_bunnymark.rb: Added
107
-
108
- 2021-10-28 vaiorabbit <http://twitter.com/vaiorabbit>
109
-
110
- * examples/core_loading_thread.rb: Added
111
- * examples/bitmap_font.rb and font/VP16Font_XNA.png: Added
112
-
113
- 2021-10-27 vaiorabbit <http://twitter.com/vaiorabbit>
114
-
115
- * examples/models_waving_cubes.rb: Added
116
-
117
- 2021-10-26 vaiorabbit <http://twitter.com/vaiorabbit>
118
-
119
- * examples/models_rlgl_solar_system.rb: Added
120
- * Bugfix: DEG2RAD and RAD2DEG duplication
121
- * examples/models_cubicmap.rb: Added
122
-
123
- 2021-10-25 vaiorabbit <http://twitter.com/vaiorabbit>
124
-
125
- * examples/utf8_font.rb: Added
126
-
127
- 2021-10-24 vaiorabbit <http://twitter.com/vaiorabbit>
128
-
129
- * generator: Add ".by_value" to struct arguments
130
- * generator: Add struct alias hook
131
- * examples: Added
132
- * examples/shapes_basic_shapes.rb: Added
133
- * generator: Now correctly handles variable-length arguments (TextFormat and TraceLog)
134
- * Added helper functions (Color.from_u8, Vector2.create, etc.)
135
- * examples/core_3d_camera_first_person.rb: Added
136
- * generator: Now correctly handles return values
137
- * Bugfix: Removed duplicated enums / Names of some structs must start with capital letter
138
-
139
- 2021-10-23 vaiorabbit <http://twitter.com/vaiorabbit>
140
-
141
- * Experimental raylib header parser
142
-
143
- 2021-10-17 vaiorabbit <http://twitter.com/vaiorabbit>
144
-
145
- * initial commit
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-08
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
Binary file
data/lib/physac.dll CHANGED
Binary file
data/lib/physac.dylib CHANGED
Binary file