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