raylib-bindings 0.7.2-x86_64-darwin → 0.7.4-x86_64-darwin
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 +21 -0
- data/README.md +17 -7
- data/lib/config.rb +13 -8
- data/lib/libraylib.x86_64.dylib +0 -0
- data/lib/physac.x86_64.dylib +0 -0
- data/lib/raygui.x86_64.dylib +0 -0
- data/lib/raygui_main.rb +18 -6
- data/lib/raylib_main.rb +59 -23
- data/lib/raymath.rb +23 -3
- data/lib/rlgl.rb +25 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f418840d09bee20456488883587c7dd07ef579669b7197fe9d79fc7e41afc48b
|
4
|
+
data.tar.gz: 6c995a5dda0c3e1a919cefb31f9300fa3dbc5a74195be7b02b836ff1fe325d7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16dd8c3bab9e60ba4a2118821961d5753e6dbb01d64dcbe97fe45e1164d2926c3275f19616e29394bfc662d53b23b8f3325b37c6a912b1b0adce1ae27591da5d
|
7
|
+
data.tar.gz: 33282261b6248d5eabc40dc3b0d000cb51f9a3f8661103731216e66f1da29d19c5874a3fa82bbdd7c5bf5c91e677252095c9b3b787146f9661d7f7fb1110f738
|
data/ChangeLog
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
2024-06-15 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/b4fbdc028302f9a697f196e8d02a7dca28912f59 ) and raygui ( https://github.com/raysan5/raygui/commit/4b3d94f5df6a5a2aa86286350f7e20c0ca35f516 )
|
4
|
+
|
5
|
+
2024-05-25 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/785ec74b92da4f91181ff7b1c89c8ae5ee19f1b6 ) and raygui ( https://github.com/raysan5/raygui/commit/7bb66e5c7f3e283995a43c68965ee82acc65637a )
|
8
|
+
|
9
|
+
2024-05-12 vaiorabbit <http://twitter.com/vaiorabbit>
|
10
|
+
|
11
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/f62202198e35161a9fe394a14bbd1a7c655107ad ) and raygui ( https://github.com/raysan5/raygui/commit/12804826d01bfb636e36f816bda19eaa23b4ace7 )
|
12
|
+
* Fixed constant redefinition warnings. (Ref.: https://github.com/raysan5/raylib/commit/33b32ca53a7817a9cfdb1840a8ab75fa7cb47723 https://github.com/raysan5/raylib/blob/f62202198e35161a9fe394a14bbd1a7c655107ad/src/config.h#L115-L121 )
|
13
|
+
|
14
|
+
2024-05-04 vaiorabbit <http://twitter.com/vaiorabbit>
|
15
|
+
|
16
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/f1007554a0a8145060797c0aa8169bdaf2c1c6b8 ) and raygui ( https://github.com/raysan5/raygui/commit/a3a0e86e215145c28726e6f469f13d0aa6647a5e )
|
17
|
+
|
18
|
+
2024-04-27 vaiorabbit <http://twitter.com/vaiorabbit>
|
19
|
+
|
20
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/e47ebec66134800e734710038ea4e5f070f3ef06 ) and raygui ( https://github.com/raysan5/raygui/commit/6f532337ff2d6dc14ba3a5f5b7ee63f9d90ff13b )
|
21
|
+
|
1
22
|
2024-04-06 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
23
|
|
3
24
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/414229bcf93816daaa253a82cd54fbd7b18e6449 ) and raygui ( https://github.com/raysan5/raygui/commit/0a9a9f897a16968444e10fea4fbac33ba1d5d640 )
|
data/README.md
CHANGED
@@ -3,16 +3,16 @@
|
|
3
3
|
# Yet another raylib wrapper for Ruby #
|
4
4
|
|
5
5
|
* Created : 2021-10-17
|
6
|
-
* Last modified : 2024-
|
6
|
+
* Last modified : 2024-06-15
|
7
7
|
|
8
8
|
Provides Ruby bindings for raylib-related libraries including:
|
9
9
|
|
10
|
-
* [raylib](https://github.com/raysan5/raylib)
|
10
|
+
* [raylib](https://github.com/raysan5/raylib) version [5.1-dev]( https://github.com/raysan5/raylib/commit/b4fbdc028302f9a697f196e8d02a7dca28912f59 )
|
11
11
|
* raylib
|
12
12
|
* raymath
|
13
13
|
* rlgl
|
14
|
-
* [raygui](https://github.com/raysan5/raygui)
|
15
|
-
* [Physac](https://github.com/raysan5/physac)
|
14
|
+
* [raygui](https://github.com/raysan5/raygui) version [4.1-dev]( https://github.com/raysan5/raygui/commit/4b3d94f5df6a5a2aa86286350f7e20c0ca35f516 )
|
15
|
+
* [Physac](https://github.com/raysan5/physac) version [1.1]( https://github.com/raysan5/physac/commit/4a8e17f263fb8e1150b3fbafc96f880c7d7a4833 )
|
16
16
|
|
17
17
|
<img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/bitmap_font_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/game_of_life_simple_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/lissajous_curve_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/procedural_texture_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/reversi_board_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/utf8_font_rb.png" width="125">
|
18
18
|
|
@@ -48,7 +48,7 @@ D:\> ruby template.rb
|
|
48
48
|
* Ruby interpreter
|
49
49
|
* Tested on:
|
50
50
|
* [macOS] https://rvm.io
|
51
|
-
* ruby 3.3.
|
51
|
+
* ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [arm64-darwin23]
|
52
52
|
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
53
53
|
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x64-mingw-ucrt]
|
54
54
|
* [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
|
@@ -63,8 +63,8 @@ D:\> ruby template.rb
|
|
63
63
|
* [macOS] clang
|
64
64
|
|
65
65
|
$ clang --version
|
66
|
-
Apple clang version 15.0.0 (clang-1500.
|
67
|
-
Target: arm64-apple-darwin23.
|
66
|
+
Apple clang version 15.0.0 (clang-1500.3.9.4)
|
67
|
+
Target: arm64-apple-darwin23.4.0
|
68
68
|
Thread model: posix
|
69
69
|
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
|
70
70
|
|
@@ -83,6 +83,7 @@ D:\> ruby template.rb
|
|
83
83
|
* Ruby interpreter
|
84
84
|
* Tested on:
|
85
85
|
* [macOS]
|
86
|
+
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
|
86
87
|
* ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin22]
|
87
88
|
* ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
|
88
89
|
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
|
@@ -100,6 +101,12 @@ D:\> ruby template.rb
|
|
100
101
|
* Tested on:
|
101
102
|
* [macOS] clang
|
102
103
|
|
104
|
+
$ clang --version
|
105
|
+
Apple clang version 15.0.0 (clang-1500.0.40.1)
|
106
|
+
Target: arm64-apple-darwin23.0.0
|
107
|
+
Thread model: posix
|
108
|
+
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
|
109
|
+
|
103
110
|
$ clang --version
|
104
111
|
Apple clang version 14.0.0 (clang-1400.0.29.202)
|
105
112
|
Target: arm64-apple-darwin22.2.0
|
@@ -160,6 +167,9 @@ See the projects below to learn how to use this library:
|
|
160
167
|
* `SetTraceLogCallback` and `TraceLogCallback` are unusable since Ruby-FFI does not support `:varargs` parameter in callbacks (`Proc`, etc.)
|
161
168
|
* Ref.: https://ffi.github.io/ruby-ffi-archive/messages/20130214-%5Bruby-ffi%5D%20Re_%20Callback%20Function%20with%20varargs-345.html
|
162
169
|
|
170
|
+
* For macOS users: if you get error messages like “'.... .dylib' not valid for use in process: library load disallowed by system policy” , you can work around it with the following command (although it is not recommended):
|
171
|
+
* $ xattr -dr com.apple.quarantine (path to the .dylib)
|
172
|
+
|
163
173
|
## License ##
|
164
174
|
|
165
175
|
Shared libraries in `lib` directory are built on top of these products and are available under the terms of these licenses:
|
data/lib/config.rb
CHANGED
@@ -47,12 +47,18 @@ module Raylib
|
|
47
47
|
RL_MAX_SHADER_LOCATIONS = 32 # Maximum number of shader locations supported
|
48
48
|
RL_CULL_DISTANCE_NEAR = 0.01 # Default projection matrix near cull distance
|
49
49
|
RL_CULL_DISTANCE_FAR = 1000.0 # Default projection matrix far cull distance
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
50
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION = 0
|
51
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD = 1
|
52
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL = 2
|
53
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR = 3
|
54
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT = 4
|
55
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2 = 5
|
56
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION = "vertexPosition" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION
|
57
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD = "vertexTexCoord" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD
|
58
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL = "vertexNormal" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL
|
59
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_COLOR = "vertexColor" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR
|
60
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_TANGENT = "vertexTangent" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT
|
61
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2 = "vertexTexCoord2" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2
|
56
62
|
RL_DEFAULT_SHADER_UNIFORM_NAME_MVP = "mvp" # model-view-projection matrix
|
57
63
|
RL_DEFAULT_SHADER_UNIFORM_NAME_VIEW = "matView" # view matrix
|
58
64
|
RL_DEFAULT_SHADER_UNIFORM_NAME_PROJECTION = "matProjection" # projection matrix
|
@@ -72,9 +78,8 @@ module Raylib
|
|
72
78
|
SUPPORT_IMAGE_GENERATION = 1
|
73
79
|
SUPPORT_IMAGE_MANIPULATION = 1
|
74
80
|
SUPPORT_DEFAULT_FONT = 1
|
75
|
-
SUPPORT_FILEFORMAT_FNT = 1
|
76
81
|
SUPPORT_FILEFORMAT_TTF = 1
|
77
|
-
|
82
|
+
SUPPORT_FILEFORMAT_FNT = 1
|
78
83
|
SUPPORT_TEXT_MANIPULATION = 1
|
79
84
|
SUPPORT_FONT_ATLAS_WHITE_REC = 1
|
80
85
|
MAX_TEXT_BUFFER_LENGTH = 1024 # Size of internal static buffers used on some functions:
|
data/lib/libraylib.x86_64.dylib
CHANGED
Binary file
|
data/lib/physac.x86_64.dylib
CHANGED
Binary file
|
data/lib/raygui.x86_64.dylib
CHANGED
Binary file
|
data/lib/raygui_main.rb
CHANGED
@@ -12,9 +12,9 @@ module Raylib
|
|
12
12
|
# Define/Macro
|
13
13
|
|
14
14
|
RAYGUI_VERSION_MAJOR = 4
|
15
|
-
RAYGUI_VERSION_MINOR =
|
15
|
+
RAYGUI_VERSION_MINOR = 1
|
16
16
|
RAYGUI_VERSION_PATCH = 0
|
17
|
-
RAYGUI_VERSION = "4.
|
17
|
+
RAYGUI_VERSION = "4.1-dev"
|
18
18
|
SCROLLBAR_LEFT_SIDE = 0
|
19
19
|
SCROLLBAR_RIGHT_SIDE = 1
|
20
20
|
|
@@ -127,6 +127,7 @@ module Raylib
|
|
127
127
|
# DropdownBox
|
128
128
|
ARROW_PADDING = 16 # DropdownBox arrow separation from border and items
|
129
129
|
DROPDOWN_ITEMS_SPACING = 17 # DropdownBox items separation
|
130
|
+
DROPDOWN_ARROW_HIDDEN = 18 # DropdownBox arrow hidden
|
130
131
|
|
131
132
|
# enum GuiTextBoxProperty
|
132
133
|
# TextBox/TextBoxMulti/ValueBox/Spinner
|
@@ -139,10 +140,11 @@ module Raylib
|
|
139
140
|
|
140
141
|
# enum GuiListViewProperty
|
141
142
|
# ListView
|
142
|
-
LIST_ITEMS_HEIGHT = 16
|
143
|
-
LIST_ITEMS_SPACING = 17
|
144
|
-
SCROLLBAR_WIDTH = 18
|
145
|
-
SCROLLBAR_SIDE = 19
|
143
|
+
LIST_ITEMS_HEIGHT = 16 # ListView items height
|
144
|
+
LIST_ITEMS_SPACING = 17 # ListView items separation
|
145
|
+
SCROLLBAR_WIDTH = 18 # ListView scrollbar size (usually width)
|
146
|
+
SCROLLBAR_SIDE = 19 # ListView scrollbar side (0-SCROLLBAR_LEFT_SIDE, 1-SCROLLBAR_RIGHT_SIDE)
|
147
|
+
LIST_ITEMS_BORDER_WIDTH = 20 # ListView items border width
|
146
148
|
|
147
149
|
# enum GuiColorPickerProperty
|
148
150
|
# ColorPicker
|
@@ -726,6 +728,16 @@ module Raylib
|
|
726
728
|
# @return [int]
|
727
729
|
[:GuiValueBox, :GuiValueBox, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :int],
|
728
730
|
|
731
|
+
# @!method GuiValueBoxFloat(bounds, text, textValue, value, editMode)
|
732
|
+
# GuiValueBoxFloat : Value box control for float values
|
733
|
+
# @param bounds [Rectangle]
|
734
|
+
# @param text [const char*]
|
735
|
+
# @param textValue [char *]
|
736
|
+
# @param value [float *]
|
737
|
+
# @param editMode [bool]
|
738
|
+
# @return [int]
|
739
|
+
[:GuiValueBoxFloat, :GuiValueBoxFloat, [Rectangle.by_value, :pointer, :pointer, :pointer, :bool], :int],
|
740
|
+
|
729
741
|
# @!method GuiTextBox(bounds, text, textSize, editMode)
|
730
742
|
# GuiTextBox : Text Box control, updates input text
|
731
743
|
# @param bounds [Rectangle]
|
data/lib/raylib_main.rb
CHANGED
@@ -198,7 +198,7 @@ module Raylib
|
|
198
198
|
GAMEPAD_BUTTON_RIGHT_FACE_LEFT = 8 # Gamepad right button left (i.e. PS3: Square, Xbox: X)
|
199
199
|
GAMEPAD_BUTTON_LEFT_TRIGGER_1 = 9 # Gamepad top/back trigger left (first), it could be a trailing button
|
200
200
|
GAMEPAD_BUTTON_LEFT_TRIGGER_2 = 10 # Gamepad top/back trigger left (second), it could be a trailing button
|
201
|
-
GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = 11 # Gamepad top/back trigger right (
|
201
|
+
GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = 11 # Gamepad top/back trigger right (first), it could be a trailing button
|
202
202
|
GAMEPAD_BUTTON_RIGHT_TRIGGER_2 = 12 # Gamepad top/back trigger right (second), it could be a trailing button
|
203
203
|
GAMEPAD_BUTTON_MIDDLE_LEFT = 13 # Gamepad center buttons, left one (i.e. PS3: Select)
|
204
204
|
GAMEPAD_BUTTON_MIDDLE = 14 # Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX)
|
@@ -362,11 +362,11 @@ module Raylib
|
|
362
362
|
|
363
363
|
# enum CameraMode
|
364
364
|
# Camera system modes
|
365
|
-
CAMERA_CUSTOM = 0 #
|
366
|
-
CAMERA_FREE = 1 #
|
367
|
-
CAMERA_ORBITAL = 2 #
|
368
|
-
CAMERA_FIRST_PERSON = 3 #
|
369
|
-
CAMERA_THIRD_PERSON = 4 #
|
365
|
+
CAMERA_CUSTOM = 0 # Camera custom, controlled by user (UpdateCamera() does nothing)
|
366
|
+
CAMERA_FREE = 1 # Camera free mode
|
367
|
+
CAMERA_ORBITAL = 2 # Camera orbital, around target, zoom supported
|
368
|
+
CAMERA_FIRST_PERSON = 3 # Camera first person
|
369
|
+
CAMERA_THIRD_PERSON = 4 # Camera third person
|
370
370
|
|
371
371
|
# enum CameraProjection
|
372
372
|
# Camera projection
|
@@ -1935,6 +1935,12 @@ module Raylib
|
|
1935
1935
|
# @return [bool]
|
1936
1936
|
[:IsPathFile, :IsPathFile, [:pointer], :bool],
|
1937
1937
|
|
1938
|
+
# @!method IsFileNameValid(fileName)
|
1939
|
+
# IsFileNameValid : Check if fileName is valid for the platform/OS
|
1940
|
+
# @param fileName [const char *]
|
1941
|
+
# @return [bool]
|
1942
|
+
[:IsFileNameValid, :IsFileNameValid, [:pointer], :bool],
|
1943
|
+
|
1938
1944
|
# @!method LoadDirectoryFiles(dirPath)
|
1939
1945
|
# LoadDirectoryFiles : Load directory filepaths
|
1940
1946
|
# @param dirPath [const char *]
|
@@ -2400,7 +2406,7 @@ module Raylib
|
|
2400
2406
|
|
2401
2407
|
# @!method DrawLineStrip(points, pointCount, color)
|
2402
2408
|
# DrawLineStrip : Draw lines sequence (using gl lines)
|
2403
|
-
# @param points [Vector2 *]
|
2409
|
+
# @param points [const Vector2 *]
|
2404
2410
|
# @param pointCount [int]
|
2405
2411
|
# @param color [Color]
|
2406
2412
|
# @return [void]
|
@@ -2618,15 +2624,24 @@ module Raylib
|
|
2618
2624
|
# @return [void]
|
2619
2625
|
[:DrawRectangleRounded, :DrawRectangleRounded, [Rectangle.by_value, :float, :int, Color.by_value], :void],
|
2620
2626
|
|
2621
|
-
# @!method DrawRectangleRoundedLines(rec, roundness, segments,
|
2622
|
-
# DrawRectangleRoundedLines : Draw rectangle with rounded edges
|
2627
|
+
# @!method DrawRectangleRoundedLines(rec, roundness, segments, color)
|
2628
|
+
# DrawRectangleRoundedLines : Draw rectangle lines with rounded edges
|
2629
|
+
# @param rec [Rectangle]
|
2630
|
+
# @param roundness [float]
|
2631
|
+
# @param segments [int]
|
2632
|
+
# @param color [Color]
|
2633
|
+
# @return [void]
|
2634
|
+
[:DrawRectangleRoundedLines, :DrawRectangleRoundedLines, [Rectangle.by_value, :float, :int, Color.by_value], :void],
|
2635
|
+
|
2636
|
+
# @!method DrawRectangleRoundedLinesEx(rec, roundness, segments, lineThick, color)
|
2637
|
+
# DrawRectangleRoundedLinesEx : Draw rectangle with rounded edges outline
|
2623
2638
|
# @param rec [Rectangle]
|
2624
2639
|
# @param roundness [float]
|
2625
2640
|
# @param segments [int]
|
2626
2641
|
# @param lineThick [float]
|
2627
2642
|
# @param color [Color]
|
2628
2643
|
# @return [void]
|
2629
|
-
[:
|
2644
|
+
[:DrawRectangleRoundedLinesEx, :DrawRectangleRoundedLinesEx, [Rectangle.by_value, :float, :int, :float, Color.by_value], :void],
|
2630
2645
|
|
2631
2646
|
# @!method DrawTriangle(v1, v2, v3, color)
|
2632
2647
|
# DrawTriangle : Draw a color-filled triangle (vertex in counter-clockwise order!)
|
@@ -2648,7 +2663,7 @@ module Raylib
|
|
2648
2663
|
|
2649
2664
|
# @!method DrawTriangleFan(points, pointCount, color)
|
2650
2665
|
# DrawTriangleFan : Draw a triangle fan defined by points (first vertex is the center)
|
2651
|
-
# @param points [Vector2 *]
|
2666
|
+
# @param points [const Vector2 *]
|
2652
2667
|
# @param pointCount [int]
|
2653
2668
|
# @param color [Color]
|
2654
2669
|
# @return [void]
|
@@ -2656,7 +2671,7 @@ module Raylib
|
|
2656
2671
|
|
2657
2672
|
# @!method DrawTriangleStrip(points, pointCount, color)
|
2658
2673
|
# DrawTriangleStrip : Draw a triangle strip defined by points
|
2659
|
-
# @param points [Vector2 *]
|
2674
|
+
# @param points [const Vector2 *]
|
2660
2675
|
# @param pointCount [int]
|
2661
2676
|
# @param color [Color]
|
2662
2677
|
# @return [void]
|
@@ -2695,7 +2710,7 @@ module Raylib
|
|
2695
2710
|
|
2696
2711
|
# @!method DrawSplineLinear(points, pointCount, thick, color)
|
2697
2712
|
# DrawSplineLinear : Draw spline: Linear, minimum 2 points
|
2698
|
-
# @param points [Vector2 *]
|
2713
|
+
# @param points [const Vector2 *]
|
2699
2714
|
# @param pointCount [int]
|
2700
2715
|
# @param thick [float]
|
2701
2716
|
# @param color [Color]
|
@@ -2704,7 +2719,7 @@ module Raylib
|
|
2704
2719
|
|
2705
2720
|
# @!method DrawSplineBasis(points, pointCount, thick, color)
|
2706
2721
|
# DrawSplineBasis : Draw spline: B-Spline, minimum 4 points
|
2707
|
-
# @param points [Vector2 *]
|
2722
|
+
# @param points [const Vector2 *]
|
2708
2723
|
# @param pointCount [int]
|
2709
2724
|
# @param thick [float]
|
2710
2725
|
# @param color [Color]
|
@@ -2713,7 +2728,7 @@ module Raylib
|
|
2713
2728
|
|
2714
2729
|
# @!method DrawSplineCatmullRom(points, pointCount, thick, color)
|
2715
2730
|
# DrawSplineCatmullRom : Draw spline: Catmull-Rom, minimum 4 points
|
2716
|
-
# @param points [Vector2 *]
|
2731
|
+
# @param points [const Vector2 *]
|
2717
2732
|
# @param pointCount [int]
|
2718
2733
|
# @param thick [float]
|
2719
2734
|
# @param color [Color]
|
@@ -2722,7 +2737,7 @@ module Raylib
|
|
2722
2737
|
|
2723
2738
|
# @!method DrawSplineBezierQuadratic(points, pointCount, thick, color)
|
2724
2739
|
# DrawSplineBezierQuadratic : Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]
|
2725
|
-
# @param points [Vector2 *]
|
2740
|
+
# @param points [const Vector2 *]
|
2726
2741
|
# @param pointCount [int]
|
2727
2742
|
# @param thick [float]
|
2728
2743
|
# @param color [Color]
|
@@ -2731,7 +2746,7 @@ module Raylib
|
|
2731
2746
|
|
2732
2747
|
# @!method DrawSplineBezierCubic(points, pointCount, thick, color)
|
2733
2748
|
# DrawSplineBezierCubic : Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]
|
2734
|
-
# @param points [Vector2 *]
|
2749
|
+
# @param points [const Vector2 *]
|
2735
2750
|
# @param pointCount [int]
|
2736
2751
|
# @param thick [float]
|
2737
2752
|
# @param color [Color]
|
@@ -2888,7 +2903,7 @@ module Raylib
|
|
2888
2903
|
# @!method CheckCollisionPointPoly(point, points, pointCount)
|
2889
2904
|
# CheckCollisionPointPoly : Check if point is within a polygon described by array of vertices
|
2890
2905
|
# @param point [Vector2]
|
2891
|
-
# @param points [Vector2 *]
|
2906
|
+
# @param points [const Vector2 *]
|
2892
2907
|
# @param pointCount [int]
|
2893
2908
|
# @return [bool]
|
2894
2909
|
[:CheckCollisionPointPoly, :CheckCollisionPointPoly, [Vector2.by_value, :pointer, :int], :bool],
|
@@ -2912,6 +2927,15 @@ module Raylib
|
|
2912
2927
|
# @return [bool]
|
2913
2928
|
[:CheckCollisionPointLine, :CheckCollisionPointLine, [Vector2.by_value, Vector2.by_value, Vector2.by_value, :int], :bool],
|
2914
2929
|
|
2930
|
+
# @!method CheckCollisionCircleLine(center, radius, p1, p2)
|
2931
|
+
# CheckCollisionCircleLine : Check if circle collides with a line created betweeen two points [p1] and [p2]
|
2932
|
+
# @param center [Vector2]
|
2933
|
+
# @param radius [float]
|
2934
|
+
# @param p1 [Vector2]
|
2935
|
+
# @param p2 [Vector2]
|
2936
|
+
# @return [bool]
|
2937
|
+
[:CheckCollisionCircleLine, :CheckCollisionCircleLine, [Vector2.by_value, :float, Vector2.by_value, Vector2.by_value], :bool],
|
2938
|
+
|
2915
2939
|
# @!method GetCollisionRec(rec1, rec2)
|
2916
2940
|
# GetCollisionRec : Get collision rectangle for two rectangles collision
|
2917
2941
|
# @param rec1 [Rectangle]
|
@@ -4105,6 +4129,18 @@ module Raylib
|
|
4105
4129
|
# @return [const char *]
|
4106
4130
|
[:TextToPascal, :TextToPascal, [:pointer], :pointer],
|
4107
4131
|
|
4132
|
+
# @!method TextToSnake(text)
|
4133
|
+
# TextToSnake : Get Snake case notation version of provided string
|
4134
|
+
# @param text [const char *]
|
4135
|
+
# @return [const char *]
|
4136
|
+
[:TextToSnake, :TextToSnake, [:pointer], :pointer],
|
4137
|
+
|
4138
|
+
# @!method TextToCamel(text)
|
4139
|
+
# TextToCamel : Get Camel case notation version of provided string
|
4140
|
+
# @param text [const char *]
|
4141
|
+
# @return [const char *]
|
4142
|
+
[:TextToCamel, :TextToCamel, [:pointer], :pointer],
|
4143
|
+
|
4108
4144
|
# @!method TextToInteger(text)
|
4109
4145
|
# TextToInteger : Get integer value from text (negative values not supported)
|
4110
4146
|
# @param text [const char *]
|
@@ -4153,7 +4189,7 @@ module Raylib
|
|
4153
4189
|
|
4154
4190
|
# @!method DrawTriangleStrip3D(points, pointCount, color)
|
4155
4191
|
# DrawTriangleStrip3D : Draw a triangle strip defined by points
|
4156
|
-
# @param points [Vector3 *]
|
4192
|
+
# @param points [const Vector3 *]
|
4157
4193
|
# @param pointCount [int]
|
4158
4194
|
# @param color [Color]
|
4159
4195
|
# @return [void]
|
@@ -4885,11 +4921,11 @@ module Raylib
|
|
4885
4921
|
# @return [Wave]
|
4886
4922
|
[:WaveCopy, :WaveCopy, [Wave.by_value], Wave.by_value],
|
4887
4923
|
|
4888
|
-
# @!method WaveCrop(wave,
|
4889
|
-
# WaveCrop : Crop a wave to defined
|
4924
|
+
# @!method WaveCrop(wave, initFrame, finalFrame)
|
4925
|
+
# WaveCrop : Crop a wave to defined frames range
|
4890
4926
|
# @param wave [Wave *]
|
4891
|
-
# @param
|
4892
|
-
# @param
|
4927
|
+
# @param initFrame [int]
|
4928
|
+
# @param finalFrame [int]
|
4893
4929
|
# @return [void]
|
4894
4930
|
[:WaveCrop, :WaveCrop, [:pointer, :int, :int], :void],
|
4895
4931
|
|
data/lib/raymath.rb
CHANGED
@@ -479,6 +479,16 @@ module Raylib
|
|
479
479
|
# @return [Vector3]
|
480
480
|
[:Vector3Lerp, :Vector3Lerp, [Vector3.by_value, Vector3.by_value, :float], Vector3.by_value],
|
481
481
|
|
482
|
+
# @!method Vector3CubicHermite(v1, tangent1, v2, tangent2, amount)
|
483
|
+
# Vector3CubicHermite
|
484
|
+
# @param v1 [Vector3]
|
485
|
+
# @param tangent1 [Vector3]
|
486
|
+
# @param v2 [Vector3]
|
487
|
+
# @param tangent2 [Vector3]
|
488
|
+
# @param amount [float]
|
489
|
+
# @return [Vector3]
|
490
|
+
[:Vector3CubicHermite, :Vector3CubicHermite, [Vector3.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value, :float], Vector3.by_value],
|
491
|
+
|
482
492
|
# @!method Vector3Reflect(v, normal)
|
483
493
|
# Vector3Reflect
|
484
494
|
# @param v [Vector3]
|
@@ -810,14 +820,14 @@ module Raylib
|
|
810
820
|
# @return [Matrix]
|
811
821
|
[:MatrixScale, :MatrixScale, [:float, :float, :float], Matrix.by_value],
|
812
822
|
|
813
|
-
# @!method MatrixFrustum(left, right, bottom, top,
|
823
|
+
# @!method MatrixFrustum(left, right, bottom, top, nearPlane, farPlane)
|
814
824
|
# MatrixFrustum
|
815
825
|
# @param left [double]
|
816
826
|
# @param right [double]
|
817
827
|
# @param bottom [double]
|
818
828
|
# @param top [double]
|
819
|
-
# @param
|
820
|
-
# @param
|
829
|
+
# @param nearPlane [double]
|
830
|
+
# @param farPlane [double]
|
821
831
|
# @return [Matrix]
|
822
832
|
[:MatrixFrustum, :MatrixFrustum, [:double, :double, :double, :double, :double, :double], Matrix.by_value],
|
823
833
|
|
@@ -951,6 +961,16 @@ module Raylib
|
|
951
961
|
# @return [Quaternion]
|
952
962
|
[:QuaternionSlerp, :QuaternionSlerp, [Quaternion.by_value, Quaternion.by_value, :float], Quaternion.by_value],
|
953
963
|
|
964
|
+
# @!method QuaternionCubicHermiteSpline(q1, outTangent1, q2, inTangent2, t)
|
965
|
+
# QuaternionCubicHermiteSpline
|
966
|
+
# @param q1 [Quaternion]
|
967
|
+
# @param outTangent1 [Quaternion]
|
968
|
+
# @param q2 [Quaternion]
|
969
|
+
# @param inTangent2 [Quaternion]
|
970
|
+
# @param t [float]
|
971
|
+
# @return [Quaternion]
|
972
|
+
[:QuaternionCubicHermiteSpline, :QuaternionCubicHermiteSpline, [Quaternion.by_value, Quaternion.by_value, Quaternion.by_value, Quaternion.by_value, :float], Quaternion.by_value],
|
973
|
+
|
954
974
|
# @!method QuaternionFromVector3ToVector3(from, to)
|
955
975
|
# QuaternionFromVector3ToVector3
|
956
976
|
# @param from [Vector3]
|
data/lib/rlgl.rb
CHANGED
@@ -11,7 +11,7 @@ module Raylib
|
|
11
11
|
|
12
12
|
# Define/Macro
|
13
13
|
|
14
|
-
RLGL_VERSION = "
|
14
|
+
RLGL_VERSION = "5.0"
|
15
15
|
RL_DEFAULT_BATCH_BUFFER_ELEMENTS = 8192
|
16
16
|
RL_TEXTURE_WRAP_S = 0x2802 # GL_TEXTURE_WRAP_S
|
17
17
|
RL_TEXTURE_WRAP_T = 0x2803 # GL_TEXTURE_WRAP_T
|
@@ -249,10 +249,11 @@ module Raylib
|
|
249
249
|
:elementCount, :int, # Number of elements in the buffer (QUADS)
|
250
250
|
:vertices, :pointer, # Vertex position (XYZ - 3 components per vertex) (shader-location = 0)
|
251
251
|
:texcoords, :pointer, # Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)
|
252
|
+
:normals, :pointer, # Vertex normal (XYZ - 3 components per vertex) (shader-location = 2)
|
252
253
|
:colors, :pointer, # Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)
|
253
254
|
:indices, :pointer, # Vertex indices (in case vertex data comes indexed) (6 indices per quad)
|
254
255
|
:vaoId, :uint, # OpenGL Vertex Array Object id
|
255
|
-
:vboId, [:uint,
|
256
|
+
:vboId, [:uint, 5], # OpenGL Vertex Buffer Objects id (5 types of vertex data)
|
256
257
|
)
|
257
258
|
def elementCount = self[:elementCount]
|
258
259
|
def elementCount=(v) self[:elementCount] = v end
|
@@ -260,6 +261,8 @@ module Raylib
|
|
260
261
|
def vertices=(v) self[:vertices] = v end
|
261
262
|
def texcoords = self[:texcoords]
|
262
263
|
def texcoords=(v) self[:texcoords] = v end
|
264
|
+
def normals = self[:normals]
|
265
|
+
def normals=(v) self[:normals] = v end
|
263
266
|
def colors = self[:colors]
|
264
267
|
def colors=(v) self[:colors] = v end
|
265
268
|
def indices = self[:indices]
|
@@ -401,6 +404,23 @@ module Raylib
|
|
401
404
|
# @return [void]
|
402
405
|
[:rlViewport, :rlViewport, [:int, :int, :int, :int], :void],
|
403
406
|
|
407
|
+
# @!method rlSetClipPlanes(nearPlane, farPlane)
|
408
|
+
# rlSetClipPlanes : Set clip planes distances
|
409
|
+
# @param nearPlane [double]
|
410
|
+
# @param farPlane [double]
|
411
|
+
# @return [void]
|
412
|
+
[:rlSetClipPlanes, :rlSetClipPlanes, [:double, :double], :void],
|
413
|
+
|
414
|
+
# @!method rlGetCullDistanceNear()
|
415
|
+
# rlGetCullDistanceNear : Get cull plane distance near
|
416
|
+
# @return [double]
|
417
|
+
[:rlGetCullDistanceNear, :rlGetCullDistanceNear, [], :double],
|
418
|
+
|
419
|
+
# @!method rlGetCullDistanceFar()
|
420
|
+
# rlGetCullDistanceFar : Get cull plane distance far
|
421
|
+
# @return [double]
|
422
|
+
[:rlGetCullDistanceFar, :rlGetCullDistanceFar, [], :double],
|
423
|
+
|
404
424
|
# @!method rlBegin(mode)
|
405
425
|
# rlBegin : Initialize drawing mode (how to organize vertex)
|
406
426
|
# @param mode [int]
|
@@ -940,16 +960,16 @@ module Raylib
|
|
940
960
|
# @return [void]
|
941
961
|
[:rlUnloadVertexBuffer, :rlUnloadVertexBuffer, [:uint], :void],
|
942
962
|
|
943
|
-
# @!method rlSetVertexAttribute(index, compSize, type, normalized, stride,
|
963
|
+
# @!method rlSetVertexAttribute(index, compSize, type, normalized, stride, offset)
|
944
964
|
# rlSetVertexAttribute : Set vertex attribute data configuration
|
945
965
|
# @param index [unsigned int]
|
946
966
|
# @param compSize [int]
|
947
967
|
# @param type [int]
|
948
968
|
# @param normalized [bool]
|
949
969
|
# @param stride [int]
|
950
|
-
# @param
|
970
|
+
# @param offset [int]
|
951
971
|
# @return [void]
|
952
|
-
[:rlSetVertexAttribute, :rlSetVertexAttribute, [:uint, :int, :int, :bool, :int, :
|
972
|
+
[:rlSetVertexAttribute, :rlSetVertexAttribute, [:uint, :int, :int, :bool, :int, :int], :void],
|
953
973
|
|
954
974
|
# @!method rlSetVertexAttributeDivisor(index, divisor)
|
955
975
|
# rlSetVertexAttributeDivisor : Set vertex attribute data divisor
|
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.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: x86_64-darwin
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
rubygems_version: 3.5.
|
74
|
+
rubygems_version: 3.5.11
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Ruby bindings for raylib, raygui and Physac
|