raylib-bindings 0.7.0-aarch64-linux → 0.7.1-aarch64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da46865198fe416cdeccb2c9c9b96d5094f9ce39e0d560a6db1d5d6212bc878f
4
- data.tar.gz: d314ee512cc4e903107f1be7edf962c5c9b2bc8618b758648f0fa3b64f9ec548
3
+ metadata.gz: 0e77403cc33aab7e3fdf0c7f507aca23ac36b00c799f07568e1a1c858500ed70
4
+ data.tar.gz: d8e95e584fe122f8f32abace178838a691b936b7e2156f75eecf73385df9055f
5
5
  SHA512:
6
- metadata.gz: 5752c140e57a779931c9053b5a48c90252d8987e7a4c122f1d16de6e26036a89a0d11c5646cc062a310966ba94c3d87bf3e4f4ac46db392695688ddd73b85324
7
- data.tar.gz: 8b22607835a9becda47139b676eac5825014fff696ff5d1a58348616610b570fdd8542f4a369695a0c3bcee7d39ca0fa2b36db9b798ea32a69892ff779f3f618
6
+ metadata.gz: 1e22db9b20025305d1203fdc0db74a893d4d9f5eb4d0ea4eaf5bb84cdeff6d5b65796888db341c7de5340d9260538e304291b396c1f210f00c103c2d1a458ecd
7
+ data.tar.gz: 0341012227ef3b8fe1fb25c36e8a8a024b511682352465726db4466c6bbd5bb5e4fc1a860d0e4e3df003dff02fefaf93c60e86938316db8abda048d7e1c4bc54
data/ChangeLog CHANGED
@@ -1,3 +1,15 @@
1
+ 2024-03-02 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/25caf14be8d0284aceaa0de28753b3012e71b7bb )
4
+
5
+ 2024-02-25 vaiorabbit <http://twitter.com/vaiorabbit>
6
+
7
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/2a774a88f5532908e09b15602d1482be96470f7f ) and raygui ( https://github.com/raysan5/raygui/commit/bc67f42209cc32965c7d1c00028e3ed0c4158659 )
8
+
9
+ 2024-02-18 vaiorabbit <http://twitter.com/vaiorabbit>
10
+
11
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/c251e9309e066b9d2aa5ecbd15bcee45b9bef528 ) and raygui ( https://github.com/raysan5/raygui/commit/a9e5e900586cc264d5af5c88552b66bafe9970f5 )
12
+
1
13
  2024-02-03 vaiorabbit <http://twitter.com/vaiorabbit>
2
14
 
3
15
  * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/29ff658d9223068378269e4a705811f085fafdf4 ) and raygui ( https://github.com/raysan5/raygui/commit/58411f4cceb8ae82933f2001461db9940278fdeb )
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  # Yet another raylib wrapper for Ruby #
4
4
 
5
5
  * Created : 2021-10-17
6
- * Last modified : 2024-02-03
6
+ * Last modified : 2024-03-02
7
7
 
8
8
  Provides Ruby bindings for raylib-related libraries including:
9
9
 
data/lib/config.rb CHANGED
@@ -34,6 +34,7 @@ module Raylib
34
34
  MAX_GAMEPADS = 4 # Maximum number of gamepads supported
35
35
  MAX_GAMEPAD_AXIS = 8 # Maximum number of axis supported (per gamepad)
36
36
  MAX_GAMEPAD_BUTTONS = 32 # Maximum number of buttons supported (per gamepad)
37
+ MAX_GAMEPAD_VIBRATION_TIME = 2.0 # Maximum vibration time in seconds
37
38
  MAX_TOUCH_POINTS = 8 # Maximum number of touch points supported
38
39
  MAX_KEY_PRESSED_QUEUE = 16 # Maximum number of keys in the key input queue
39
40
  MAX_CHAR_PRESSED_QUEUE = 16 # Maximum number of characters in the char input queue
@@ -73,6 +74,7 @@ module Raylib
73
74
  SUPPORT_DEFAULT_FONT = 1
74
75
  SUPPORT_FILEFORMAT_FNT = 1
75
76
  SUPPORT_FILEFORMAT_TTF = 1
77
+ SUPPORT_FILEFORMAT_BDF = 1
76
78
  SUPPORT_TEXT_MANIPULATION = 1
77
79
  SUPPORT_FONT_ATLAS_WHITE_REC = 1
78
80
  MAX_TEXT_BUFFER_LENGTH = 1024 # Size of internal static buffers used on some functions:
Binary file
Binary file
Binary file
data/lib/raylib_main.rb CHANGED
@@ -1614,17 +1614,14 @@ module Raylib
1614
1614
  # @return [Ray]
1615
1615
  [:GetMouseRay, :GetMouseRay, [Vector2.by_value, Camera.by_value], Ray.by_value],
1616
1616
 
1617
- # @!method GetCameraMatrix(camera)
1618
- # GetCameraMatrix : Get camera transform matrix (view matrix)
1617
+ # @!method GetViewRay(mousePosition, camera, width, height)
1618
+ # GetViewRay : Get a ray trace from mouse position in a viewport
1619
+ # @param mousePosition [Vector2]
1619
1620
  # @param camera [Camera]
1620
- # @return [Matrix]
1621
- [:GetCameraMatrix, :GetCameraMatrix, [Camera.by_value], Matrix.by_value],
1622
-
1623
- # @!method GetCameraMatrix2D(camera)
1624
- # GetCameraMatrix2D : Get camera 2d transform matrix
1625
- # @param camera [Camera2D]
1626
- # @return [Matrix]
1627
- [:GetCameraMatrix2D, :GetCameraMatrix2D, [Camera2D.by_value], Matrix.by_value],
1621
+ # @param width [float]
1622
+ # @param height [float]
1623
+ # @return [Ray]
1624
+ [:GetViewRay, :GetViewRay, [Vector2.by_value, Camera.by_value, :float, :float], Ray.by_value],
1628
1625
 
1629
1626
  # @!method GetWorldToScreen(position, camera)
1630
1627
  # GetWorldToScreen : Get the screen space position for a 3d world space position
@@ -1633,13 +1630,6 @@ module Raylib
1633
1630
  # @return [Vector2]
1634
1631
  [:GetWorldToScreen, :GetWorldToScreen, [Vector3.by_value, Camera.by_value], Vector2.by_value],
1635
1632
 
1636
- # @!method GetScreenToWorld2D(position, camera)
1637
- # GetScreenToWorld2D : Get the world space position for a 2d camera screen space position
1638
- # @param position [Vector2]
1639
- # @param camera [Camera2D]
1640
- # @return [Vector2]
1641
- [:GetScreenToWorld2D, :GetScreenToWorld2D, [Vector2.by_value, Camera2D.by_value], Vector2.by_value],
1642
-
1643
1633
  # @!method GetWorldToScreenEx(position, camera, width, height)
1644
1634
  # GetWorldToScreenEx : Get size position for a 3d world space position
1645
1635
  # @param position [Vector3]
@@ -1656,6 +1646,25 @@ module Raylib
1656
1646
  # @return [Vector2]
1657
1647
  [:GetWorldToScreen2D, :GetWorldToScreen2D, [Vector2.by_value, Camera2D.by_value], Vector2.by_value],
1658
1648
 
1649
+ # @!method GetScreenToWorld2D(position, camera)
1650
+ # GetScreenToWorld2D : Get the world space position for a 2d camera screen space position
1651
+ # @param position [Vector2]
1652
+ # @param camera [Camera2D]
1653
+ # @return [Vector2]
1654
+ [:GetScreenToWorld2D, :GetScreenToWorld2D, [Vector2.by_value, Camera2D.by_value], Vector2.by_value],
1655
+
1656
+ # @!method GetCameraMatrix(camera)
1657
+ # GetCameraMatrix : Get camera transform matrix (view matrix)
1658
+ # @param camera [Camera]
1659
+ # @return [Matrix]
1660
+ [:GetCameraMatrix, :GetCameraMatrix, [Camera.by_value], Matrix.by_value],
1661
+
1662
+ # @!method GetCameraMatrix2D(camera)
1663
+ # GetCameraMatrix2D : Get camera 2d transform matrix
1664
+ # @param camera [Camera2D]
1665
+ # @return [Matrix]
1666
+ [:GetCameraMatrix2D, :GetCameraMatrix2D, [Camera2D.by_value], Matrix.by_value],
1667
+
1659
1668
  # @!method SetTargetFPS(fps)
1660
1669
  # SetTargetFPS : Set target FPS (maximum)
1661
1670
  # @param fps [int]
@@ -2156,6 +2165,14 @@ module Raylib
2156
2165
  # @return [int]
2157
2166
  [:SetGamepadMappings, :SetGamepadMappings, [:pointer], :int],
2158
2167
 
2168
+ # @!method SetGamepadVibration(gamepad, leftMotor, rightMotor)
2169
+ # SetGamepadVibration : Set gamepad vibration for both motors
2170
+ # @param gamepad [int]
2171
+ # @param leftMotor [float]
2172
+ # @param rightMotor [float]
2173
+ # @return [void]
2174
+ [:SetGamepadVibration, :SetGamepadVibration, [:int, :float, :float], :void],
2175
+
2159
2176
  # @!method IsMouseButtonPressed(button)
2160
2177
  # IsMouseButtonPressed : Check if a mouse button has been pressed once
2161
2178
  # @param button [int]
@@ -3624,6 +3641,13 @@ module Raylib
3624
3641
  # @return [void]
3625
3642
  [:DrawTextureNPatch, :DrawTextureNPatch, [Texture2D.by_value, NPatchInfo.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],
3626
3643
 
3644
+ # @!method ColorIsEqual(col1, col2)
3645
+ # ColorIsEqual : Check if two colors are equal
3646
+ # @param col1 [Color]
3647
+ # @param col2 [Color]
3648
+ # @return [bool]
3649
+ [:ColorIsEqual, :ColorIsEqual, [Color.by_value, Color.by_value], :bool],
3650
+
3627
3651
  # @!method Fade(color, alpha)
3628
3652
  # Fade : Get color with alpha applied, alpha goes from 0.0f to 1.0f
3629
3653
  # @param color [Color]
data/lib/raymath.rb CHANGED
@@ -230,6 +230,20 @@ module Raylib
230
230
  # @return [Vector2]
231
231
  [:Vector2Reflect, :Vector2Reflect, [Vector2.by_value, Vector2.by_value], Vector2.by_value],
232
232
 
233
+ # @!method Vector2Min(v1, v2)
234
+ # Vector2Min
235
+ # @param v1 [Vector2]
236
+ # @param v2 [Vector2]
237
+ # @return [Vector2]
238
+ [:Vector2Min, :Vector2Min, [Vector2.by_value, Vector2.by_value], Vector2.by_value],
239
+
240
+ # @!method Vector2Max(v1, v2)
241
+ # Vector2Max
242
+ # @param v1 [Vector2]
243
+ # @param v2 [Vector2]
244
+ # @return [Vector2]
245
+ [:Vector2Max, :Vector2Max, [Vector2.by_value, Vector2.by_value], Vector2.by_value],
246
+
233
247
  # @!method Vector2Rotate(v, angle)
234
248
  # Vector2Rotate
235
249
  # @param v [Vector2]
@@ -274,6 +288,14 @@ module Raylib
274
288
  # @return [int]
275
289
  [:Vector2Equals, :Vector2Equals, [Vector2.by_value, Vector2.by_value], :int],
276
290
 
291
+ # @!method Vector2Refract(v, n, r)
292
+ # Vector2Refract
293
+ # @param v [Vector2]
294
+ # @param n [Vector2]
295
+ # @param r [float]
296
+ # @return [Vector2]
297
+ [:Vector2Refract, :Vector2Refract, [Vector2.by_value, Vector2.by_value, :float], Vector2.by_value],
298
+
277
299
  # @!method Vector3Zero()
278
300
  # Vector3Zero
279
301
  # @return [Vector3]
@@ -441,6 +463,14 @@ module Raylib
441
463
  # @return [Vector3]
442
464
  [:Vector3RotateByAxisAngle, :Vector3RotateByAxisAngle, [Vector3.by_value, Vector3.by_value, :float], Vector3.by_value],
443
465
 
466
+ # @!method Vector3MoveTowards(v, target, maxDistance)
467
+ # Vector3MoveTowards
468
+ # @param v [Vector3]
469
+ # @param target [Vector3]
470
+ # @param maxDistance [float]
471
+ # @return [Vector3]
472
+ [:Vector3MoveTowards, :Vector3MoveTowards, [Vector3.by_value, Vector3.by_value, :float], Vector3.by_value],
473
+
444
474
  # @!method Vector3Lerp(v1, v2, amount)
445
475
  # Vector3Lerp
446
476
  # @param v1 [Vector3]
@@ -530,6 +560,153 @@ module Raylib
530
560
  # @return [Vector3]
531
561
  [:Vector3Refract, :Vector3Refract, [Vector3.by_value, Vector3.by_value, :float], Vector3.by_value],
532
562
 
563
+ # @!method Vector4Zero()
564
+ # Vector4Zero
565
+ # @return [Vector4]
566
+ [:Vector4Zero, :Vector4Zero, [], Vector4.by_value],
567
+
568
+ # @!method Vector4One()
569
+ # Vector4One
570
+ # @return [Vector4]
571
+ [:Vector4One, :Vector4One, [], Vector4.by_value],
572
+
573
+ # @!method Vector4Add(v1, v2)
574
+ # Vector4Add
575
+ # @param v1 [Vector4]
576
+ # @param v2 [Vector4]
577
+ # @return [Vector4]
578
+ [:Vector4Add, :Vector4Add, [Vector4.by_value, Vector4.by_value], Vector4.by_value],
579
+
580
+ # @!method Vector4AddValue(v, add)
581
+ # Vector4AddValue
582
+ # @param v [Vector4]
583
+ # @param add [float]
584
+ # @return [Vector4]
585
+ [:Vector4AddValue, :Vector4AddValue, [Vector4.by_value, :float], Vector4.by_value],
586
+
587
+ # @!method Vector4Subtract(v1, v2)
588
+ # Vector4Subtract
589
+ # @param v1 [Vector4]
590
+ # @param v2 [Vector4]
591
+ # @return [Vector4]
592
+ [:Vector4Subtract, :Vector4Subtract, [Vector4.by_value, Vector4.by_value], Vector4.by_value],
593
+
594
+ # @!method Vector4SubtractValue(v, add)
595
+ # Vector4SubtractValue
596
+ # @param v [Vector4]
597
+ # @param add [float]
598
+ # @return [Vector4]
599
+ [:Vector4SubtractValue, :Vector4SubtractValue, [Vector4.by_value, :float], Vector4.by_value],
600
+
601
+ # @!method Vector4Length(v)
602
+ # Vector4Length
603
+ # @param v [Vector4]
604
+ # @return [float]
605
+ [:Vector4Length, :Vector4Length, [Vector4.by_value], :float],
606
+
607
+ # @!method Vector4LengthSqr(v)
608
+ # Vector4LengthSqr
609
+ # @param v [Vector4]
610
+ # @return [float]
611
+ [:Vector4LengthSqr, :Vector4LengthSqr, [Vector4.by_value], :float],
612
+
613
+ # @!method Vector4DotProduct(v1, v2)
614
+ # Vector4DotProduct
615
+ # @param v1 [Vector4]
616
+ # @param v2 [Vector4]
617
+ # @return [float]
618
+ [:Vector4DotProduct, :Vector4DotProduct, [Vector4.by_value, Vector4.by_value], :float],
619
+
620
+ # @!method Vector4Distance(v1, v2)
621
+ # Vector4Distance
622
+ # @param v1 [Vector4]
623
+ # @param v2 [Vector4]
624
+ # @return [float]
625
+ [:Vector4Distance, :Vector4Distance, [Vector4.by_value, Vector4.by_value], :float],
626
+
627
+ # @!method Vector4DistanceSqr(v1, v2)
628
+ # Vector4DistanceSqr
629
+ # @param v1 [Vector4]
630
+ # @param v2 [Vector4]
631
+ # @return [float]
632
+ [:Vector4DistanceSqr, :Vector4DistanceSqr, [Vector4.by_value, Vector4.by_value], :float],
633
+
634
+ # @!method Vector4Scale(v, scale)
635
+ # Vector4Scale
636
+ # @param v [Vector4]
637
+ # @param scale [float]
638
+ # @return [Vector4]
639
+ [:Vector4Scale, :Vector4Scale, [Vector4.by_value, :float], Vector4.by_value],
640
+
641
+ # @!method Vector4Multiply(v1, v2)
642
+ # Vector4Multiply
643
+ # @param v1 [Vector4]
644
+ # @param v2 [Vector4]
645
+ # @return [Vector4]
646
+ [:Vector4Multiply, :Vector4Multiply, [Vector4.by_value, Vector4.by_value], Vector4.by_value],
647
+
648
+ # @!method Vector4Negate(v)
649
+ # Vector4Negate
650
+ # @param v [Vector4]
651
+ # @return [Vector4]
652
+ [:Vector4Negate, :Vector4Negate, [Vector4.by_value], Vector4.by_value],
653
+
654
+ # @!method Vector4Divide(v1, v2)
655
+ # Vector4Divide
656
+ # @param v1 [Vector4]
657
+ # @param v2 [Vector4]
658
+ # @return [Vector4]
659
+ [:Vector4Divide, :Vector4Divide, [Vector4.by_value, Vector4.by_value], Vector4.by_value],
660
+
661
+ # @!method Vector4Normalize(v)
662
+ # Vector4Normalize
663
+ # @param v [Vector4]
664
+ # @return [Vector4]
665
+ [:Vector4Normalize, :Vector4Normalize, [Vector4.by_value], Vector4.by_value],
666
+
667
+ # @!method Vector4Min(v1, v2)
668
+ # Vector4Min
669
+ # @param v1 [Vector4]
670
+ # @param v2 [Vector4]
671
+ # @return [Vector4]
672
+ [:Vector4Min, :Vector4Min, [Vector4.by_value, Vector4.by_value], Vector4.by_value],
673
+
674
+ # @!method Vector4Max(v1, v2)
675
+ # Vector4Max
676
+ # @param v1 [Vector4]
677
+ # @param v2 [Vector4]
678
+ # @return [Vector4]
679
+ [:Vector4Max, :Vector4Max, [Vector4.by_value, Vector4.by_value], Vector4.by_value],
680
+
681
+ # @!method Vector4Lerp(v1, v2, amount)
682
+ # Vector4Lerp
683
+ # @param v1 [Vector4]
684
+ # @param v2 [Vector4]
685
+ # @param amount [float]
686
+ # @return [Vector4]
687
+ [:Vector4Lerp, :Vector4Lerp, [Vector4.by_value, Vector4.by_value, :float], Vector4.by_value],
688
+
689
+ # @!method Vector4MoveTowards(v, target, maxDistance)
690
+ # Vector4MoveTowards
691
+ # @param v [Vector4]
692
+ # @param target [Vector4]
693
+ # @param maxDistance [float]
694
+ # @return [Vector4]
695
+ [:Vector4MoveTowards, :Vector4MoveTowards, [Vector4.by_value, Vector4.by_value, :float], Vector4.by_value],
696
+
697
+ # @!method Vector4Invert(v)
698
+ # Vector4Invert
699
+ # @param v [Vector4]
700
+ # @return [Vector4]
701
+ [:Vector4Invert, :Vector4Invert, [Vector4.by_value], Vector4.by_value],
702
+
703
+ # @!method Vector4Equals(p, q)
704
+ # Vector4Equals
705
+ # @param p [Vector4]
706
+ # @param q [Vector4]
707
+ # @return [int]
708
+ [:Vector4Equals, :Vector4Equals, [Vector4.by_value, Vector4.by_value], :int],
709
+
533
710
  # @!method MatrixDeterminant(mat)
534
711
  # MatrixDeterminant
535
712
  # @param mat [Matrix]
data/lib/rlgl.rb CHANGED
@@ -1084,12 +1084,10 @@ module Raylib
1084
1084
  # @return [unsigned char *]
1085
1085
  [:rlReadScreenPixels, :rlReadScreenPixels, [:int, :int], :pointer],
1086
1086
 
1087
- # @!method rlLoadFramebuffer(width, height)
1087
+ # @!method rlLoadFramebuffer()
1088
1088
  # rlLoadFramebuffer : Load an empty framebuffer
1089
- # @param width [int]
1090
- # @param height [int]
1091
1089
  # @return [unsigned int]
1092
- [:rlLoadFramebuffer, :rlLoadFramebuffer, [:int, :int], :uint],
1090
+ [:rlLoadFramebuffer, :rlLoadFramebuffer, [], :uint],
1093
1091
 
1094
1092
  # @!method rlFramebufferAttach(fboId, texId, attachType, texType, mipLevel)
1095
1093
  # rlFramebufferAttach : Attach texture/renderbuffer to a framebuffer
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.0
4
+ version: 0.7.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-03 00:00:00.000000000 Z
11
+ date: 2024-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi