raylib-bindings 0.0.3 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog +42 -0
- data/README.md +54 -21
- 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/raygui.dll +0 -0
- data/lib/raygui.dylib +0 -0
- data/lib/raygui.rb +282 -28
- data/lib/raylib_main.rb +35 -8
- data/lib/raymath.rb +42 -3
- data/lib/rlgl.rb +11 -1
- metadata +3 -5
- 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: 959d637071b9cde5aec418da6045dd8a00ac36b542995b6a18751b6376cbe2ad
|
|
4
|
+
data.tar.gz: fc62dbe98a4b9f0deaa7b1159e40ec4589b3d51d1b8fe7bf2ecb0dcc5f68dea7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0034c42202ca7c5fd468180941bfb89006791c2a945b7c789bcdc07dd8e943ff83b1ee7116220f5d157637c4029ef8f3a9d47b1999c978eeb1e6cb8d9a5cb289
|
|
7
|
+
data.tar.gz: 95e32d30e46be03eac2659768ce766fd5d422b0aef2cc0438cd8e6500caa86c7a1e8a670e9e315538e0204a3d6c8d31c1496671199d471a4d04a6e6dad23df51
|
data/ChangeLog
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
+
2022-04-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
2
|
+
|
|
3
|
+
* script/rebuild_libs_windows.cmd: Added
|
|
4
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/5c66cc1c9bb4a3ae4af7cc6f82a521137ed5484d ) / Updated submodules appropriately
|
|
5
|
+
* [Windows] Updated DLLs with the latest raylib ( https://github.com/raysan5/raylib/commit/5c66cc1c9bb4a3ae4af7cc6f82a521137ed5484d ) and raygui ( https://github.com/raysan5/raygui/commit/865bb293764073c01e74314ef647464f1f10fd96 )
|
|
6
|
+
* [macOS] Updated DLLs with the latest raylib
|
|
7
|
+
|
|
8
|
+
2022-04-24 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
9
|
+
|
|
10
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/233cf3970c9148c4963cfdea20e49e761104f9de ) and raygui ( https://github.com/raysan5/raygui/commit/865bb293764073c01e74314ef647464f1f10fd96 )
|
|
11
|
+
* examples/models_mesh_picking.rb: Applied changes done by https://github.com/raysan5/raylib/commit/90fc7c0376f39d7b19d632e1d69dec715ec3f2a8
|
|
12
|
+
|
|
13
|
+
2022-02-26 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
14
|
+
|
|
15
|
+
* 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 )
|
|
16
|
+
* Fixed incomplete parsing flow
|
|
17
|
+
|
|
18
|
+
2022-01-20 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
19
|
+
|
|
20
|
+
* examples/core_2d_camera.rb: Added
|
|
21
|
+
* examples/shapes_lines_bezier.rb: Added
|
|
22
|
+
|
|
23
|
+
2022-01-19 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
24
|
+
|
|
25
|
+
* examples/lissajous_curve.rb: Added
|
|
26
|
+
|
|
27
|
+
2022-01-17 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
28
|
+
|
|
29
|
+
* raygui: Revert to https://github.com/raysan5/raygui/commit/7a2964302ada73438092d0ad11e54f9f9590547a (See https://github.com/vaiorabbit/raylib-bindings/issues/2 for details)
|
|
30
|
+
|
|
31
|
+
2022-01-16 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
32
|
+
|
|
33
|
+
* examples/audio_raw_stream.rb: Added
|
|
34
|
+
|
|
35
|
+
2022-01-15 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
36
|
+
|
|
37
|
+
* raylib_dll/build_raylib_macos.sh: Stop copying symbolic links
|
|
38
|
+
|
|
39
|
+
2022-01-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
40
|
+
|
|
41
|
+
* examples/models_animation.rb: Added
|
|
42
|
+
|
|
1
43
|
2022-01-08 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
2
44
|
|
|
3
45
|
* examples/raylib_opengl_interop.rb: Use opengl-bindings2
|
data/README.md
CHANGED
|
@@ -2,10 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
# Yet another raylib wrapper for Ruby #
|
|
4
4
|
|
|
5
|
-
Provides latest [raylib](https://github.com/raysan5/raylib) API for Ruby
|
|
6
|
-
|
|
7
5
|
* Created : 2021-10-17
|
|
8
|
-
* Last modified : 2022-
|
|
6
|
+
* Last modified : 2022-04-29
|
|
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)
|
|
9
16
|
|
|
10
17
|
## Features ##
|
|
11
18
|
|
|
@@ -15,12 +22,38 @@ Provides latest [raylib](https://github.com/raysan5/raylib) API for Ruby
|
|
|
15
22
|
|
|
16
23
|
## Prerequisites ##
|
|
17
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
|
+
|
|
18
50
|
* Ruby interpreter
|
|
19
51
|
* Tested on:
|
|
20
52
|
* [macOS]
|
|
21
53
|
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
|
22
54
|
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
|
23
55
|
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
|
56
|
+
* ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
|
|
24
57
|
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
|
25
58
|
|
|
26
59
|
* Compiler
|
|
@@ -34,9 +67,9 @@ Provides latest [raylib](https://github.com/raysan5/raylib) API for Ruby
|
|
|
34
67
|
|
|
35
68
|
* [Windows] gcc
|
|
36
69
|
|
|
37
|
-
gcc (
|
|
70
|
+
gcc (Rev9, Built by MSYS2 project) 11.2.0
|
|
38
71
|
|
|
39
|
-
|
|
72
|
+
</details>
|
|
40
73
|
|
|
41
74
|
## Limitation ##
|
|
42
75
|
|
|
@@ -59,24 +92,24 @@ Shared libraries in `lib` directory are built on top of these products and are a
|
|
|
59
92
|
|
|
60
93
|
All ruby codes here are available under the terms of the zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
|
61
94
|
|
|
62
|
-
Ruby-raylib : Yet another raylib wrapper for Ruby
|
|
63
|
-
Copyright (c) 2021-2022 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
95
|
+
Ruby-raylib : Yet another raylib wrapper for Ruby
|
|
96
|
+
Copyright (c) 2021-2022 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
64
97
|
|
|
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.
|
|
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.
|
|
68
101
|
|
|
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:
|
|
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:
|
|
72
105
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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.
|
|
77
110
|
|
|
78
|
-
|
|
79
|
-
|
|
111
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
112
|
+
misrepresented as being the original software.
|
|
80
113
|
|
|
81
|
-
|
|
82
|
-
|
|
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
ADDED
|
Binary file
|
data/lib/physac.dll
CHANGED
|
Binary file
|
data/lib/physac.dylib
CHANGED
|
Binary file
|
data/lib/raygui.dll
CHANGED
|
Binary file
|
data/lib/raygui.dylib
CHANGED
|
Binary file
|
data/lib/raygui.rb
CHANGED
|
@@ -10,7 +10,9 @@ module Raylib
|
|
|
10
10
|
extend FFI::Library
|
|
11
11
|
# Define/Macro
|
|
12
12
|
|
|
13
|
-
RAYGUI_VERSION = "3.
|
|
13
|
+
RAYGUI_VERSION = "3.2-dev"
|
|
14
|
+
SCROLLBAR_LEFT_SIDE = 0
|
|
15
|
+
SCROLLBAR_RIGHT_SIDE = 1
|
|
14
16
|
|
|
15
17
|
# Enum
|
|
16
18
|
|
|
@@ -61,27 +63,23 @@ module Raylib
|
|
|
61
63
|
SLIDER_WIDTH = 16
|
|
62
64
|
SLIDER_PADDING = 17
|
|
63
65
|
PROGRESS_PADDING = 16
|
|
64
|
-
CHECK_PADDING = 16
|
|
65
|
-
COMBO_BUTTON_WIDTH = 16
|
|
66
|
-
COMBO_BUTTON_PADDING = 17
|
|
67
|
-
ARROW_PADDING = 16
|
|
68
|
-
DROPDOWN_ITEMS_PADDING = 17
|
|
69
|
-
TEXT_INNER_PADDING = 16
|
|
70
|
-
TEXT_LINES_PADDING = 17
|
|
71
|
-
COLOR_SELECTED_FG = 18
|
|
72
|
-
COLOR_SELECTED_BG = 19
|
|
73
|
-
SPIN_BUTTON_WIDTH = 16
|
|
74
|
-
SPIN_BUTTON_PADDING = 17
|
|
75
66
|
ARROWS_SIZE = 16
|
|
76
67
|
ARROWS_VISIBLE = 17
|
|
77
68
|
SCROLL_SLIDER_PADDING = 18
|
|
78
69
|
SCROLL_SLIDER_SIZE = 19
|
|
79
70
|
SCROLL_PADDING = 20
|
|
80
71
|
SCROLL_SPEED = 21
|
|
81
|
-
|
|
82
|
-
|
|
72
|
+
CHECK_PADDING = 16
|
|
73
|
+
COMBO_BUTTON_WIDTH = 16
|
|
74
|
+
COMBO_BUTTON_SPACING = 17
|
|
75
|
+
ARROW_PADDING = 16
|
|
76
|
+
DROPDOWN_ITEMS_SPACING = 17
|
|
77
|
+
TEXT_INNER_PADDING = 16
|
|
78
|
+
TEXT_LINES_SPACING = 17
|
|
79
|
+
SPIN_BUTTON_WIDTH = 16
|
|
80
|
+
SPIN_BUTTON_SPACING = 17
|
|
83
81
|
LIST_ITEMS_HEIGHT = 16
|
|
84
|
-
|
|
82
|
+
LIST_ITEMS_SPACING = 17
|
|
85
83
|
SCROLLBAR_WIDTH = 18
|
|
86
84
|
SCROLLBAR_SIDE = 19
|
|
87
85
|
COLOR_SELECTOR_SIZE = 16
|
|
@@ -89,6 +87,262 @@ module Raylib
|
|
|
89
87
|
HUEBAR_PADDING = 18
|
|
90
88
|
HUEBAR_SELECTOR_HEIGHT = 19
|
|
91
89
|
HUEBAR_SELECTOR_OVERFLOW = 20
|
|
90
|
+
RAYGUI_ICON_NONE = 0
|
|
91
|
+
RAYGUI_ICON_FOLDER_FILE_OPEN = 1
|
|
92
|
+
RAYGUI_ICON_FILE_SAVE_CLASSIC = 2
|
|
93
|
+
RAYGUI_ICON_FOLDER_OPEN = 3
|
|
94
|
+
RAYGUI_ICON_FOLDER_SAVE = 4
|
|
95
|
+
RAYGUI_ICON_FILE_OPEN = 5
|
|
96
|
+
RAYGUI_ICON_FILE_SAVE = 6
|
|
97
|
+
RAYGUI_ICON_FILE_EXPORT = 7
|
|
98
|
+
RAYGUI_ICON_FILE_ADD = 8
|
|
99
|
+
RAYGUI_ICON_FILE_DELETE = 9
|
|
100
|
+
RAYGUI_ICON_FILETYPE_TEXT = 10
|
|
101
|
+
RAYGUI_ICON_FILETYPE_AUDIO = 11
|
|
102
|
+
RAYGUI_ICON_FILETYPE_IMAGE = 12
|
|
103
|
+
RAYGUI_ICON_FILETYPE_PLAY = 13
|
|
104
|
+
RAYGUI_ICON_FILETYPE_VIDEO = 14
|
|
105
|
+
RAYGUI_ICON_FILETYPE_INFO = 15
|
|
106
|
+
RAYGUI_ICON_FILE_COPY = 16
|
|
107
|
+
RAYGUI_ICON_FILE_CUT = 17
|
|
108
|
+
RAYGUI_ICON_FILE_PASTE = 18
|
|
109
|
+
RAYGUI_ICON_CURSOR_HAND = 19
|
|
110
|
+
RAYGUI_ICON_CURSOR_POINTER = 20
|
|
111
|
+
RAYGUI_ICON_CURSOR_CLASSIC = 21
|
|
112
|
+
RAYGUI_ICON_PENCIL = 22
|
|
113
|
+
RAYGUI_ICON_PENCIL_BIG = 23
|
|
114
|
+
RAYGUI_ICON_BRUSH_CLASSIC = 24
|
|
115
|
+
RAYGUI_ICON_BRUSH_PAINTER = 25
|
|
116
|
+
RAYGUI_ICON_WATER_DROP = 26
|
|
117
|
+
RAYGUI_ICON_COLOR_PICKER = 27
|
|
118
|
+
RAYGUI_ICON_RUBBER = 28
|
|
119
|
+
RAYGUI_ICON_COLOR_BUCKET = 29
|
|
120
|
+
RAYGUI_ICON_TEXT_T = 30
|
|
121
|
+
RAYGUI_ICON_TEXT_A = 31
|
|
122
|
+
RAYGUI_ICON_SCALE = 32
|
|
123
|
+
RAYGUI_ICON_RESIZE = 33
|
|
124
|
+
RAYGUI_ICON_FILTER_POINT = 34
|
|
125
|
+
RAYGUI_ICON_FILTER_BILINEAR = 35
|
|
126
|
+
RAYGUI_ICON_CROP = 36
|
|
127
|
+
RAYGUI_ICON_CROP_ALPHA = 37
|
|
128
|
+
RAYGUI_ICON_SQUARE_TOGGLE = 38
|
|
129
|
+
RAYGUI_ICON_SYMMETRY = 39
|
|
130
|
+
RAYGUI_ICON_SYMMETRY_HORIZONTAL = 40
|
|
131
|
+
RAYGUI_ICON_SYMMETRY_VERTICAL = 41
|
|
132
|
+
RAYGUI_ICON_LENS = 42
|
|
133
|
+
RAYGUI_ICON_LENS_BIG = 43
|
|
134
|
+
RAYGUI_ICON_EYE_ON = 44
|
|
135
|
+
RAYGUI_ICON_EYE_OFF = 45
|
|
136
|
+
RAYGUI_ICON_FILTER_TOP = 46
|
|
137
|
+
RAYGUI_ICON_FILTER = 47
|
|
138
|
+
RAYGUI_ICON_TARGET_POINT = 48
|
|
139
|
+
RAYGUI_ICON_TARGET_SMALL = 49
|
|
140
|
+
RAYGUI_ICON_TARGET_BIG = 50
|
|
141
|
+
RAYGUI_ICON_TARGET_MOVE = 51
|
|
142
|
+
RAYGUI_ICON_CURSOR_MOVE = 52
|
|
143
|
+
RAYGUI_ICON_CURSOR_SCALE = 53
|
|
144
|
+
RAYGUI_ICON_CURSOR_SCALE_RIGHT = 54
|
|
145
|
+
RAYGUI_ICON_CURSOR_SCALE_LEFT = 55
|
|
146
|
+
RAYGUI_ICON_UNDO = 56
|
|
147
|
+
RAYGUI_ICON_REDO = 57
|
|
148
|
+
RAYGUI_ICON_REREDO = 58
|
|
149
|
+
RAYGUI_ICON_MUTATE = 59
|
|
150
|
+
RAYGUI_ICON_ROTATE = 60
|
|
151
|
+
RAYGUI_ICON_REPEAT = 61
|
|
152
|
+
RAYGUI_ICON_SHUFFLE = 62
|
|
153
|
+
RAYGUI_ICON_EMPTYBOX = 63
|
|
154
|
+
RAYGUI_ICON_TARGET = 64
|
|
155
|
+
RAYGUI_ICON_TARGET_SMALL_FILL = 65
|
|
156
|
+
RAYGUI_ICON_TARGET_BIG_FILL = 66
|
|
157
|
+
RAYGUI_ICON_TARGET_MOVE_FILL = 67
|
|
158
|
+
RAYGUI_ICON_CURSOR_MOVE_FILL = 68
|
|
159
|
+
RAYGUI_ICON_CURSOR_SCALE_FILL = 69
|
|
160
|
+
RAYGUI_ICON_CURSOR_SCALE_RIGHT_FILL = 70
|
|
161
|
+
RAYGUI_ICON_CURSOR_SCALE_LEFT_FILL = 71
|
|
162
|
+
RAYGUI_ICON_UNDO_FILL = 72
|
|
163
|
+
RAYGUI_ICON_REDO_FILL = 73
|
|
164
|
+
RAYGUI_ICON_REREDO_FILL = 74
|
|
165
|
+
RAYGUI_ICON_MUTATE_FILL = 75
|
|
166
|
+
RAYGUI_ICON_ROTATE_FILL = 76
|
|
167
|
+
RAYGUI_ICON_REPEAT_FILL = 77
|
|
168
|
+
RAYGUI_ICON_SHUFFLE_FILL = 78
|
|
169
|
+
RAYGUI_ICON_EMPTYBOX_SMALL = 79
|
|
170
|
+
RAYGUI_ICON_BOX = 80
|
|
171
|
+
RAYGUI_ICON_BOX_TOP = 81
|
|
172
|
+
RAYGUI_ICON_BOX_TOP_RIGHT = 82
|
|
173
|
+
RAYGUI_ICON_BOX_RIGHT = 83
|
|
174
|
+
RAYGUI_ICON_BOX_BOTTOM_RIGHT = 84
|
|
175
|
+
RAYGUI_ICON_BOX_BOTTOM = 85
|
|
176
|
+
RAYGUI_ICON_BOX_BOTTOM_LEFT = 86
|
|
177
|
+
RAYGUI_ICON_BOX_LEFT = 87
|
|
178
|
+
RAYGUI_ICON_BOX_TOP_LEFT = 88
|
|
179
|
+
RAYGUI_ICON_BOX_CENTER = 89
|
|
180
|
+
RAYGUI_ICON_BOX_CIRCLE_MASK = 90
|
|
181
|
+
RAYGUI_ICON_POT = 91
|
|
182
|
+
RAYGUI_ICON_ALPHA_MULTIPLY = 92
|
|
183
|
+
RAYGUI_ICON_ALPHA_CLEAR = 93
|
|
184
|
+
RAYGUI_ICON_DITHERING = 94
|
|
185
|
+
RAYGUI_ICON_MIPMAPS = 95
|
|
186
|
+
RAYGUI_ICON_BOX_GRID = 96
|
|
187
|
+
RAYGUI_ICON_GRID = 97
|
|
188
|
+
RAYGUI_ICON_BOX_CORNERS_SMALL = 98
|
|
189
|
+
RAYGUI_ICON_BOX_CORNERS_BIG = 99
|
|
190
|
+
RAYGUI_ICON_FOUR_BOXES = 100
|
|
191
|
+
RAYGUI_ICON_GRID_FILL = 101
|
|
192
|
+
RAYGUI_ICON_BOX_MULTISIZE = 102
|
|
193
|
+
RAYGUI_ICON_ZOOM_SMALL = 103
|
|
194
|
+
RAYGUI_ICON_ZOOM_MEDIUM = 104
|
|
195
|
+
RAYGUI_ICON_ZOOM_BIG = 105
|
|
196
|
+
RAYGUI_ICON_ZOOM_ALL = 106
|
|
197
|
+
RAYGUI_ICON_ZOOM_CENTER = 107
|
|
198
|
+
RAYGUI_ICON_BOX_DOTS_SMALL = 108
|
|
199
|
+
RAYGUI_ICON_BOX_DOTS_BIG = 109
|
|
200
|
+
RAYGUI_ICON_BOX_CONCENTRIC = 110
|
|
201
|
+
RAYGUI_ICON_BOX_GRID_BIG = 111
|
|
202
|
+
RAYGUI_ICON_OK_TICK = 112
|
|
203
|
+
RAYGUI_ICON_CROSS = 113
|
|
204
|
+
RAYGUI_ICON_ARROW_LEFT = 114
|
|
205
|
+
RAYGUI_ICON_ARROW_RIGHT = 115
|
|
206
|
+
RAYGUI_ICON_ARROW_DOWN = 116
|
|
207
|
+
RAYGUI_ICON_ARROW_UP = 117
|
|
208
|
+
RAYGUI_ICON_ARROW_LEFT_FILL = 118
|
|
209
|
+
RAYGUI_ICON_ARROW_RIGHT_FILL = 119
|
|
210
|
+
RAYGUI_ICON_ARROW_DOWN_FILL = 120
|
|
211
|
+
RAYGUI_ICON_ARROW_UP_FILL = 121
|
|
212
|
+
RAYGUI_ICON_AUDIO = 122
|
|
213
|
+
RAYGUI_ICON_FX = 123
|
|
214
|
+
RAYGUI_ICON_WAVE = 124
|
|
215
|
+
RAYGUI_ICON_WAVE_SINUS = 125
|
|
216
|
+
RAYGUI_ICON_WAVE_SQUARE = 126
|
|
217
|
+
RAYGUI_ICON_WAVE_TRIANGULAR = 127
|
|
218
|
+
RAYGUI_ICON_CROSS_SMALL = 128
|
|
219
|
+
RAYGUI_ICON_PLAYER_PREVIOUS = 129
|
|
220
|
+
RAYGUI_ICON_PLAYER_PLAY_BACK = 130
|
|
221
|
+
RAYGUI_ICON_PLAYER_PLAY = 131
|
|
222
|
+
RAYGUI_ICON_PLAYER_PAUSE = 132
|
|
223
|
+
RAYGUI_ICON_PLAYER_STOP = 133
|
|
224
|
+
RAYGUI_ICON_PLAYER_NEXT = 134
|
|
225
|
+
RAYGUI_ICON_PLAYER_RECORD = 135
|
|
226
|
+
RAYGUI_ICON_MAGNET = 136
|
|
227
|
+
RAYGUI_ICON_LOCK_CLOSE = 137
|
|
228
|
+
RAYGUI_ICON_LOCK_OPEN = 138
|
|
229
|
+
RAYGUI_ICON_CLOCK = 139
|
|
230
|
+
RAYGUI_ICON_TOOLS = 140
|
|
231
|
+
RAYGUI_ICON_GEAR = 141
|
|
232
|
+
RAYGUI_ICON_GEAR_BIG = 142
|
|
233
|
+
RAYGUI_ICON_BIN = 143
|
|
234
|
+
RAYGUI_ICON_HAND_POINTER = 144
|
|
235
|
+
RAYGUI_ICON_LASER = 145
|
|
236
|
+
RAYGUI_ICON_COIN = 146
|
|
237
|
+
RAYGUI_ICON_EXPLOSION = 147
|
|
238
|
+
RAYGUI_ICON_1UP = 148
|
|
239
|
+
RAYGUI_ICON_PLAYER = 149
|
|
240
|
+
RAYGUI_ICON_PLAYER_JUMP = 150
|
|
241
|
+
RAYGUI_ICON_KEY = 151
|
|
242
|
+
RAYGUI_ICON_DEMON = 152
|
|
243
|
+
RAYGUI_ICON_TEXT_POPUP = 153
|
|
244
|
+
RAYGUI_ICON_GEAR_EX = 154
|
|
245
|
+
RAYGUI_ICON_CRACK = 155
|
|
246
|
+
RAYGUI_ICON_CRACK_POINTS = 156
|
|
247
|
+
RAYGUI_ICON_STAR = 157
|
|
248
|
+
RAYGUI_ICON_DOOR = 158
|
|
249
|
+
RAYGUI_ICON_EXIT = 159
|
|
250
|
+
RAYGUI_ICON_MODE_2D = 160
|
|
251
|
+
RAYGUI_ICON_MODE_3D = 161
|
|
252
|
+
RAYGUI_ICON_CUBE = 162
|
|
253
|
+
RAYGUI_ICON_CUBE_FACE_TOP = 163
|
|
254
|
+
RAYGUI_ICON_CUBE_FACE_LEFT = 164
|
|
255
|
+
RAYGUI_ICON_CUBE_FACE_FRONT = 165
|
|
256
|
+
RAYGUI_ICON_CUBE_FACE_BOTTOM = 166
|
|
257
|
+
RAYGUI_ICON_CUBE_FACE_RIGHT = 167
|
|
258
|
+
RAYGUI_ICON_CUBE_FACE_BACK = 168
|
|
259
|
+
RAYGUI_ICON_CAMERA = 169
|
|
260
|
+
RAYGUI_ICON_SPECIAL = 170
|
|
261
|
+
RAYGUI_ICON_LINK_NET = 171
|
|
262
|
+
RAYGUI_ICON_LINK_BOXES = 172
|
|
263
|
+
RAYGUI_ICON_LINK_MULTI = 173
|
|
264
|
+
RAYGUI_ICON_LINK = 174
|
|
265
|
+
RAYGUI_ICON_LINK_BROKE = 175
|
|
266
|
+
RAYGUI_ICON_TEXT_NOTES = 176
|
|
267
|
+
RAYGUI_ICON_NOTEBOOK = 177
|
|
268
|
+
RAYGUI_ICON_SUITCASE = 178
|
|
269
|
+
RAYGUI_ICON_SUITCASE_ZIP = 179
|
|
270
|
+
RAYGUI_ICON_MAILBOX = 180
|
|
271
|
+
RAYGUI_ICON_MONITOR = 181
|
|
272
|
+
RAYGUI_ICON_PRINTER = 182
|
|
273
|
+
RAYGUI_ICON_PHOTO_CAMERA = 183
|
|
274
|
+
RAYGUI_ICON_PHOTO_CAMERA_FLASH = 184
|
|
275
|
+
RAYGUI_ICON_HOUSE = 185
|
|
276
|
+
RAYGUI_ICON_HEART = 186
|
|
277
|
+
RAYGUI_ICON_CORNER = 187
|
|
278
|
+
RAYGUI_ICON_VERTICAL_BARS = 188
|
|
279
|
+
RAYGUI_ICON_VERTICAL_BARS_FILL = 189
|
|
280
|
+
RAYGUI_ICON_LIFE_BARS = 190
|
|
281
|
+
RAYGUI_ICON_INFO = 191
|
|
282
|
+
RAYGUI_ICON_CROSSLINE = 192
|
|
283
|
+
RAYGUI_ICON_HELP = 193
|
|
284
|
+
RAYGUI_ICON_FILETYPE_ALPHA = 194
|
|
285
|
+
RAYGUI_ICON_FILETYPE_HOME = 195
|
|
286
|
+
RAYGUI_ICON_LAYERS_VISIBLE = 196
|
|
287
|
+
RAYGUI_ICON_LAYERS = 197
|
|
288
|
+
RAYGUI_ICON_WINDOW = 198
|
|
289
|
+
RAYGUI_ICON_HIDPI = 199
|
|
290
|
+
RAYGUI_ICON_FILETYPE_BINARY = 200
|
|
291
|
+
RAYGUI_ICON_HEX = 201
|
|
292
|
+
RAYGUI_ICON_SHIELD = 202
|
|
293
|
+
RAYGUI_ICON_FILE_NEW = 203
|
|
294
|
+
RAYGUI_ICON_FOLDER_ADD = 204
|
|
295
|
+
RAYGUI_ICON_205 = 205
|
|
296
|
+
RAYGUI_ICON_206 = 206
|
|
297
|
+
RAYGUI_ICON_207 = 207
|
|
298
|
+
RAYGUI_ICON_208 = 208
|
|
299
|
+
RAYGUI_ICON_209 = 209
|
|
300
|
+
RAYGUI_ICON_210 = 210
|
|
301
|
+
RAYGUI_ICON_211 = 211
|
|
302
|
+
RAYGUI_ICON_212 = 212
|
|
303
|
+
RAYGUI_ICON_213 = 213
|
|
304
|
+
RAYGUI_ICON_214 = 214
|
|
305
|
+
RAYGUI_ICON_215 = 215
|
|
306
|
+
RAYGUI_ICON_216 = 216
|
|
307
|
+
RAYGUI_ICON_217 = 217
|
|
308
|
+
RAYGUI_ICON_218 = 218
|
|
309
|
+
RAYGUI_ICON_219 = 219
|
|
310
|
+
RAYGUI_ICON_220 = 220
|
|
311
|
+
RAYGUI_ICON_221 = 221
|
|
312
|
+
RAYGUI_ICON_222 = 222
|
|
313
|
+
RAYGUI_ICON_223 = 223
|
|
314
|
+
RAYGUI_ICON_224 = 224
|
|
315
|
+
RAYGUI_ICON_225 = 225
|
|
316
|
+
RAYGUI_ICON_226 = 226
|
|
317
|
+
RAYGUI_ICON_227 = 227
|
|
318
|
+
RAYGUI_ICON_228 = 228
|
|
319
|
+
RAYGUI_ICON_229 = 229
|
|
320
|
+
RAYGUI_ICON_230 = 230
|
|
321
|
+
RAYGUI_ICON_231 = 231
|
|
322
|
+
RAYGUI_ICON_232 = 232
|
|
323
|
+
RAYGUI_ICON_233 = 233
|
|
324
|
+
RAYGUI_ICON_234 = 234
|
|
325
|
+
RAYGUI_ICON_235 = 235
|
|
326
|
+
RAYGUI_ICON_236 = 236
|
|
327
|
+
RAYGUI_ICON_237 = 237
|
|
328
|
+
RAYGUI_ICON_238 = 238
|
|
329
|
+
RAYGUI_ICON_239 = 239
|
|
330
|
+
RAYGUI_ICON_240 = 240
|
|
331
|
+
RAYGUI_ICON_241 = 241
|
|
332
|
+
RAYGUI_ICON_242 = 242
|
|
333
|
+
RAYGUI_ICON_243 = 243
|
|
334
|
+
RAYGUI_ICON_244 = 244
|
|
335
|
+
RAYGUI_ICON_245 = 245
|
|
336
|
+
RAYGUI_ICON_246 = 246
|
|
337
|
+
RAYGUI_ICON_247 = 247
|
|
338
|
+
RAYGUI_ICON_248 = 248
|
|
339
|
+
RAYGUI_ICON_249 = 249
|
|
340
|
+
RAYGUI_ICON_250 = 250
|
|
341
|
+
RAYGUI_ICON_251 = 251
|
|
342
|
+
RAYGUI_ICON_252 = 252
|
|
343
|
+
RAYGUI_ICON_253 = 253
|
|
344
|
+
RAYGUI_ICON_254 = 254
|
|
345
|
+
RAYGUI_ICON_255 = 255
|
|
92
346
|
|
|
93
347
|
# Typedef
|
|
94
348
|
|
|
@@ -100,15 +354,15 @@ module Raylib
|
|
|
100
354
|
typedef :int, :GuiToggleProperty
|
|
101
355
|
typedef :int, :GuiSliderProperty
|
|
102
356
|
typedef :int, :GuiProgressBarProperty
|
|
357
|
+
typedef :int, :GuiScrollBarProperty
|
|
103
358
|
typedef :int, :GuiCheckBoxProperty
|
|
104
359
|
typedef :int, :GuiComboBoxProperty
|
|
105
360
|
typedef :int, :GuiDropdownBoxProperty
|
|
106
361
|
typedef :int, :GuiTextBoxProperty
|
|
107
362
|
typedef :int, :GuiSpinnerProperty
|
|
108
|
-
typedef :int, :GuiScrollBarProperty
|
|
109
|
-
typedef :int, :GuiScrollBarSide
|
|
110
363
|
typedef :int, :GuiListViewProperty
|
|
111
364
|
typedef :int, :GuiColorPickerProperty
|
|
365
|
+
typedef :int, :guiIconName
|
|
112
366
|
|
|
113
367
|
# Struct
|
|
114
368
|
|
|
@@ -159,7 +413,6 @@ module Raylib
|
|
|
159
413
|
:GuiProgressBar,
|
|
160
414
|
:GuiStatusBar,
|
|
161
415
|
:GuiDummyRec,
|
|
162
|
-
:GuiScrollBar,
|
|
163
416
|
:GuiGrid,
|
|
164
417
|
:GuiListView,
|
|
165
418
|
:GuiListViewEx,
|
|
@@ -176,6 +429,7 @@ module Raylib
|
|
|
176
429
|
:GuiGetIcons,
|
|
177
430
|
:GuiGetIconData,
|
|
178
431
|
:GuiSetIconData,
|
|
432
|
+
:GuiSetIconScale,
|
|
179
433
|
:GuiSetIconPixel,
|
|
180
434
|
:GuiClearIconPixel,
|
|
181
435
|
:GuiCheckIconPixel,
|
|
@@ -196,8 +450,8 @@ module Raylib
|
|
|
196
450
|
:GuiWindowBox => [Rectangle.by_value, :pointer],
|
|
197
451
|
:GuiGroupBox => [Rectangle.by_value, :pointer],
|
|
198
452
|
:GuiLine => [Rectangle.by_value, :pointer],
|
|
199
|
-
:GuiPanel => [Rectangle.by_value],
|
|
200
|
-
:GuiScrollPanel => [Rectangle.by_value, Rectangle.by_value, :pointer],
|
|
453
|
+
:GuiPanel => [Rectangle.by_value, :pointer],
|
|
454
|
+
:GuiScrollPanel => [Rectangle.by_value, :pointer, Rectangle.by_value, :pointer],
|
|
201
455
|
:GuiLabel => [Rectangle.by_value, :pointer],
|
|
202
456
|
:GuiButton => [Rectangle.by_value, :pointer],
|
|
203
457
|
:GuiLabelButton => [Rectangle.by_value, :pointer],
|
|
@@ -215,16 +469,15 @@ module Raylib
|
|
|
215
469
|
:GuiProgressBar => [Rectangle.by_value, :pointer, :pointer, :float, :float, :float],
|
|
216
470
|
:GuiStatusBar => [Rectangle.by_value, :pointer],
|
|
217
471
|
:GuiDummyRec => [Rectangle.by_value, :pointer],
|
|
218
|
-
:
|
|
219
|
-
:GuiGrid => [Rectangle.by_value, :float, :int],
|
|
472
|
+
:GuiGrid => [Rectangle.by_value, :pointer, :float, :int],
|
|
220
473
|
:GuiListView => [Rectangle.by_value, :pointer, :pointer, :int],
|
|
221
474
|
:GuiListViewEx => [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :int],
|
|
222
475
|
:GuiMessageBox => [Rectangle.by_value, :pointer, :pointer, :pointer],
|
|
223
|
-
:GuiTextInputBox => [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer],
|
|
224
|
-
:GuiColorPicker => [Rectangle.by_value, Color.by_value],
|
|
225
|
-
:GuiColorPanel => [Rectangle.by_value, Color.by_value],
|
|
226
|
-
:GuiColorBarAlpha => [Rectangle.by_value, :float],
|
|
227
|
-
:GuiColorBarHue => [Rectangle.by_value, :float],
|
|
476
|
+
:GuiTextInputBox => [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer, :int, :pointer],
|
|
477
|
+
:GuiColorPicker => [Rectangle.by_value, :pointer, Color.by_value],
|
|
478
|
+
:GuiColorPanel => [Rectangle.by_value, :pointer, Color.by_value],
|
|
479
|
+
:GuiColorBarAlpha => [Rectangle.by_value, :pointer, :float],
|
|
480
|
+
:GuiColorBarHue => [Rectangle.by_value, :pointer, :float],
|
|
228
481
|
:GuiLoadStyle => [:pointer],
|
|
229
482
|
:GuiLoadStyleDefault => [],
|
|
230
483
|
:GuiIconText => [:int, :pointer],
|
|
@@ -232,6 +485,7 @@ module Raylib
|
|
|
232
485
|
:GuiGetIcons => [],
|
|
233
486
|
:GuiGetIconData => [:int],
|
|
234
487
|
:GuiSetIconData => [:int, :pointer],
|
|
488
|
+
:GuiSetIconScale => [:uint],
|
|
235
489
|
:GuiSetIconPixel => [:int, :int, :int],
|
|
236
490
|
:GuiClearIconPixel => [:int, :int, :int],
|
|
237
491
|
:GuiCheckIconPixel => [:int, :int, :int],
|
|
@@ -271,7 +525,6 @@ module Raylib
|
|
|
271
525
|
:GuiProgressBar => :float,
|
|
272
526
|
:GuiStatusBar => :void,
|
|
273
527
|
:GuiDummyRec => :void,
|
|
274
|
-
:GuiScrollBar => :int,
|
|
275
528
|
:GuiGrid => Vector2.by_value,
|
|
276
529
|
:GuiListView => :int,
|
|
277
530
|
:GuiListViewEx => :int,
|
|
@@ -288,6 +541,7 @@ module Raylib
|
|
|
288
541
|
:GuiGetIcons => :pointer,
|
|
289
542
|
:GuiGetIconData => :pointer,
|
|
290
543
|
:GuiSetIconData => :void,
|
|
544
|
+
:GuiSetIconScale => :void,
|
|
291
545
|
:GuiSetIconPixel => :void,
|
|
292
546
|
:GuiClearIconPixel => :void,
|
|
293
547
|
:GuiCheckIconPixel => :bool,
|
data/lib/raylib_main.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Raylib
|
|
|
10
10
|
extend FFI::Library
|
|
11
11
|
# Define/Macro
|
|
12
12
|
|
|
13
|
-
RAYLIB_VERSION = "4.
|
|
13
|
+
RAYLIB_VERSION = "4.1-dev"
|
|
14
14
|
DEG2RAD = Math::PI / 180.0
|
|
15
15
|
RAD2DEG = 180.0 / Math::PI
|
|
16
16
|
|
|
@@ -285,7 +285,8 @@ module Raylib
|
|
|
285
285
|
BLEND_MULTIPLIED = 2
|
|
286
286
|
BLEND_ADD_COLORS = 3
|
|
287
287
|
BLEND_SUBTRACT_COLORS = 4
|
|
288
|
-
|
|
288
|
+
BLEND_ALPHA_PREMUL = 5
|
|
289
|
+
BLEND_CUSTOM = 6
|
|
289
290
|
GESTURE_NONE = 0
|
|
290
291
|
GESTURE_TAP = 1
|
|
291
292
|
GESTURE_DOUBLETAP = 2
|
|
@@ -336,6 +337,7 @@ module Raylib
|
|
|
336
337
|
callback :SaveFileDataCallback, [:pointer, :pointer, :uint], :bool
|
|
337
338
|
callback :LoadFileTextCallback, [:pointer], :pointer
|
|
338
339
|
callback :SaveFileTextCallback, [:pointer, :pointer], :bool
|
|
340
|
+
callback :AudioCallback, [:pointer, :uint], :void
|
|
339
341
|
|
|
340
342
|
# Struct
|
|
341
343
|
|
|
@@ -607,6 +609,7 @@ module Raylib
|
|
|
607
609
|
class AudioStream < FFI::Struct
|
|
608
610
|
layout(
|
|
609
611
|
:buffer, :pointer,
|
|
612
|
+
:processor, :pointer,
|
|
610
613
|
:sampleRate, :uint,
|
|
611
614
|
:sampleSize, :uint,
|
|
612
615
|
:channels, :uint,
|
|
@@ -776,12 +779,14 @@ module Raylib
|
|
|
776
779
|
:FileExists,
|
|
777
780
|
:DirectoryExists,
|
|
778
781
|
:IsFileExtension,
|
|
782
|
+
:GetFileLength,
|
|
779
783
|
:GetFileExtension,
|
|
780
784
|
:GetFileName,
|
|
781
785
|
:GetFileNameWithoutExt,
|
|
782
786
|
:GetDirectoryPath,
|
|
783
787
|
:GetPrevDirectoryPath,
|
|
784
788
|
:GetWorkingDirectory,
|
|
789
|
+
:GetApplicationDirectory,
|
|
785
790
|
:GetDirectoryFiles,
|
|
786
791
|
:ClearDirectoryFiles,
|
|
787
792
|
:ChangeDirectory,
|
|
@@ -1001,6 +1006,7 @@ module Raylib
|
|
|
1001
1006
|
:DrawTextEx,
|
|
1002
1007
|
:DrawTextPro,
|
|
1003
1008
|
:DrawTextCodepoint,
|
|
1009
|
+
:DrawTextCodepoints,
|
|
1004
1010
|
:MeasureText,
|
|
1005
1011
|
:MeasureTextEx,
|
|
1006
1012
|
:GetGlyphIndex,
|
|
@@ -1096,7 +1102,6 @@ module Raylib
|
|
|
1096
1102
|
:CheckCollisionBoxSphere,
|
|
1097
1103
|
:GetRayCollisionSphere,
|
|
1098
1104
|
:GetRayCollisionBox,
|
|
1099
|
-
:GetRayCollisionModel,
|
|
1100
1105
|
:GetRayCollisionMesh,
|
|
1101
1106
|
:GetRayCollisionTriangle,
|
|
1102
1107
|
:GetRayCollisionQuad,
|
|
@@ -1123,9 +1128,10 @@ module Raylib
|
|
|
1123
1128
|
:IsSoundPlaying,
|
|
1124
1129
|
:SetSoundVolume,
|
|
1125
1130
|
:SetSoundPitch,
|
|
1126
|
-
:
|
|
1131
|
+
:SetSoundPan,
|
|
1127
1132
|
:WaveCopy,
|
|
1128
1133
|
:WaveCrop,
|
|
1134
|
+
:WaveFormat,
|
|
1129
1135
|
:LoadWaveSamples,
|
|
1130
1136
|
:UnloadWaveSamples,
|
|
1131
1137
|
:LoadMusicStream,
|
|
@@ -1140,6 +1146,7 @@ module Raylib
|
|
|
1140
1146
|
:SeekMusicStream,
|
|
1141
1147
|
:SetMusicVolume,
|
|
1142
1148
|
:SetMusicPitch,
|
|
1149
|
+
:SetMusicPan,
|
|
1143
1150
|
:GetMusicTimeLength,
|
|
1144
1151
|
:GetMusicTimePlayed,
|
|
1145
1152
|
:LoadAudioStream,
|
|
@@ -1153,7 +1160,11 @@ module Raylib
|
|
|
1153
1160
|
:StopAudioStream,
|
|
1154
1161
|
:SetAudioStreamVolume,
|
|
1155
1162
|
:SetAudioStreamPitch,
|
|
1163
|
+
:SetAudioStreamPan,
|
|
1156
1164
|
:SetAudioStreamBufferSizeDefault,
|
|
1165
|
+
:SetAudioStreamCallback,
|
|
1166
|
+
:AttachAudioStreamProcessor,
|
|
1167
|
+
:DetachAudioStreamProcessor,
|
|
1157
1168
|
]
|
|
1158
1169
|
args = {
|
|
1159
1170
|
:InitWindow => [:int, :int, :pointer],
|
|
@@ -1269,12 +1280,14 @@ module Raylib
|
|
|
1269
1280
|
:FileExists => [:pointer],
|
|
1270
1281
|
:DirectoryExists => [:pointer],
|
|
1271
1282
|
:IsFileExtension => [:pointer, :pointer],
|
|
1283
|
+
:GetFileLength => [:pointer],
|
|
1272
1284
|
:GetFileExtension => [:pointer],
|
|
1273
1285
|
:GetFileName => [:pointer],
|
|
1274
1286
|
:GetFileNameWithoutExt => [:pointer],
|
|
1275
1287
|
:GetDirectoryPath => [:pointer],
|
|
1276
1288
|
:GetPrevDirectoryPath => [:pointer],
|
|
1277
1289
|
:GetWorkingDirectory => [],
|
|
1290
|
+
:GetApplicationDirectory => [],
|
|
1278
1291
|
:GetDirectoryFiles => [:pointer, :pointer],
|
|
1279
1292
|
:ClearDirectoryFiles => [],
|
|
1280
1293
|
:ChangeDirectory => [:pointer],
|
|
@@ -1494,6 +1507,7 @@ module Raylib
|
|
|
1494
1507
|
:DrawTextEx => [Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value],
|
|
1495
1508
|
:DrawTextPro => [Font.by_value, :pointer, Vector2.by_value, Vector2.by_value, :float, :float, :float, Color.by_value],
|
|
1496
1509
|
:DrawTextCodepoint => [Font.by_value, :int, Vector2.by_value, :float, Color.by_value],
|
|
1510
|
+
:DrawTextCodepoints => [Font.by_value, :pointer, :int, Vector2.by_value, :float, :float, Color.by_value],
|
|
1497
1511
|
:MeasureText => [:pointer, :int],
|
|
1498
1512
|
:MeasureTextEx => [Font.by_value, :pointer, :float, :float],
|
|
1499
1513
|
:GetGlyphIndex => [Font.by_value, :int],
|
|
@@ -1589,7 +1603,6 @@ module Raylib
|
|
|
1589
1603
|
:CheckCollisionBoxSphere => [BoundingBox.by_value, Vector3.by_value, :float],
|
|
1590
1604
|
:GetRayCollisionSphere => [Ray.by_value, Vector3.by_value, :float],
|
|
1591
1605
|
:GetRayCollisionBox => [Ray.by_value, BoundingBox.by_value],
|
|
1592
|
-
:GetRayCollisionModel => [Ray.by_value, Model.by_value],
|
|
1593
1606
|
:GetRayCollisionMesh => [Ray.by_value, Mesh.by_value, Matrix.by_value],
|
|
1594
1607
|
:GetRayCollisionTriangle => [Ray.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value],
|
|
1595
1608
|
:GetRayCollisionQuad => [Ray.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value],
|
|
@@ -1616,9 +1629,10 @@ module Raylib
|
|
|
1616
1629
|
:IsSoundPlaying => [Sound.by_value],
|
|
1617
1630
|
:SetSoundVolume => [Sound.by_value, :float],
|
|
1618
1631
|
:SetSoundPitch => [Sound.by_value, :float],
|
|
1619
|
-
:
|
|
1632
|
+
:SetSoundPan => [Sound.by_value, :float],
|
|
1620
1633
|
:WaveCopy => [Wave.by_value],
|
|
1621
1634
|
:WaveCrop => [:pointer, :int, :int],
|
|
1635
|
+
:WaveFormat => [:pointer, :int, :int, :int],
|
|
1622
1636
|
:LoadWaveSamples => [Wave.by_value],
|
|
1623
1637
|
:UnloadWaveSamples => [:pointer],
|
|
1624
1638
|
:LoadMusicStream => [:pointer],
|
|
@@ -1633,6 +1647,7 @@ module Raylib
|
|
|
1633
1647
|
:SeekMusicStream => [Music.by_value, :float],
|
|
1634
1648
|
:SetMusicVolume => [Music.by_value, :float],
|
|
1635
1649
|
:SetMusicPitch => [Music.by_value, :float],
|
|
1650
|
+
:SetMusicPan => [Music.by_value, :float],
|
|
1636
1651
|
:GetMusicTimeLength => [Music.by_value],
|
|
1637
1652
|
:GetMusicTimePlayed => [Music.by_value],
|
|
1638
1653
|
:LoadAudioStream => [:uint, :uint, :uint],
|
|
@@ -1646,7 +1661,11 @@ module Raylib
|
|
|
1646
1661
|
:StopAudioStream => [AudioStream.by_value],
|
|
1647
1662
|
:SetAudioStreamVolume => [AudioStream.by_value, :float],
|
|
1648
1663
|
:SetAudioStreamPitch => [AudioStream.by_value, :float],
|
|
1664
|
+
:SetAudioStreamPan => [AudioStream.by_value, :float],
|
|
1649
1665
|
:SetAudioStreamBufferSizeDefault => [:int],
|
|
1666
|
+
:SetAudioStreamCallback => [AudioStream.by_value, :AudioCallback],
|
|
1667
|
+
:AttachAudioStreamProcessor => [AudioStream.by_value, :AudioCallback],
|
|
1668
|
+
:DetachAudioStreamProcessor => [AudioStream.by_value, :AudioCallback],
|
|
1650
1669
|
}
|
|
1651
1670
|
retvals = {
|
|
1652
1671
|
:InitWindow => :void,
|
|
@@ -1762,12 +1781,14 @@ module Raylib
|
|
|
1762
1781
|
:FileExists => :bool,
|
|
1763
1782
|
:DirectoryExists => :bool,
|
|
1764
1783
|
:IsFileExtension => :bool,
|
|
1784
|
+
:GetFileLength => :int,
|
|
1765
1785
|
:GetFileExtension => :pointer,
|
|
1766
1786
|
:GetFileName => :pointer,
|
|
1767
1787
|
:GetFileNameWithoutExt => :pointer,
|
|
1768
1788
|
:GetDirectoryPath => :pointer,
|
|
1769
1789
|
:GetPrevDirectoryPath => :pointer,
|
|
1770
1790
|
:GetWorkingDirectory => :pointer,
|
|
1791
|
+
:GetApplicationDirectory => :pointer,
|
|
1771
1792
|
:GetDirectoryFiles => :pointer,
|
|
1772
1793
|
:ClearDirectoryFiles => :void,
|
|
1773
1794
|
:ChangeDirectory => :bool,
|
|
@@ -1987,6 +2008,7 @@ module Raylib
|
|
|
1987
2008
|
:DrawTextEx => :void,
|
|
1988
2009
|
:DrawTextPro => :void,
|
|
1989
2010
|
:DrawTextCodepoint => :void,
|
|
2011
|
+
:DrawTextCodepoints => :void,
|
|
1990
2012
|
:MeasureText => :int,
|
|
1991
2013
|
:MeasureTextEx => Vector2.by_value,
|
|
1992
2014
|
:GetGlyphIndex => :int,
|
|
@@ -2082,7 +2104,6 @@ module Raylib
|
|
|
2082
2104
|
:CheckCollisionBoxSphere => :bool,
|
|
2083
2105
|
:GetRayCollisionSphere => RayCollision.by_value,
|
|
2084
2106
|
:GetRayCollisionBox => RayCollision.by_value,
|
|
2085
|
-
:GetRayCollisionModel => RayCollision.by_value,
|
|
2086
2107
|
:GetRayCollisionMesh => RayCollision.by_value,
|
|
2087
2108
|
:GetRayCollisionTriangle => RayCollision.by_value,
|
|
2088
2109
|
:GetRayCollisionQuad => RayCollision.by_value,
|
|
@@ -2109,9 +2130,10 @@ module Raylib
|
|
|
2109
2130
|
:IsSoundPlaying => :bool,
|
|
2110
2131
|
:SetSoundVolume => :void,
|
|
2111
2132
|
:SetSoundPitch => :void,
|
|
2112
|
-
:
|
|
2133
|
+
:SetSoundPan => :void,
|
|
2113
2134
|
:WaveCopy => Wave.by_value,
|
|
2114
2135
|
:WaveCrop => :void,
|
|
2136
|
+
:WaveFormat => :void,
|
|
2115
2137
|
:LoadWaveSamples => :pointer,
|
|
2116
2138
|
:UnloadWaveSamples => :void,
|
|
2117
2139
|
:LoadMusicStream => Music.by_value,
|
|
@@ -2126,6 +2148,7 @@ module Raylib
|
|
|
2126
2148
|
:SeekMusicStream => :void,
|
|
2127
2149
|
:SetMusicVolume => :void,
|
|
2128
2150
|
:SetMusicPitch => :void,
|
|
2151
|
+
:SetMusicPan => :void,
|
|
2129
2152
|
:GetMusicTimeLength => :float,
|
|
2130
2153
|
:GetMusicTimePlayed => :float,
|
|
2131
2154
|
:LoadAudioStream => AudioStream.by_value,
|
|
@@ -2139,7 +2162,11 @@ module Raylib
|
|
|
2139
2162
|
:StopAudioStream => :void,
|
|
2140
2163
|
:SetAudioStreamVolume => :void,
|
|
2141
2164
|
:SetAudioStreamPitch => :void,
|
|
2165
|
+
:SetAudioStreamPan => :void,
|
|
2142
2166
|
:SetAudioStreamBufferSizeDefault => :void,
|
|
2167
|
+
:SetAudioStreamCallback => :void,
|
|
2168
|
+
:AttachAudioStreamProcessor => :void,
|
|
2169
|
+
:DetachAudioStreamProcessor => :void,
|
|
2143
2170
|
}
|
|
2144
2171
|
symbols.each do |sym|
|
|
2145
2172
|
begin
|
data/lib/raymath.rb
CHANGED
|
@@ -40,6 +40,7 @@ module Raylib
|
|
|
40
40
|
:Lerp,
|
|
41
41
|
:Normalize,
|
|
42
42
|
:Remap,
|
|
43
|
+
:FloatEquals,
|
|
43
44
|
:Vector2Zero,
|
|
44
45
|
:Vector2One,
|
|
45
46
|
:Vector2Add,
|
|
@@ -50,16 +51,22 @@ module Raylib
|
|
|
50
51
|
:Vector2LengthSqr,
|
|
51
52
|
:Vector2DotProduct,
|
|
52
53
|
:Vector2Distance,
|
|
54
|
+
:Vector2DistanceSqr,
|
|
53
55
|
:Vector2Angle,
|
|
54
56
|
:Vector2Scale,
|
|
55
57
|
:Vector2Multiply,
|
|
56
58
|
:Vector2Negate,
|
|
57
59
|
:Vector2Divide,
|
|
58
60
|
:Vector2Normalize,
|
|
61
|
+
:Vector2Transform,
|
|
59
62
|
:Vector2Lerp,
|
|
60
63
|
:Vector2Reflect,
|
|
61
64
|
:Vector2Rotate,
|
|
62
65
|
:Vector2MoveTowards,
|
|
66
|
+
:Vector2Invert,
|
|
67
|
+
:Vector2Clamp,
|
|
68
|
+
:Vector2ClampValue,
|
|
69
|
+
:Vector2Equals,
|
|
63
70
|
:Vector3Zero,
|
|
64
71
|
:Vector3One,
|
|
65
72
|
:Vector3Add,
|
|
@@ -74,6 +81,7 @@ module Raylib
|
|
|
74
81
|
:Vector3LengthSqr,
|
|
75
82
|
:Vector3DotProduct,
|
|
76
83
|
:Vector3Distance,
|
|
84
|
+
:Vector3DistanceSqr,
|
|
77
85
|
:Vector3Angle,
|
|
78
86
|
:Vector3Negate,
|
|
79
87
|
:Vector3Divide,
|
|
@@ -88,11 +96,15 @@ module Raylib
|
|
|
88
96
|
:Vector3Barycenter,
|
|
89
97
|
:Vector3Unproject,
|
|
90
98
|
:Vector3ToFloatV,
|
|
99
|
+
:Vector3Invert,
|
|
100
|
+
:Vector3Clamp,
|
|
101
|
+
:Vector3ClampValue,
|
|
102
|
+
:Vector3Equals,
|
|
103
|
+
:Vector3Refract,
|
|
91
104
|
:MatrixDeterminant,
|
|
92
105
|
:MatrixTrace,
|
|
93
106
|
:MatrixTranspose,
|
|
94
107
|
:MatrixInvert,
|
|
95
|
-
:MatrixNormalize,
|
|
96
108
|
:MatrixIdentity,
|
|
97
109
|
:MatrixAdd,
|
|
98
110
|
:MatrixSubtract,
|
|
@@ -132,12 +144,14 @@ module Raylib
|
|
|
132
144
|
:QuaternionFromEuler,
|
|
133
145
|
:QuaternionToEuler,
|
|
134
146
|
:QuaternionTransform,
|
|
147
|
+
:QuaternionEquals,
|
|
135
148
|
]
|
|
136
149
|
args = {
|
|
137
150
|
:Clamp => [:float, :float, :float],
|
|
138
151
|
:Lerp => [:float, :float, :float],
|
|
139
152
|
:Normalize => [:float, :float, :float],
|
|
140
153
|
:Remap => [:float, :float, :float, :float, :float],
|
|
154
|
+
:FloatEquals => [:float, :float],
|
|
141
155
|
:Vector2Zero => [],
|
|
142
156
|
:Vector2One => [],
|
|
143
157
|
:Vector2Add => [Vector2.by_value, Vector2.by_value],
|
|
@@ -148,16 +162,22 @@ module Raylib
|
|
|
148
162
|
:Vector2LengthSqr => [Vector2.by_value],
|
|
149
163
|
:Vector2DotProduct => [Vector2.by_value, Vector2.by_value],
|
|
150
164
|
:Vector2Distance => [Vector2.by_value, Vector2.by_value],
|
|
165
|
+
:Vector2DistanceSqr => [Vector2.by_value, Vector2.by_value],
|
|
151
166
|
:Vector2Angle => [Vector2.by_value, Vector2.by_value],
|
|
152
167
|
:Vector2Scale => [Vector2.by_value, :float],
|
|
153
168
|
:Vector2Multiply => [Vector2.by_value, Vector2.by_value],
|
|
154
169
|
:Vector2Negate => [Vector2.by_value],
|
|
155
170
|
:Vector2Divide => [Vector2.by_value, Vector2.by_value],
|
|
156
171
|
:Vector2Normalize => [Vector2.by_value],
|
|
172
|
+
:Vector2Transform => [Vector2.by_value, Matrix.by_value],
|
|
157
173
|
:Vector2Lerp => [Vector2.by_value, Vector2.by_value, :float],
|
|
158
174
|
:Vector2Reflect => [Vector2.by_value, Vector2.by_value],
|
|
159
175
|
:Vector2Rotate => [Vector2.by_value, :float],
|
|
160
176
|
:Vector2MoveTowards => [Vector2.by_value, Vector2.by_value, :float],
|
|
177
|
+
:Vector2Invert => [Vector2.by_value],
|
|
178
|
+
:Vector2Clamp => [Vector2.by_value, Vector2.by_value, Vector2.by_value],
|
|
179
|
+
:Vector2ClampValue => [Vector2.by_value, :float, :float],
|
|
180
|
+
:Vector2Equals => [Vector2.by_value, Vector2.by_value],
|
|
161
181
|
:Vector3Zero => [],
|
|
162
182
|
:Vector3One => [],
|
|
163
183
|
:Vector3Add => [Vector3.by_value, Vector3.by_value],
|
|
@@ -172,6 +192,7 @@ module Raylib
|
|
|
172
192
|
:Vector3LengthSqr => [Vector3.by_value],
|
|
173
193
|
:Vector3DotProduct => [Vector3.by_value, Vector3.by_value],
|
|
174
194
|
:Vector3Distance => [Vector3.by_value, Vector3.by_value],
|
|
195
|
+
:Vector3DistanceSqr => [Vector3.by_value, Vector3.by_value],
|
|
175
196
|
:Vector3Angle => [Vector3.by_value, Vector3.by_value],
|
|
176
197
|
:Vector3Negate => [Vector3.by_value],
|
|
177
198
|
:Vector3Divide => [Vector3.by_value, Vector3.by_value],
|
|
@@ -186,11 +207,15 @@ module Raylib
|
|
|
186
207
|
:Vector3Barycenter => [Vector3.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value],
|
|
187
208
|
:Vector3Unproject => [Vector3.by_value, Matrix.by_value, Matrix.by_value],
|
|
188
209
|
:Vector3ToFloatV => [Vector3.by_value],
|
|
210
|
+
:Vector3Invert => [Vector3.by_value],
|
|
211
|
+
:Vector3Clamp => [Vector3.by_value, Vector3.by_value, Vector3.by_value],
|
|
212
|
+
:Vector3ClampValue => [Vector3.by_value, :float, :float],
|
|
213
|
+
:Vector3Equals => [Vector3.by_value, Vector3.by_value],
|
|
214
|
+
:Vector3Refract => [Vector3.by_value, Vector3.by_value, :float],
|
|
189
215
|
:MatrixDeterminant => [Matrix.by_value],
|
|
190
216
|
:MatrixTrace => [Matrix.by_value],
|
|
191
217
|
:MatrixTranspose => [Matrix.by_value],
|
|
192
218
|
:MatrixInvert => [Matrix.by_value],
|
|
193
|
-
:MatrixNormalize => [Matrix.by_value],
|
|
194
219
|
:MatrixIdentity => [],
|
|
195
220
|
:MatrixAdd => [Matrix.by_value, Matrix.by_value],
|
|
196
221
|
:MatrixSubtract => [Matrix.by_value, Matrix.by_value],
|
|
@@ -230,12 +255,14 @@ module Raylib
|
|
|
230
255
|
:QuaternionFromEuler => [:float, :float, :float],
|
|
231
256
|
:QuaternionToEuler => [Quaternion.by_value],
|
|
232
257
|
:QuaternionTransform => [Quaternion.by_value, Matrix.by_value],
|
|
258
|
+
:QuaternionEquals => [Quaternion.by_value, Quaternion.by_value],
|
|
233
259
|
}
|
|
234
260
|
retvals = {
|
|
235
261
|
:Clamp => :float,
|
|
236
262
|
:Lerp => :float,
|
|
237
263
|
:Normalize => :float,
|
|
238
264
|
:Remap => :float,
|
|
265
|
+
:FloatEquals => :int,
|
|
239
266
|
:Vector2Zero => Vector2.by_value,
|
|
240
267
|
:Vector2One => Vector2.by_value,
|
|
241
268
|
:Vector2Add => Vector2.by_value,
|
|
@@ -246,16 +273,22 @@ module Raylib
|
|
|
246
273
|
:Vector2LengthSqr => :float,
|
|
247
274
|
:Vector2DotProduct => :float,
|
|
248
275
|
:Vector2Distance => :float,
|
|
276
|
+
:Vector2DistanceSqr => :float,
|
|
249
277
|
:Vector2Angle => :float,
|
|
250
278
|
:Vector2Scale => Vector2.by_value,
|
|
251
279
|
:Vector2Multiply => Vector2.by_value,
|
|
252
280
|
:Vector2Negate => Vector2.by_value,
|
|
253
281
|
:Vector2Divide => Vector2.by_value,
|
|
254
282
|
:Vector2Normalize => Vector2.by_value,
|
|
283
|
+
:Vector2Transform => Vector2.by_value,
|
|
255
284
|
:Vector2Lerp => Vector2.by_value,
|
|
256
285
|
:Vector2Reflect => Vector2.by_value,
|
|
257
286
|
:Vector2Rotate => Vector2.by_value,
|
|
258
287
|
:Vector2MoveTowards => Vector2.by_value,
|
|
288
|
+
:Vector2Invert => Vector2.by_value,
|
|
289
|
+
:Vector2Clamp => Vector2.by_value,
|
|
290
|
+
:Vector2ClampValue => Vector2.by_value,
|
|
291
|
+
:Vector2Equals => :int,
|
|
259
292
|
:Vector3Zero => Vector3.by_value,
|
|
260
293
|
:Vector3One => Vector3.by_value,
|
|
261
294
|
:Vector3Add => Vector3.by_value,
|
|
@@ -270,6 +303,7 @@ module Raylib
|
|
|
270
303
|
:Vector3LengthSqr => :float,
|
|
271
304
|
:Vector3DotProduct => :float,
|
|
272
305
|
:Vector3Distance => :float,
|
|
306
|
+
:Vector3DistanceSqr => :float,
|
|
273
307
|
:Vector3Angle => :float,
|
|
274
308
|
:Vector3Negate => Vector3.by_value,
|
|
275
309
|
:Vector3Divide => Vector3.by_value,
|
|
@@ -284,11 +318,15 @@ module Raylib
|
|
|
284
318
|
:Vector3Barycenter => Vector3.by_value,
|
|
285
319
|
:Vector3Unproject => Vector3.by_value,
|
|
286
320
|
:Vector3ToFloatV => Float3.by_value,
|
|
321
|
+
:Vector3Invert => Vector3.by_value,
|
|
322
|
+
:Vector3Clamp => Vector3.by_value,
|
|
323
|
+
:Vector3ClampValue => Vector3.by_value,
|
|
324
|
+
:Vector3Equals => :int,
|
|
325
|
+
:Vector3Refract => Vector3.by_value,
|
|
287
326
|
:MatrixDeterminant => :float,
|
|
288
327
|
:MatrixTrace => :float,
|
|
289
328
|
:MatrixTranspose => Matrix.by_value,
|
|
290
329
|
:MatrixInvert => Matrix.by_value,
|
|
291
|
-
:MatrixNormalize => Matrix.by_value,
|
|
292
330
|
:MatrixIdentity => Matrix.by_value,
|
|
293
331
|
:MatrixAdd => Matrix.by_value,
|
|
294
332
|
:MatrixSubtract => Matrix.by_value,
|
|
@@ -328,6 +366,7 @@ module Raylib
|
|
|
328
366
|
:QuaternionFromEuler => Quaternion.by_value,
|
|
329
367
|
:QuaternionToEuler => Vector3.by_value,
|
|
330
368
|
:QuaternionTransform => Quaternion.by_value,
|
|
369
|
+
:QuaternionEquals => :int,
|
|
331
370
|
}
|
|
332
371
|
symbols.each do |sym|
|
|
333
372
|
begin
|
data/lib/rlgl.rb
CHANGED
|
@@ -120,7 +120,8 @@ module Raylib
|
|
|
120
120
|
RL_BLEND_MULTIPLIED = 2
|
|
121
121
|
RL_BLEND_ADD_COLORS = 3
|
|
122
122
|
RL_BLEND_SUBTRACT_COLORS = 4
|
|
123
|
-
|
|
123
|
+
RL_BLEND_ALPHA_PREMUL = 5
|
|
124
|
+
RL_BLEND_CUSTOM = 6
|
|
124
125
|
RL_SHADER_LOC_VERTEX_POSITION = 0
|
|
125
126
|
RL_SHADER_LOC_VERTEX_TEXCOORD01 = 1
|
|
126
127
|
RL_SHADER_LOC_VERTEX_TEXCOORD02 = 2
|
|
@@ -282,7 +283,9 @@ module Raylib
|
|
|
282
283
|
:rlglClose,
|
|
283
284
|
:rlLoadExtensions,
|
|
284
285
|
:rlGetVersion,
|
|
286
|
+
:rlSetFramebufferWidth,
|
|
285
287
|
:rlGetFramebufferWidth,
|
|
288
|
+
:rlSetFramebufferHeight,
|
|
286
289
|
:rlGetFramebufferHeight,
|
|
287
290
|
:rlGetTextureIdDefault,
|
|
288
291
|
:rlGetShaderIdDefault,
|
|
@@ -298,6 +301,7 @@ module Raylib
|
|
|
298
301
|
:rlLoadVertexBuffer,
|
|
299
302
|
:rlLoadVertexBufferElement,
|
|
300
303
|
:rlUpdateVertexBuffer,
|
|
304
|
+
:rlUpdateVertexBufferElements,
|
|
301
305
|
:rlUnloadVertexArray,
|
|
302
306
|
:rlUnloadVertexBuffer,
|
|
303
307
|
:rlSetVertexAttribute,
|
|
@@ -423,7 +427,9 @@ module Raylib
|
|
|
423
427
|
:rlglClose => [],
|
|
424
428
|
:rlLoadExtensions => [:pointer],
|
|
425
429
|
:rlGetVersion => [],
|
|
430
|
+
:rlSetFramebufferWidth => [:int],
|
|
426
431
|
:rlGetFramebufferWidth => [],
|
|
432
|
+
:rlSetFramebufferHeight => [:int],
|
|
427
433
|
:rlGetFramebufferHeight => [],
|
|
428
434
|
:rlGetTextureIdDefault => [],
|
|
429
435
|
:rlGetShaderIdDefault => [],
|
|
@@ -439,6 +445,7 @@ module Raylib
|
|
|
439
445
|
:rlLoadVertexBuffer => [:pointer, :int, :bool],
|
|
440
446
|
:rlLoadVertexBufferElement => [:pointer, :int, :bool],
|
|
441
447
|
:rlUpdateVertexBuffer => [:uint, :pointer, :int, :int],
|
|
448
|
+
:rlUpdateVertexBufferElements => [:uint, :pointer, :int, :int],
|
|
442
449
|
:rlUnloadVertexArray => [:uint],
|
|
443
450
|
:rlUnloadVertexBuffer => [:uint],
|
|
444
451
|
:rlSetVertexAttribute => [:uint, :int, :int, :bool, :int, :pointer],
|
|
@@ -564,7 +571,9 @@ module Raylib
|
|
|
564
571
|
:rlglClose => :void,
|
|
565
572
|
:rlLoadExtensions => :void,
|
|
566
573
|
:rlGetVersion => :int,
|
|
574
|
+
:rlSetFramebufferWidth => :void,
|
|
567
575
|
:rlGetFramebufferWidth => :int,
|
|
576
|
+
:rlSetFramebufferHeight => :void,
|
|
568
577
|
:rlGetFramebufferHeight => :int,
|
|
569
578
|
:rlGetTextureIdDefault => :uint,
|
|
570
579
|
:rlGetShaderIdDefault => :uint,
|
|
@@ -580,6 +589,7 @@ module Raylib
|
|
|
580
589
|
:rlLoadVertexBuffer => :uint,
|
|
581
590
|
:rlLoadVertexBufferElement => :uint,
|
|
582
591
|
:rlUpdateVertexBuffer => :void,
|
|
592
|
+
:rlUpdateVertexBufferElements => :void,
|
|
583
593
|
:rlUnloadVertexArray => :void,
|
|
584
594
|
:rlUnloadVertexBuffer => :void,
|
|
585
595
|
:rlSetVertexAttribute => :void,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: raylib-bindings
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- vaiorabbit
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-04-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|
|
@@ -50,8 +50,6 @@ files:
|
|
|
50
50
|
- ChangeLog
|
|
51
51
|
- LICENSE.txt
|
|
52
52
|
- README.md
|
|
53
|
-
- lib/libraylib.4.0.0.dylib
|
|
54
|
-
- lib/libraylib.400.dylib
|
|
55
53
|
- lib/libraylib.dll
|
|
56
54
|
- lib/libraylib.dylib
|
|
57
55
|
- lib/physac.dll
|
|
@@ -83,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
83
81
|
- !ruby/object:Gem::Version
|
|
84
82
|
version: '0'
|
|
85
83
|
requirements: []
|
|
86
|
-
rubygems_version: 3.3.
|
|
84
|
+
rubygems_version: 3.3.3
|
|
87
85
|
signing_key:
|
|
88
86
|
specification_version: 4
|
|
89
87
|
summary: Provides latest raylib API for Ruby
|
data/lib/libraylib.4.0.0.dylib
DELETED
|
Binary file
|
data/lib/libraylib.400.dylib
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
libraylib.4.0.0.dylib
|
data/lib/libraylib.dylib
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
libraylib.400.dylib
|