raylib-bindings 0.7.3-x64-mingw → 0.7.5-x64-mingw
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 +13 -6
- data/lib/config.rb +1 -0
- data/lib/libraylib.dll +0 -0
- data/lib/physac.dll +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raygui_main.rb +16 -4
- data/lib/raylib_main.rb +121 -27
- data/lib/raymath.rb +12 -3
- data/lib/rlgl.rb +3 -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: 8b819394c433dd6a2a4a27c1862d6d2718becc8314b0945b0f39cab024b43000
|
4
|
+
data.tar.gz: effb56fba4f2ab94f92bb2d24260327fba347d047a9dae91a5cc3cb7d202cbdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 468f59cc8ba1a8e9ca442b199c9cd19f13cdab8743d083ed2bdd2a217df4e03bc5ba46609811b4f2162e3894055595c23870c5d7262f3e28014ad3326225c6c0
|
7
|
+
data.tar.gz: '096504219a0f1de7d32aa477bd4bfaf757d880522956b233a9e33c91ab23faf37ba38e2d891b3ee8670325f005e4b7002a42ea3bbbdedb23d600c26ab38bc3c9'
|
data/ChangeLog
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
2024-07-14 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/5ede47618bd9f9a440af648da1b4817e51644994 ) and raygui ( https://github.com/raysan5/raygui/commit/3fb9d77a67243497e10ae0448374a52a2a65e26f )
|
4
|
+
|
5
|
+
2024-06-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/c1ea32655aad97402ea3b215ab7b414d0809bb8d ) and raygui ( https://github.com/raysan5/raygui/commit/0f832e6a6edfa77a93c327617468b15755cb05ce )
|
8
|
+
|
9
|
+
2024-06-15 vaiorabbit <http://twitter.com/vaiorabbit>
|
10
|
+
|
11
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/b4fbdc028302f9a697f196e8d02a7dca28912f59 ) and raygui ( https://github.com/raysan5/raygui/commit/4b3d94f5df6a5a2aa86286350f7e20c0ca35f516 )
|
12
|
+
|
13
|
+
2024-05-25 vaiorabbit <http://twitter.com/vaiorabbit>
|
14
|
+
|
15
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/785ec74b92da4f91181ff7b1c89c8ae5ee19f1b6 ) and raygui ( https://github.com/raysan5/raygui/commit/7bb66e5c7f3e283995a43c68965ee82acc65637a )
|
16
|
+
|
17
|
+
2024-05-12 vaiorabbit <http://twitter.com/vaiorabbit>
|
18
|
+
|
19
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/f62202198e35161a9fe394a14bbd1a7c655107ad ) and raygui ( https://github.com/raysan5/raygui/commit/12804826d01bfb636e36f816bda19eaa23b4ace7 )
|
20
|
+
* Fixed constant redefinition warnings. (Ref.: https://github.com/raysan5/raylib/commit/33b32ca53a7817a9cfdb1840a8ab75fa7cb47723 https://github.com/raysan5/raylib/blob/f62202198e35161a9fe394a14bbd1a7c655107ad/src/config.h#L115-L121 )
|
21
|
+
|
1
22
|
2024-05-04 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
23
|
|
3
24
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/f1007554a0a8145060797c0aa8169bdaf2c1c6b8 ) and raygui ( https://github.com/raysan5/raygui/commit/a3a0e86e215145c28726e6f469f13d0aa6647a5e )
|
data/README.md
CHANGED
@@ -3,15 +3,15 @@
|
|
3
3
|
# Yet another raylib wrapper for Ruby #
|
4
4
|
|
5
5
|
* Created : 2021-10-17
|
6
|
-
* Last modified : 2024-
|
6
|
+
* Last modified : 2024-07-14
|
7
7
|
|
8
8
|
Provides Ruby bindings for raylib-related libraries including:
|
9
9
|
|
10
|
-
* [raylib](https://github.com/raysan5/raylib) version [5.1-dev]( https://github.com/raysan5/raylib/commit/
|
10
|
+
* [raylib](https://github.com/raysan5/raylib) version [5.1-dev]( https://github.com/raysan5/raylib/commit/5ede47618bd9f9a440af648da1b4817e51644994 )
|
11
11
|
* raylib
|
12
12
|
* raymath
|
13
13
|
* rlgl
|
14
|
-
* [raygui](https://github.com/raysan5/raygui) version [4.1-dev]( https://github.com/raysan5/raygui/commit/
|
14
|
+
* [raygui](https://github.com/raysan5/raygui) version [4.1-dev]( https://github.com/raysan5/raygui/commit/3fb9d77a67243497e10ae0448374a52a2a65e26f )
|
15
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">
|
@@ -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
|
data/lib/config.rb
CHANGED
@@ -79,6 +79,7 @@ module Raylib
|
|
79
79
|
SUPPORT_IMAGE_MANIPULATION = 1
|
80
80
|
SUPPORT_DEFAULT_FONT = 1
|
81
81
|
SUPPORT_FILEFORMAT_TTF = 1
|
82
|
+
SUPPORT_FILEFORMAT_FNT = 1
|
82
83
|
SUPPORT_TEXT_MANIPULATION = 1
|
83
84
|
SUPPORT_FONT_ATLAS_WHITE_REC = 1
|
84
85
|
MAX_TEXT_BUFFER_LENGTH = 1024 # Size of internal static buffers used on some functions:
|
data/lib/libraylib.dll
CHANGED
Binary file
|
data/lib/physac.dll
CHANGED
Binary file
|
data/lib/raygui.dll
CHANGED
Binary file
|
data/lib/raygui_main.rb
CHANGED
@@ -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
@@ -12,9 +12,9 @@ module Raylib
|
|
12
12
|
# Define/Macro
|
13
13
|
|
14
14
|
RAYLIB_VERSION_MAJOR = 5
|
15
|
-
RAYLIB_VERSION_MINOR =
|
15
|
+
RAYLIB_VERSION_MINOR = 5
|
16
16
|
RAYLIB_VERSION_PATCH = 0
|
17
|
-
RAYLIB_VERSION = "5.
|
17
|
+
RAYLIB_VERSION = "5.5"
|
18
18
|
|
19
19
|
# Enum
|
20
20
|
|
@@ -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
|
@@ -899,7 +899,7 @@ module Raylib
|
|
899
899
|
class Ray < FFI::Struct
|
900
900
|
layout(
|
901
901
|
:position, Vector3, # Ray position (origin)
|
902
|
-
:direction, Vector3, # Ray direction
|
902
|
+
:direction, Vector3, # Ray direction (normalized)
|
903
903
|
)
|
904
904
|
def position = self[:position]
|
905
905
|
def position=(v) self[:position] = v end
|
@@ -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]
|
@@ -2657,7 +2663,7 @@ module Raylib
|
|
2657
2663
|
|
2658
2664
|
# @!method DrawTriangleFan(points, pointCount, color)
|
2659
2665
|
# DrawTriangleFan : Draw a triangle fan defined by points (first vertex is the center)
|
2660
|
-
# @param points [Vector2 *]
|
2666
|
+
# @param points [const Vector2 *]
|
2661
2667
|
# @param pointCount [int]
|
2662
2668
|
# @param color [Color]
|
2663
2669
|
# @return [void]
|
@@ -2665,7 +2671,7 @@ module Raylib
|
|
2665
2671
|
|
2666
2672
|
# @!method DrawTriangleStrip(points, pointCount, color)
|
2667
2673
|
# DrawTriangleStrip : Draw a triangle strip defined by points
|
2668
|
-
# @param points [Vector2 *]
|
2674
|
+
# @param points [const Vector2 *]
|
2669
2675
|
# @param pointCount [int]
|
2670
2676
|
# @param color [Color]
|
2671
2677
|
# @return [void]
|
@@ -2704,7 +2710,7 @@ module Raylib
|
|
2704
2710
|
|
2705
2711
|
# @!method DrawSplineLinear(points, pointCount, thick, color)
|
2706
2712
|
# DrawSplineLinear : Draw spline: Linear, minimum 2 points
|
2707
|
-
# @param points [Vector2 *]
|
2713
|
+
# @param points [const Vector2 *]
|
2708
2714
|
# @param pointCount [int]
|
2709
2715
|
# @param thick [float]
|
2710
2716
|
# @param color [Color]
|
@@ -2713,7 +2719,7 @@ module Raylib
|
|
2713
2719
|
|
2714
2720
|
# @!method DrawSplineBasis(points, pointCount, thick, color)
|
2715
2721
|
# DrawSplineBasis : Draw spline: B-Spline, minimum 4 points
|
2716
|
-
# @param points [Vector2 *]
|
2722
|
+
# @param points [const Vector2 *]
|
2717
2723
|
# @param pointCount [int]
|
2718
2724
|
# @param thick [float]
|
2719
2725
|
# @param color [Color]
|
@@ -2722,7 +2728,7 @@ module Raylib
|
|
2722
2728
|
|
2723
2729
|
# @!method DrawSplineCatmullRom(points, pointCount, thick, color)
|
2724
2730
|
# DrawSplineCatmullRom : Draw spline: Catmull-Rom, minimum 4 points
|
2725
|
-
# @param points [Vector2 *]
|
2731
|
+
# @param points [const Vector2 *]
|
2726
2732
|
# @param pointCount [int]
|
2727
2733
|
# @param thick [float]
|
2728
2734
|
# @param color [Color]
|
@@ -2731,7 +2737,7 @@ module Raylib
|
|
2731
2737
|
|
2732
2738
|
# @!method DrawSplineBezierQuadratic(points, pointCount, thick, color)
|
2733
2739
|
# DrawSplineBezierQuadratic : Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]
|
2734
|
-
# @param points [Vector2 *]
|
2740
|
+
# @param points [const Vector2 *]
|
2735
2741
|
# @param pointCount [int]
|
2736
2742
|
# @param thick [float]
|
2737
2743
|
# @param color [Color]
|
@@ -2740,7 +2746,7 @@ module Raylib
|
|
2740
2746
|
|
2741
2747
|
# @!method DrawSplineBezierCubic(points, pointCount, thick, color)
|
2742
2748
|
# DrawSplineBezierCubic : Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]
|
2743
|
-
# @param points [Vector2 *]
|
2749
|
+
# @param points [const Vector2 *]
|
2744
2750
|
# @param pointCount [int]
|
2745
2751
|
# @param thick [float]
|
2746
2752
|
# @param color [Color]
|
@@ -2897,7 +2903,7 @@ module Raylib
|
|
2897
2903
|
# @!method CheckCollisionPointPoly(point, points, pointCount)
|
2898
2904
|
# CheckCollisionPointPoly : Check if point is within a polygon described by array of vertices
|
2899
2905
|
# @param point [Vector2]
|
2900
|
-
# @param points [Vector2 *]
|
2906
|
+
# @param points [const Vector2 *]
|
2901
2907
|
# @param pointCount [int]
|
2902
2908
|
# @return [bool]
|
2903
2909
|
[:CheckCollisionPointPoly, :CheckCollisionPointPoly, [Vector2.by_value, :pointer, :int], :bool],
|
@@ -2921,6 +2927,15 @@ module Raylib
|
|
2921
2927
|
# @return [bool]
|
2922
2928
|
[:CheckCollisionPointLine, :CheckCollisionPointLine, [Vector2.by_value, Vector2.by_value, Vector2.by_value, :int], :bool],
|
2923
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
|
+
|
2924
2939
|
# @!method GetCollisionRec(rec1, rec2)
|
2925
2940
|
# GetCollisionRec : Get collision rectangle for two rectangles collision
|
2926
2941
|
# @param rec1 [Rectangle]
|
@@ -3117,6 +3132,13 @@ module Raylib
|
|
3117
3132
|
# @return [Image]
|
3118
3133
|
[:ImageFromImage, :ImageFromImage, [Image.by_value, Rectangle.by_value], Image.by_value],
|
3119
3134
|
|
3135
|
+
# @!method ImageFromChannel(image, selectedChannel)
|
3136
|
+
# ImageFromChannel : Create an image from a selected channel of another image (GRAYSCALE)
|
3137
|
+
# @param image [Image]
|
3138
|
+
# @param selectedChannel [int]
|
3139
|
+
# @return [Image]
|
3140
|
+
[:ImageFromChannel, :ImageFromChannel, [Image.by_value, :int], Image.by_value],
|
3141
|
+
|
3120
3142
|
# @!method ImageText(text, fontSize, color)
|
3121
3143
|
# ImageText : Create an image from text (default font)
|
3122
3144
|
# @param text [const char *]
|
@@ -3192,9 +3214,9 @@ module Raylib
|
|
3192
3214
|
[:ImageBlurGaussian, :ImageBlurGaussian, [:pointer, :int], :void],
|
3193
3215
|
|
3194
3216
|
# @!method ImageKernelConvolution(image, kernel, kernelSize)
|
3195
|
-
# ImageKernelConvolution : Apply
|
3217
|
+
# ImageKernelConvolution : Apply custom square convolution kernel to image
|
3196
3218
|
# @param image [Image *]
|
3197
|
-
# @param kernel [float*]
|
3219
|
+
# @param kernel [const float *]
|
3198
3220
|
# @param kernelSize [int]
|
3199
3221
|
# @return [void]
|
3200
3222
|
[:ImageKernelConvolution, :ImageKernelConvolution, [:pointer, :pointer, :int], :void],
|
@@ -3399,6 +3421,16 @@ module Raylib
|
|
3399
3421
|
# @return [void]
|
3400
3422
|
[:ImageDrawLineV, :ImageDrawLineV, [:pointer, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
3401
3423
|
|
3424
|
+
# @!method ImageDrawLineEx(dst, start, end, thick, color)
|
3425
|
+
# ImageDrawLineEx : Draw a line defining thickness within an image
|
3426
|
+
# @param dst [Image *]
|
3427
|
+
# @param start [Vector2]
|
3428
|
+
# @param end [Vector2]
|
3429
|
+
# @param thick [int]
|
3430
|
+
# @param color [Color]
|
3431
|
+
# @return [void]
|
3432
|
+
[:ImageDrawLineEx, :ImageDrawLineEx, [:pointer, Vector2.by_value, Vector2.by_value, :int, Color.by_value], :void],
|
3433
|
+
|
3402
3434
|
# @!method ImageDrawCircle(dst, centerX, centerY, radius, color)
|
3403
3435
|
# ImageDrawCircle : Draw a filled circle within an image
|
3404
3436
|
# @param dst [Image *]
|
@@ -3474,6 +3506,56 @@ module Raylib
|
|
3474
3506
|
# @return [void]
|
3475
3507
|
[:ImageDrawRectangleLines, :ImageDrawRectangleLines, [:pointer, Rectangle.by_value, :int, Color.by_value], :void],
|
3476
3508
|
|
3509
|
+
# @!method ImageDrawTriangle(dst, v1, v2, v3, color)
|
3510
|
+
# ImageDrawTriangle : Draw triangle within an image
|
3511
|
+
# @param dst [Image *]
|
3512
|
+
# @param v1 [Vector2]
|
3513
|
+
# @param v2 [Vector2]
|
3514
|
+
# @param v3 [Vector2]
|
3515
|
+
# @param color [Color]
|
3516
|
+
# @return [void]
|
3517
|
+
[:ImageDrawTriangle, :ImageDrawTriangle, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
3518
|
+
|
3519
|
+
# @!method ImageDrawTriangleEx(dst, v1, v2, v3, c1, c2, c3)
|
3520
|
+
# ImageDrawTriangleEx : Draw triangle with interpolated colors within an image
|
3521
|
+
# @param dst [Image *]
|
3522
|
+
# @param v1 [Vector2]
|
3523
|
+
# @param v2 [Vector2]
|
3524
|
+
# @param v3 [Vector2]
|
3525
|
+
# @param c1 [Color]
|
3526
|
+
# @param c2 [Color]
|
3527
|
+
# @param c3 [Color]
|
3528
|
+
# @return [void]
|
3529
|
+
[:ImageDrawTriangleEx, :ImageDrawTriangleEx, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
|
3530
|
+
|
3531
|
+
# @!method ImageDrawTriangleLines(dst, v1, v2, v3, color)
|
3532
|
+
# ImageDrawTriangleLines : Draw triangle outline within an image
|
3533
|
+
# @param dst [Image *]
|
3534
|
+
# @param v1 [Vector2]
|
3535
|
+
# @param v2 [Vector2]
|
3536
|
+
# @param v3 [Vector2]
|
3537
|
+
# @param color [Color]
|
3538
|
+
# @return [void]
|
3539
|
+
[:ImageDrawTriangleLines, :ImageDrawTriangleLines, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
3540
|
+
|
3541
|
+
# @!method ImageDrawTriangleFan(dst, points, pointCount, color)
|
3542
|
+
# ImageDrawTriangleFan : Draw a triangle fan defined by points within an image (first vertex is the center)
|
3543
|
+
# @param dst [Image *]
|
3544
|
+
# @param points [Vector2 *]
|
3545
|
+
# @param pointCount [int]
|
3546
|
+
# @param color [Color]
|
3547
|
+
# @return [void]
|
3548
|
+
[:ImageDrawTriangleFan, :ImageDrawTriangleFan, [:pointer, :pointer, :int, Color.by_value], :void],
|
3549
|
+
|
3550
|
+
# @!method ImageDrawTriangleStrip(dst, points, pointCount, color)
|
3551
|
+
# ImageDrawTriangleStrip : Draw a triangle strip defined by points within an image
|
3552
|
+
# @param dst [Image *]
|
3553
|
+
# @param points [Vector2 *]
|
3554
|
+
# @param pointCount [int]
|
3555
|
+
# @param color [Color]
|
3556
|
+
# @return [void]
|
3557
|
+
[:ImageDrawTriangleStrip, :ImageDrawTriangleStrip, [:pointer, :pointer, :int, Color.by_value], :void],
|
3558
|
+
|
3477
3559
|
# @!method ImageDraw(dst, src, srcRec, dstRec, tint)
|
3478
3560
|
# ImageDraw : Draw a source image within a destination image (tint applied to source)
|
3479
3561
|
# @param dst [Image *]
|
@@ -4114,6 +4196,18 @@ module Raylib
|
|
4114
4196
|
# @return [const char *]
|
4115
4197
|
[:TextToPascal, :TextToPascal, [:pointer], :pointer],
|
4116
4198
|
|
4199
|
+
# @!method TextToSnake(text)
|
4200
|
+
# TextToSnake : Get Snake case notation version of provided string
|
4201
|
+
# @param text [const char *]
|
4202
|
+
# @return [const char *]
|
4203
|
+
[:TextToSnake, :TextToSnake, [:pointer], :pointer],
|
4204
|
+
|
4205
|
+
# @!method TextToCamel(text)
|
4206
|
+
# TextToCamel : Get Camel case notation version of provided string
|
4207
|
+
# @param text [const char *]
|
4208
|
+
# @return [const char *]
|
4209
|
+
[:TextToCamel, :TextToCamel, [:pointer], :pointer],
|
4210
|
+
|
4117
4211
|
# @!method TextToInteger(text)
|
4118
4212
|
# TextToInteger : Get integer value from text (negative values not supported)
|
4119
4213
|
# @param text [const char *]
|
@@ -4162,7 +4256,7 @@ module Raylib
|
|
4162
4256
|
|
4163
4257
|
# @!method DrawTriangleStrip3D(points, pointCount, color)
|
4164
4258
|
# DrawTriangleStrip3D : Draw a triangle strip defined by points
|
4165
|
-
# @param points [Vector3 *]
|
4259
|
+
# @param points [const Vector3 *]
|
4166
4260
|
# @param pointCount [int]
|
4167
4261
|
# @param color [Color]
|
4168
4262
|
# @return [void]
|
@@ -4397,12 +4491,12 @@ module Raylib
|
|
4397
4491
|
# @return [void]
|
4398
4492
|
[:DrawBoundingBox, :DrawBoundingBox, [BoundingBox.by_value, Color.by_value], :void],
|
4399
4493
|
|
4400
|
-
# @!method DrawBillboard(camera, texture, position,
|
4494
|
+
# @!method DrawBillboard(camera, texture, position, scale, tint)
|
4401
4495
|
# DrawBillboard : Draw a billboard texture
|
4402
4496
|
# @param camera [Camera]
|
4403
4497
|
# @param texture [Texture2D]
|
4404
4498
|
# @param position [Vector3]
|
4405
|
-
# @param
|
4499
|
+
# @param scale [float]
|
4406
4500
|
# @param tint [Color]
|
4407
4501
|
# @return [void]
|
4408
4502
|
[:DrawBillboard, :DrawBillboard, [Camera.by_value, Texture2D.by_value, Vector3.by_value, :float, Color.by_value], :void],
|
@@ -4894,11 +4988,11 @@ module Raylib
|
|
4894
4988
|
# @return [Wave]
|
4895
4989
|
[:WaveCopy, :WaveCopy, [Wave.by_value], Wave.by_value],
|
4896
4990
|
|
4897
|
-
# @!method WaveCrop(wave,
|
4898
|
-
# WaveCrop : Crop a wave to defined
|
4991
|
+
# @!method WaveCrop(wave, initFrame, finalFrame)
|
4992
|
+
# WaveCrop : Crop a wave to defined frames range
|
4899
4993
|
# @param wave [Wave *]
|
4900
|
-
# @param
|
4901
|
-
# @param
|
4994
|
+
# @param initFrame [int]
|
4995
|
+
# @param finalFrame [int]
|
4902
4996
|
# @return [void]
|
4903
4997
|
[:WaveCrop, :WaveCrop, [:pointer, :int, :int], :void],
|
4904
4998
|
|
data/lib/raymath.rb
CHANGED
@@ -820,14 +820,14 @@ module Raylib
|
|
820
820
|
# @return [Matrix]
|
821
821
|
[:MatrixScale, :MatrixScale, [:float, :float, :float], Matrix.by_value],
|
822
822
|
|
823
|
-
# @!method MatrixFrustum(left, right, bottom, top,
|
823
|
+
# @!method MatrixFrustum(left, right, bottom, top, nearPlane, farPlane)
|
824
824
|
# MatrixFrustum
|
825
825
|
# @param left [double]
|
826
826
|
# @param right [double]
|
827
827
|
# @param bottom [double]
|
828
828
|
# @param top [double]
|
829
|
-
# @param
|
830
|
-
# @param
|
829
|
+
# @param nearPlane [double]
|
830
|
+
# @param farPlane [double]
|
831
831
|
# @return [Matrix]
|
832
832
|
[:MatrixFrustum, :MatrixFrustum, [:double, :double, :double, :double, :double, :double], Matrix.by_value],
|
833
833
|
|
@@ -1032,6 +1032,15 @@ module Raylib
|
|
1032
1032
|
# @param q [Quaternion]
|
1033
1033
|
# @return [int]
|
1034
1034
|
[:QuaternionEquals, :QuaternionEquals, [Quaternion.by_value, Quaternion.by_value], :int],
|
1035
|
+
|
1036
|
+
# @!method MatrixDecompose(mat, translation, rotation, scale)
|
1037
|
+
# MatrixDecompose
|
1038
|
+
# @param mat [Matrix]
|
1039
|
+
# @param translation [Vector3 *]
|
1040
|
+
# @param rotation [Quaternion *]
|
1041
|
+
# @param scale [Vector3 *]
|
1042
|
+
# @return [void]
|
1043
|
+
[:MatrixDecompose, :MatrixDecompose, [Matrix.by_value, :pointer, :pointer, :pointer], :void],
|
1035
1044
|
]
|
1036
1045
|
entries.each do |entry|
|
1037
1046
|
api_name = if method_naming == :snake_case
|
data/lib/rlgl.rb
CHANGED
@@ -404,22 +404,20 @@ module Raylib
|
|
404
404
|
# @return [void]
|
405
405
|
[:rlViewport, :rlViewport, [:int, :int, :int, :int], :void],
|
406
406
|
|
407
|
-
# @!method rlSetClipPlanes(
|
407
|
+
# @!method rlSetClipPlanes(nearPlane, farPlane)
|
408
408
|
# rlSetClipPlanes : Set clip planes distances
|
409
|
-
# @param
|
410
|
-
# @param
|
409
|
+
# @param nearPlane [double]
|
410
|
+
# @param farPlane [double]
|
411
411
|
# @return [void]
|
412
412
|
[:rlSetClipPlanes, :rlSetClipPlanes, [:double, :double], :void],
|
413
413
|
|
414
414
|
# @!method rlGetCullDistanceNear()
|
415
415
|
# rlGetCullDistanceNear : Get cull plane distance near
|
416
|
-
# @param []
|
417
416
|
# @return [double]
|
418
417
|
[:rlGetCullDistanceNear, :rlGetCullDistanceNear, [], :double],
|
419
418
|
|
420
419
|
# @!method rlGetCullDistanceFar()
|
421
420
|
# rlGetCullDistanceFar : Get cull plane distance far
|
422
|
-
# @param []
|
423
421
|
# @return [double]
|
424
422
|
[:rlGetCullDistanceFar, :rlGetCullDistanceFar, [], :double],
|
425
423
|
|
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.5
|
5
5
|
platform: x64-mingw
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-14 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
|