raylib-bindings 0.8.2 → 0.8.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc3bc601f1eb827cd756da53fa2aff608963ef571f0f7ebea071f7dcd108784e
4
- data.tar.gz: 2c880c99a464c73c1e13bcca150211d37f2eca6b2a2061aee05939d6f2ea4dd7
3
+ metadata.gz: d93834b2f1bc07c4dc5606fceb2447dd11a852515329c55afe9f06126ac59e7e
4
+ data.tar.gz: f4b27261c7b5f501e81a4a00cfe259056943f33e9e2c02116f12529c2274af91
5
5
  SHA512:
6
- metadata.gz: 1edb5803f027207c62cb092236677babd305063fe0cbaa7ceb6e7e5d423335170dcce2723b54c81f38950b8bc0466fc1fc24b231c0bf179f6d32705e453b6b2c
7
- data.tar.gz: 357d578a6d926f79b05ba8127f1d7ef4a949028a1eb29c7d10c6678442ca965e9d4b0b9d575c674f92961193ae56ae429188e77f40101f87dd77cac95e4eeae3
6
+ metadata.gz: 8ce25fcae3bdde1677d8b2aff55b2458a97d33a4fca790dcbea14b27708de2b55a243de2991bf757f6cecbf825c3001f9126da4e2405f19db0215caf8b7b5507
7
+ data.tar.gz: e42d7946517e076a321ec78a3d3a8a4ad5a2313dbd26b547f1669d7743ae5f8bdabdf57065602c66a6a0ae5e8a9b2426b496f7ad818ff465bd9b18f781d251b8
data/ChangeLog CHANGED
@@ -1,3 +1,11 @@
1
+ 2026-09-05 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/550dd0e3a86a0261f3cc7dd0bf59d1b8d03ea138 ) and raygui ( https://github.com/raysan5/raygui/commit/181e77961bef8ba763f9098063072e7faa0e0e67 )
4
+
5
+ 2026-08-02 vaiorabbit <http://twitter.com/vaiorabbit>
6
+
7
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/c5a6d94110d713fafd9d3191c28875d99ae704d4 ) and raygui ( https://github.com/raysan5/raygui/commit/9fed992452425d49159ca556fed169c77944adf0 )
8
+
1
9
  2026-07-05 vaiorabbit <http://twitter.com/vaiorabbit>
2
10
 
3
11
  * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/65abee1cbade6bf7edf55da6eb1eed6980aa754b ) and raygui ( https://github.com/raysan5/raygui/commit/5cc802fd9edb9f2dc0bb02aff222791f14a1ab6f )
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 : 2026-07-05
6
+ * Last modified : 2026-09-05
7
7
 
8
8
  Provides Ruby bindings for raylib-related libraries including:
9
9
 
10
- * [raylib](https://github.com/raysan5/raylib) version [6.1-dev]( https://github.com/raysan5/raylib/commit/5cc802fd9edb9f2dc0bb02aff222791f14a1ab6f )
10
+ * [raylib](https://github.com/raysan5/raylib) version [6.1-dev]( https://github.com/raysan5/raylib/commit/550dd0e3a86a0261f3cc7dd0bf59d1b8d03ea138 )
11
11
  * raylib
12
12
  * raymath
13
13
  * rlgl
14
- * [raygui](https://github.com/raysan5/raygui) version [5.0-dev]( https://github.com/raysan5/raygui/commit/d2d1feed5ce8bf89d7e8ff0e7868a063867b486a )
14
+ * [raygui](https://github.com/raysan5/raygui) version [5.0-dev]( https://github.com/raysan5/raygui/commit/181e77961bef8ba763f9098063072e7faa0e0e67 )
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">
Binary file
Binary file
data/lib/libraylib.dll CHANGED
Binary file
Binary file
Binary file
data/lib/physac.dll CHANGED
Binary file
Binary file
Binary file
data/lib/raygui.dll CHANGED
Binary file
Binary file
data/lib/raygui.x86_64.so CHANGED
Binary file
data/lib/raygui_main.rb CHANGED
@@ -14,12 +14,19 @@ module Raylib
14
14
  RAYGUI_VERSION_MAJOR = 5
15
15
  RAYGUI_VERSION_MINOR = 0
16
16
  RAYGUI_VERSION_PATCH = 0
17
- RAYGUI_VERSION = "5.0-dev"
17
+ RAYGUI_VERSION = "5.0"
18
18
  SCROLLBAR_LEFT_SIDE = 0
19
19
  SCROLLBAR_RIGHT_SIDE = 1
20
20
 
21
21
  # Enum
22
22
 
23
+ # enum GuiResult
24
+ # Gui control result
25
+ RESULT_NONE = 0
26
+ RESULT_PRESSED = 1
27
+ RESULT_CHANGED = 2
28
+ RESULT_TAB_CLOSE = 4 # GuiTabBar(), tab close request
29
+
23
30
  # enum GuiState
24
31
  # Gui control state
25
32
  STATE_NORMAL = 0
@@ -429,6 +436,7 @@ module Raylib
429
436
 
430
437
  # Typedef
431
438
 
439
+ typedef :int, :GuiResult
432
440
  typedef :int, :GuiState
433
441
  typedef :int, :GuiTextAlignment
434
442
  typedef :int, :GuiTextAlignmentVertical
@@ -870,26 +878,28 @@ module Raylib
870
878
  # @return [int]
871
879
  [:GuiTabBarEx, :GuiTabBarEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :pointer], :int],
872
880
 
873
- # @!method GuiMessageBox(bounds, title, message, buttons)
881
+ # @!method GuiMessageBox(bounds, title, message, btnText, btnActive)
874
882
  # GuiMessageBox : Message Box control, displays a message
875
883
  # @param bounds [Rectangle]
876
884
  # @param title [const char *]
877
885
  # @param message [const char *]
878
- # @param buttons [const char *]
886
+ # @param btnText [const char *]
887
+ # @param btnActive [int *]
879
888
  # @return [int]
880
- [:GuiMessageBox, :GuiMessageBox, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
889
+ [:GuiMessageBox, :GuiMessageBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer], :int],
881
890
 
882
- # @!method GuiTextInputBox(bounds, title, message, buttons, text, textMaxSize, secretViewActive)
891
+ # @!method GuiTextInputBox(bounds, title, message, text, textSize, btnText, btnActive, secretViewActive)
883
892
  # GuiTextInputBox : Text Input Box control, ask for text, supports secret
884
893
  # @param bounds [Rectangle]
885
894
  # @param title [const char *]
886
895
  # @param message [const char *]
887
- # @param buttons [const char *]
888
896
  # @param text [char *]
889
- # @param textMaxSize [int]
897
+ # @param textSize [int]
898
+ # @param btnText [const char *]
899
+ # @param btnActive [int *]
890
900
  # @param secretViewActive [bool *]
891
901
  # @return [int]
892
- [:GuiTextInputBox, :GuiTextInputBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer, :int, :pointer], :int],
902
+ [:GuiTextInputBox, :GuiTextInputBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :int, :pointer, :pointer, :pointer], :int],
893
903
 
894
904
  # @!method GuiColorPicker(bounds, text, color)
895
905
  # GuiColorPicker : Color Picker control, includes Color bar controls
data/lib/raylib_main.rb CHANGED
@@ -855,7 +855,7 @@ module Raylib
855
855
  # Skeleton, animation bones hierarchy
856
856
  class ModelSkeleton < FFI::Struct
857
857
  layout(
858
- :boneCount, :int, # Number of bones
858
+ :boneCount, :uint, # Number of bones
859
859
  :bones, :pointer, # Bones information (skeleton)
860
860
  :bindPose, :pointer, # Bones base transformation (Transform[])
861
861
  )
@@ -904,7 +904,7 @@ module Raylib
904
904
  class ModelAnimation < FFI::Struct
905
905
  layout(
906
906
  :name, [:char, 32], # Animation name
907
- :boneCount, :int, # Number of bones (per pose)
907
+ :boneCount, :uint, # Number of bones (per pose)
908
908
  :keyframeCount, :int, # Number of animation key frames
909
909
  :keyframePoses, :pointer, # Animation sequence keyframe poses [keyframe][pose]
910
910
  )
@@ -1944,6 +1944,12 @@ module Raylib
1944
1944
  # @return [bool]
1945
1945
  [:IsFileExtension, :IsFileExtension, [:pointer, :pointer], :bool],
1946
1946
 
1947
+ # @!method IsFileHidden(filePath)
1948
+ # IsFileHidden : Check if file path (file or directory) is hidden by OS
1949
+ # @param filePath [const char *]
1950
+ # @return [bool]
1951
+ [:IsFileHidden, :IsFileHidden, [:pointer], :bool],
1952
+
1947
1953
  # @!method GetFileLength(fileName)
1948
1954
  # GetFileLength : Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)
1949
1955
  # @param fileName [const char *]
@@ -1975,13 +1981,13 @@ module Raylib
1975
1981
  [:GetFileNameWithoutExt, :GetFileNameWithoutExt, [:pointer], :pointer],
1976
1982
 
1977
1983
  # @!method GetDirectoryPath(filePath)
1978
- # GetDirectoryPath : Get full path for a given fileName with path (uses static string)
1984
+ # GetDirectoryPath : Get full path for a provided fileName with path (uses static string)
1979
1985
  # @param filePath [const char *]
1980
1986
  # @return [const char *]
1981
1987
  [:GetDirectoryPath, :GetDirectoryPath, [:pointer], :pointer],
1982
1988
 
1983
1989
  # @!method GetPrevDirectoryPath(dirPath)
1984
- # GetPrevDirectoryPath : Get previous directory path for a given path (uses static string)
1990
+ # GetPrevDirectoryPath : Get previous directory path for a provided path (uses static string)
1985
1991
  # @param dirPath [const char *]
1986
1992
  # @return [const char *]
1987
1993
  [:GetPrevDirectoryPath, :GetPrevDirectoryPath, [:pointer], :pointer],
@@ -2009,17 +2015,23 @@ module Raylib
2009
2015
  [:ChangeDirectory, :ChangeDirectory, [:pointer], :int],
2010
2016
 
2011
2017
  # @!method IsPathFile(path)
2012
- # IsPathFile : Check if given path points to a file
2018
+ # IsPathFile : Check if provided path points to a file
2013
2019
  # @param path [const char *]
2014
2020
  # @return [bool]
2015
2021
  [:IsPathFile, :IsPathFile, [:pointer], :bool],
2016
2022
 
2017
2023
  # @!method IsPathDirectory(path)
2018
- # IsPathDirectory : Check if given path points to a directory
2024
+ # IsPathDirectory : Check if provided path points to a directory
2019
2025
  # @param path [const char *]
2020
2026
  # @return [bool]
2021
2027
  [:IsPathDirectory, :IsPathDirectory, [:pointer], :bool],
2022
2028
 
2029
+ # @!method IsPathAbsolute(path)
2030
+ # IsPathAbsolute : Check if provided path is an absolute path
2031
+ # @param path [const char *]
2032
+ # @return [bool]
2033
+ [:IsPathAbsolute, :IsPathAbsolute, [:pointer], :bool],
2034
+
2023
2035
  # @!method IsFileNameValid(fileName)
2024
2036
  # IsFileNameValid : Check if fileName is valid for the platform/OS
2025
2037
  # @param fileName [const char *]
@@ -2405,7 +2417,7 @@ module Raylib
2405
2417
  [:GetTouchPosition, :GetTouchPosition, [:int], Vector2.by_value],
2406
2418
 
2407
2419
  # @!method GetTouchPointId(index)
2408
- # GetTouchPointId : Get touch point identifier for given index
2420
+ # GetTouchPointId : Get touch point identifier for provided index
2409
2421
  # @param index [int]
2410
2422
  # @return [int]
2411
2423
  [:GetTouchPointId, :GetTouchPointId, [:int], :int],
@@ -2588,6 +2600,16 @@ module Raylib
2588
2600
  # @return [void]
2589
2601
  [:DrawTriangleLines, :DrawTriangleLines, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
2590
2602
 
2603
+ # @!method DrawTriangleLinesEx(v1, v2, v3, thick, color)
2604
+ # DrawTriangleLinesEx : Draw triangle outline with line thickness, counter-clockwise vertex order
2605
+ # @param v1 [Vector2]
2606
+ # @param v2 [Vector2]
2607
+ # @param v3 [Vector2]
2608
+ # @param thick [float]
2609
+ # @param color [Color]
2610
+ # @return [void]
2611
+ [:DrawTriangleLinesEx, :DrawTriangleLinesEx, [Vector2.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value], :void],
2612
+
2591
2613
  # @!method DrawTriangleFan(points, pointCount, color)
2592
2614
  # DrawTriangleFan : Draw a triangle fan defined by points (first vertex is the center)
2593
2615
  # @param points [const Vector2 *]
@@ -2795,6 +2817,18 @@ module Raylib
2795
2817
  # @return [void]
2796
2818
  [:DrawCircleSectorLines, :DrawCircleSectorLines, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
2797
2819
 
2820
+ # @!method DrawCircleSectorLinesEx(center, radius, startAngle, endAngle, segments, thick, color)
2821
+ # DrawCircleSectorLinesEx : Draw circle sector outline with thickness
2822
+ # @param center [Vector2]
2823
+ # @param radius [float]
2824
+ # @param startAngle [float]
2825
+ # @param endAngle [float]
2826
+ # @param segments [int]
2827
+ # @param thick [float]
2828
+ # @param color [Color]
2829
+ # @return [void]
2830
+ [:DrawCircleSectorLinesEx, :DrawCircleSectorLinesEx, [Vector2.by_value, :float, :float, :float, :int, :float, Color.by_value], :void],
2831
+
2798
2832
  # @!method DrawCircleLines(centerX, centerY, radius, color)
2799
2833
  # DrawCircleLines : Draw circle outline
2800
2834
  # @param centerX [int]
@@ -2859,6 +2893,16 @@ module Raylib
2859
2893
  # @return [void]
2860
2894
  [:DrawEllipseLinesV, :DrawEllipseLinesV, [Vector2.by_value, :float, :float, Color.by_value], :void],
2861
2895
 
2896
+ # @!method DrawEllipseLinesEx(center, radiusH, radiusV, thick, color)
2897
+ # DrawEllipseLinesEx : Draw ellipse outline with line thickness
2898
+ # @param center [Vector2]
2899
+ # @param radiusH [float]
2900
+ # @param radiusV [float]
2901
+ # @param thick [float]
2902
+ # @param color [Color]
2903
+ # @return [void]
2904
+ [:DrawEllipseLinesEx, :DrawEllipseLinesEx, [Vector2.by_value, :float, :float, :float, Color.by_value], :void],
2905
+
2862
2906
  # @!method DrawRing(center, innerRadius, outerRadius, startAngle, endAngle, segments, color)
2863
2907
  # DrawRing : Draw ring
2864
2908
  # @param center [Vector2]
@@ -2883,6 +2927,19 @@ module Raylib
2883
2927
  # @return [void]
2884
2928
  [:DrawRingLines, :DrawRingLines, [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value], :void],
2885
2929
 
2930
+ # @!method DrawRingLinesEx(center, innerRadius, outerRadius, startAngle, endAngle, segments, thick, color)
2931
+ # DrawRingLinesEx : Draw ring outline with line thickness
2932
+ # @param center [Vector2]
2933
+ # @param innerRadius [float]
2934
+ # @param outerRadius [float]
2935
+ # @param startAngle [float]
2936
+ # @param endAngle [float]
2937
+ # @param segments [int]
2938
+ # @param thick [float]
2939
+ # @param color [Color]
2940
+ # @return [void]
2941
+ [:DrawRingLinesEx, :DrawRingLinesEx, [Vector2.by_value, :float, :float, :float, :float, :int, :float, Color.by_value], :void],
2942
+
2886
2943
  # @!method DrawSplineLinear(points, pointCount, thick, color)
2887
2944
  # DrawSplineLinear : Draw spline: Linear, minimum 2 points
2888
2945
  # @param points [const Vector2 *]
@@ -3545,7 +3602,7 @@ module Raylib
3545
3602
  [:GetImageColor, :GetImageColor, [Image.by_value, :int, :int], Color.by_value],
3546
3603
 
3547
3604
  # @!method ImageClearBackground(dst, color)
3548
- # ImageClearBackground : Clear image background with given color
3605
+ # ImageClearBackground : Clear image background with provided color
3549
3606
  # @param dst [Image *]
3550
3607
  # @param color [Color]
3551
3608
  # @return [void]
@@ -3880,6 +3937,14 @@ module Raylib
3880
3937
  # @return [RenderTexture2D]
3881
3938
  [:LoadRenderTexture, :LoadRenderTexture, [:int, :int], RenderTexture2D.by_value],
3882
3939
 
3940
+ # @!method LoadRenderTextureEx(width, height, format)
3941
+ # LoadRenderTextureEx : Load texture for rendering (framebuffer), with specific format
3942
+ # @param width [int]
3943
+ # @param height [int]
3944
+ # @param format [int]
3945
+ # @return [RenderTexture2D]
3946
+ [:LoadRenderTextureEx, :LoadRenderTextureEx, [:int, :int, :int], RenderTexture2D.by_value],
3947
+
3883
3948
  # @!method IsTextureValid(texture)
3884
3949
  # IsTextureValid : Check if texture is valid (loaded in GPU)
3885
3950
  # @param texture [Texture2D]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raylib-bindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubygems_version: 4.0.10
84
+ rubygems_version: 4.0.16
85
85
  specification_version: 4
86
86
  summary: Ruby bindings for raylib, raygui and Physac
87
87
  test_files: []