raylib-bindings 0.7.4-arm64-darwin → 0.7.6-arm64-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 +16 -0
- data/README.md +3 -3
- data/lib/libraylib.arm64.dylib +0 -0
- data/lib/physac.arm64.dylib +0 -0
- data/lib/raygui.arm64.dylib +0 -0
- data/lib/raygui_main.rb +7 -6
- data/lib/raylib_main.rb +74 -7
- data/lib/raymath.rb +9 -0
- 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: 85982d98d536b3f9e43a42d7a99cb6adb52475d2b1ec47b22651fe0755621c22
|
4
|
+
data.tar.gz: f4cb66f31b1bde7ff8a7cad05cd3aec7805ffba584ec0dc236ec347630041fc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1292cd0efdf546a69feee4c2116879b00f9b0bdeab5a145ef16b5f0e136e77719d375073e3a0fd388db4c82af5d5b94664a676516c7a2efbeef6beb3932fdff
|
7
|
+
data.tar.gz: ea869020884b9541f244aa895121ee9c5ee0aecd9fc198f9ae73a517850a5e2415aa6b48aa3c2e24bd0bede68879c7c4f0ad2b894a15f6f86588d6a6115b6610
|
data/ChangeLog
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
2024-08-12 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/418b8780533e6d7822aefcd1a1dd3cb6cca95fa5 )
|
4
|
+
|
5
|
+
2024-07-28 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/e5a1fc4f20f9daca17a2f76ffe217b1128625d0b ) and raygui ( https://github.com/raysan5/raygui/commit/33f16596091e8147d01f948e7125db02cfae5faa )
|
8
|
+
|
9
|
+
2024-07-14 vaiorabbit <http://twitter.com/vaiorabbit>
|
10
|
+
|
11
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/5ede47618bd9f9a440af648da1b4817e51644994 ) and raygui ( https://github.com/raysan5/raygui/commit/3fb9d77a67243497e10ae0448374a52a2a65e26f )
|
12
|
+
|
13
|
+
2024-06-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
14
|
+
|
15
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/c1ea32655aad97402ea3b215ab7b414d0809bb8d ) and raygui ( https://github.com/raysan5/raygui/commit/0f832e6a6edfa77a93c327617468b15755cb05ce )
|
16
|
+
|
1
17
|
2024-06-15 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
18
|
|
3
19
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/b4fbdc028302f9a697f196e8d02a7dca28912f59 ) and raygui ( https://github.com/raysan5/raygui/commit/4b3d94f5df6a5a2aa86286350f7e20c0ca35f516 )
|
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-08-12
|
7
7
|
|
8
8
|
Provides Ruby bindings for raylib-related libraries including:
|
9
9
|
|
10
|
-
* [raylib](https://github.com/raysan5/raylib) version [5.
|
10
|
+
* [raylib](https://github.com/raysan5/raylib) version [5.5-dev]( https://github.com/raysan5/raylib/commit/418b8780533e6d7822aefcd1a1dd3cb6cca95fa5 )
|
11
11
|
* raylib
|
12
12
|
* raymath
|
13
13
|
* rlgl
|
14
|
-
* [raygui](https://github.com/raysan5/raygui) version [4.
|
14
|
+
* [raygui](https://github.com/raysan5/raygui) version [4.5-dev]( https://github.com/raysan5/raygui/commit/33f16596091e8147d01f948e7125db02cfae5faa )
|
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">
|
data/lib/libraylib.arm64.dylib
CHANGED
Binary file
|
data/lib/physac.arm64.dylib
CHANGED
Binary file
|
data/lib/raygui.arm64.dylib
CHANGED
Binary file
|
data/lib/raygui_main.rb
CHANGED
@@ -128,6 +128,7 @@ module Raylib
|
|
128
128
|
ARROW_PADDING = 16 # DropdownBox arrow separation from border and items
|
129
129
|
DROPDOWN_ITEMS_SPACING = 17 # DropdownBox items separation
|
130
130
|
DROPDOWN_ARROW_HIDDEN = 18 # DropdownBox arrow hidden
|
131
|
+
DROPDOWN_ROLL_UP = 19 # DropdownBox roll up flag (default rolls down)
|
131
132
|
|
132
133
|
# enum GuiTextBoxProperty
|
133
134
|
# TextBox/TextBoxMulti/ValueBox/Spinner
|
@@ -379,11 +380,11 @@ module Raylib
|
|
379
380
|
ICON_WARNING = 220
|
380
381
|
ICON_HELP_BOX = 221
|
381
382
|
ICON_INFO_BOX = 222
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
383
|
+
ICON_PRIORITY = 223
|
384
|
+
ICON_LAYERS_ISO = 224
|
385
|
+
ICON_LAYERS2 = 225
|
386
|
+
ICON_MLAYERS = 226
|
387
|
+
ICON_MAPS = 227
|
387
388
|
ICON_228 = 228
|
388
389
|
ICON_229 = 229
|
389
390
|
ICON_230 = 230
|
@@ -731,7 +732,7 @@ module Raylib
|
|
731
732
|
# @!method GuiValueBoxFloat(bounds, text, textValue, value, editMode)
|
732
733
|
# GuiValueBoxFloat : Value box control for float values
|
733
734
|
# @param bounds [Rectangle]
|
734
|
-
# @param text [const char*]
|
735
|
+
# @param text [const char *]
|
735
736
|
# @param textValue [char *]
|
736
737
|
# @param value [float *]
|
737
738
|
# @param editMode [bool]
|
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-dev"
|
18
18
|
|
19
19
|
# Enum
|
20
20
|
|
@@ -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
|
@@ -3132,6 +3132,13 @@ module Raylib
|
|
3132
3132
|
# @return [Image]
|
3133
3133
|
[:ImageFromImage, :ImageFromImage, [Image.by_value, Rectangle.by_value], Image.by_value],
|
3134
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
|
+
|
3135
3142
|
# @!method ImageText(text, fontSize, color)
|
3136
3143
|
# ImageText : Create an image from text (default font)
|
3137
3144
|
# @param text [const char *]
|
@@ -3207,9 +3214,9 @@ module Raylib
|
|
3207
3214
|
[:ImageBlurGaussian, :ImageBlurGaussian, [:pointer, :int], :void],
|
3208
3215
|
|
3209
3216
|
# @!method ImageKernelConvolution(image, kernel, kernelSize)
|
3210
|
-
# ImageKernelConvolution : Apply
|
3217
|
+
# ImageKernelConvolution : Apply custom square convolution kernel to image
|
3211
3218
|
# @param image [Image *]
|
3212
|
-
# @param kernel [float*]
|
3219
|
+
# @param kernel [const float *]
|
3213
3220
|
# @param kernelSize [int]
|
3214
3221
|
# @return [void]
|
3215
3222
|
[:ImageKernelConvolution, :ImageKernelConvolution, [:pointer, :pointer, :int], :void],
|
@@ -3414,6 +3421,16 @@ module Raylib
|
|
3414
3421
|
# @return [void]
|
3415
3422
|
[:ImageDrawLineV, :ImageDrawLineV, [:pointer, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
3416
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
|
+
|
3417
3434
|
# @!method ImageDrawCircle(dst, centerX, centerY, radius, color)
|
3418
3435
|
# ImageDrawCircle : Draw a filled circle within an image
|
3419
3436
|
# @param dst [Image *]
|
@@ -3489,6 +3506,56 @@ module Raylib
|
|
3489
3506
|
# @return [void]
|
3490
3507
|
[:ImageDrawRectangleLines, :ImageDrawRectangleLines, [:pointer, Rectangle.by_value, :int, Color.by_value], :void],
|
3491
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
|
+
|
3492
3559
|
# @!method ImageDraw(dst, src, srcRec, dstRec, tint)
|
3493
3560
|
# ImageDraw : Draw a source image within a destination image (tint applied to source)
|
3494
3561
|
# @param dst [Image *]
|
@@ -4424,12 +4491,12 @@ module Raylib
|
|
4424
4491
|
# @return [void]
|
4425
4492
|
[:DrawBoundingBox, :DrawBoundingBox, [BoundingBox.by_value, Color.by_value], :void],
|
4426
4493
|
|
4427
|
-
# @!method DrawBillboard(camera, texture, position,
|
4494
|
+
# @!method DrawBillboard(camera, texture, position, scale, tint)
|
4428
4495
|
# DrawBillboard : Draw a billboard texture
|
4429
4496
|
# @param camera [Camera]
|
4430
4497
|
# @param texture [Texture2D]
|
4431
4498
|
# @param position [Vector3]
|
4432
|
-
# @param
|
4499
|
+
# @param scale [float]
|
4433
4500
|
# @param tint [Color]
|
4434
4501
|
# @return [void]
|
4435
4502
|
[:DrawBillboard, :DrawBillboard, [Camera.by_value, Texture2D.by_value, Vector3.by_value, :float, Color.by_value], :void],
|
data/lib/raymath.rb
CHANGED
@@ -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
|
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.6
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-12 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.15
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Ruby bindings for raylib, raygui and Physac
|