raylib-bindings 0.8.2 → 0.8.3

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: 8c98198643a70a6ba69993ba4c0b3b5d9b7fb6f09020e2c55dec925cf4133f94
4
+ data.tar.gz: 5ab61b80b87ea74752f84d1ef72eddfd39dfff3c21bd34c72ce8224e0c3a7890
5
5
  SHA512:
6
- metadata.gz: 1edb5803f027207c62cb092236677babd305063fe0cbaa7ceb6e7e5d423335170dcce2723b54c81f38950b8bc0466fc1fc24b231c0bf179f6d32705e453b6b2c
7
- data.tar.gz: 357d578a6d926f79b05ba8127f1d7ef4a949028a1eb29c7d10c6678442ca965e9d4b0b9d575c674f92961193ae56ae429188e77f40101f87dd77cac95e4eeae3
6
+ metadata.gz: b3d9734d08f2881d1c3b8f927169e0fe2ad478588d6436c5b47e94013cc771abf4cddcd5b28336fdc28a7d93c604de922f8410f0e264f8850169238ada657170
7
+ data.tar.gz: dd3ea694a660dcb97eca9d501e25e15f6176cc98ef0eb3c7358e5d62b5462a5aab388b02ccab404c4a45f5cbd7ac9b93b6dcdb9864fe773120b19b7fc7876ae0
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 2026-08-02 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/c5a6d94110d713fafd9d3191c28875d99ae704d4 ) and raygui ( https://github.com/raysan5/raygui/commit/9fed992452425d49159ca556fed169c77944adf0 )
4
+
1
5
  2026-07-05 vaiorabbit <http://twitter.com/vaiorabbit>
2
6
 
3
7
  * 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-08-02
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/c5a6d94110d713fafd9d3191c28875d99ae704d4 )
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/9fed992452425d49159ca556fed169c77944adf0 )
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
  )
@@ -1975,13 +1975,13 @@ module Raylib
1975
1975
  [:GetFileNameWithoutExt, :GetFileNameWithoutExt, [:pointer], :pointer],
1976
1976
 
1977
1977
  # @!method GetDirectoryPath(filePath)
1978
- # GetDirectoryPath : Get full path for a given fileName with path (uses static string)
1978
+ # GetDirectoryPath : Get full path for a provided fileName with path (uses static string)
1979
1979
  # @param filePath [const char *]
1980
1980
  # @return [const char *]
1981
1981
  [:GetDirectoryPath, :GetDirectoryPath, [:pointer], :pointer],
1982
1982
 
1983
1983
  # @!method GetPrevDirectoryPath(dirPath)
1984
- # GetPrevDirectoryPath : Get previous directory path for a given path (uses static string)
1984
+ # GetPrevDirectoryPath : Get previous directory path for a provided path (uses static string)
1985
1985
  # @param dirPath [const char *]
1986
1986
  # @return [const char *]
1987
1987
  [:GetPrevDirectoryPath, :GetPrevDirectoryPath, [:pointer], :pointer],
@@ -2009,17 +2009,23 @@ module Raylib
2009
2009
  [:ChangeDirectory, :ChangeDirectory, [:pointer], :int],
2010
2010
 
2011
2011
  # @!method IsPathFile(path)
2012
- # IsPathFile : Check if given path points to a file
2012
+ # IsPathFile : Check if provided path points to a file
2013
2013
  # @param path [const char *]
2014
2014
  # @return [bool]
2015
2015
  [:IsPathFile, :IsPathFile, [:pointer], :bool],
2016
2016
 
2017
2017
  # @!method IsPathDirectory(path)
2018
- # IsPathDirectory : Check if given path points to a directory
2018
+ # IsPathDirectory : Check if provided path points to a directory
2019
2019
  # @param path [const char *]
2020
2020
  # @return [bool]
2021
2021
  [:IsPathDirectory, :IsPathDirectory, [:pointer], :bool],
2022
2022
 
2023
+ # @!method IsPathAbsolute(path)
2024
+ # IsPathAbsolute : Check if provided path is an absolute path
2025
+ # @param path [const char *]
2026
+ # @return [bool]
2027
+ [:IsPathAbsolute, :IsPathAbsolute, [:pointer], :bool],
2028
+
2023
2029
  # @!method IsFileNameValid(fileName)
2024
2030
  # IsFileNameValid : Check if fileName is valid for the platform/OS
2025
2031
  # @param fileName [const char *]
@@ -2405,7 +2411,7 @@ module Raylib
2405
2411
  [:GetTouchPosition, :GetTouchPosition, [:int], Vector2.by_value],
2406
2412
 
2407
2413
  # @!method GetTouchPointId(index)
2408
- # GetTouchPointId : Get touch point identifier for given index
2414
+ # GetTouchPointId : Get touch point identifier for provided index
2409
2415
  # @param index [int]
2410
2416
  # @return [int]
2411
2417
  [:GetTouchPointId, :GetTouchPointId, [:int], :int],
@@ -3545,7 +3551,7 @@ module Raylib
3545
3551
  [:GetImageColor, :GetImageColor, [Image.by_value, :int, :int], Color.by_value],
3546
3552
 
3547
3553
  # @!method ImageClearBackground(dst, color)
3548
- # ImageClearBackground : Clear image background with given color
3554
+ # ImageClearBackground : Clear image background with provided color
3549
3555
  # @param dst [Image *]
3550
3556
  # @param color [Color]
3551
3557
  # @return [void]
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.3
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: []