raylib-bindings 0.7.17 → 0.7.18

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: ca786d8fe1a56b5c32f4f38611b3b205eb2e1fb7e0bfd74dabdde040b291f5c5
4
- data.tar.gz: 32a8a576686d5d445982cb80f252150f15c1d01f480ae45085e783caa623a64e
3
+ metadata.gz: cd57a137bfb651579ab1c84988efc7929841cb14432fd8616bee09443bb350be
4
+ data.tar.gz: 917d5d2da22a1aad5c3ff3cd028e534c0409be0b643b17d755376b878e88a7a6
5
5
  SHA512:
6
- metadata.gz: 5ee70ee01b06b69e5a0a1da6bf31831722d66faf9a9e4fe1fb660506fee120d30fc956f2b4846f4e4c0cc082eee151f23ac9238896c1e78477795394e440322f
7
- data.tar.gz: 39c132a207299b9aad7d5ecfdf210f86cc52c4b1eb93684eba7dc9be0242602146ef24b2789293d48b69af19ad9de9f4fe4d5e745917e4061adbfe6984e7f9e1
6
+ metadata.gz: 626da72ccc0db1bdc460e2d4b1acd79e6d14fff5a8a2dccdab4d07b49ea840f0944484d2895c644644ef173c2008cad9450197f46c2e4827f7f7a5fd666d986e
7
+ data.tar.gz: 0f7436a236b5c761461de4a945a44ac86e3707f987bc1fa4193412321d6a4739547a505cf37dcf706bc944eecd8e7c02faf8751f329a703456675b40205da4b9
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 2026-02-22 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/11e3e6e0b994d0543cb83e253438e08402dba014 ) and raygui ( https://github.com/raysan5/raygui/commit/960f13b6e07ab9876fbba572fa5f17eed268d6b4 )
4
+
1
5
  2026-01-10 vaiorabbit <http://twitter.com/vaiorabbit>
2
6
 
3
7
  * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/f2c8a9c085c26c0a7a0b5bf7d6e69a56618bd964 ) and raygui ( https://github.com/raysan5/raygui/commit/51e6bcb39346b3e363643f95c3532119af41f6fd )
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-01-10
6
+ * Last modified : 2026-02-21
7
7
 
8
8
  Provides Ruby bindings for raylib-related libraries including:
9
9
 
10
- * [raylib](https://github.com/raysan5/raylib) version [5.6-dev]( https://github.com/raysan5/raylib/commit/f2c8a9c085c26c0a7a0b5bf7d6e69a56618bd964 )
10
+ * [raylib](https://github.com/raysan5/raylib) version [5.6-dev]( https://github.com/raysan5/raylib/commit/11e3e6e0b994d0543cb83e253438e08402dba014 )
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/51e6bcb39346b3e363643f95c3532119af41f6fd )
14
+ * [raygui](https://github.com/raysan5/raygui) version [5.0-dev]( https://github.com/raysan5/raygui/commit/960f13b6e07ab9876fbba572fa5f17eed268d6b4 )
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">
@@ -50,7 +50,7 @@ D:\> ruby template.rb
50
50
  * [macOS] https://rvm.io
51
51
  * ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]
52
52
  * [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
53
- * ruby 4.0.0 (2025-12-25 revision 553f1675f3) +PRISM [x64-mingw-ucrt]
53
+ * ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [x64-mingw-ucrt]
54
54
  * [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
55
55
  * ruby 3.4.0dev (2024-12-25 master f450108330) +PRISM [x86_64-linux]
56
56
  * [Linux/ARM64 Chromebook] https://github.com/rvm/ubuntu_rvm
@@ -91,6 +91,7 @@ D:\> ruby template.rb
91
91
  * ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
92
92
  * ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
93
93
  * [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
94
+ * ruby 4.0.0 (2025-12-25 revision 553f1675f3) +PRISM [x64-mingw-ucrt]
94
95
  * ruby 3.4.7 (2025-10-08 revision 7a5688e2a2) +PRISM [x64-mingw-ucrt]
95
96
  * ruby 3.4.4 (2025-05-14 revision a38531fd3f) +PRISM [x64-mingw-ucrt]
96
97
  * ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x64-mingw-ucrt]
data/lib/config.rb CHANGED
@@ -111,6 +111,7 @@ module Raylib
111
111
  SUPPORT_FILEFORMAT_MOD = 1
112
112
  AUDIO_DEVICE_CHANNELS = 2 # Device output channels: stereo
113
113
  AUDIO_DEVICE_SAMPLE_RATE = 0 # Device sample rate (device default)
114
+ AUDIO_DEVICE_PERIOD_SIZE_IN_FRAMES = 0 # Device period size (controls latency, 0 defaults to 10ms)
114
115
  MAX_AUDIO_BUFFER_POOL_CHANNELS = 16 # Maximum number of audio pool channels
115
116
 
116
117
  end
Binary file
Binary file
data/lib/libraylib.dll CHANGED
Binary file
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
@@ -628,7 +628,7 @@ module Raylib
628
628
  # @!method GuiTabBar(bounds, text, count, active)
629
629
  # GuiTabBar : Tab Bar control, returns TAB to be closed or -1
630
630
  # @param bounds [Rectangle]
631
- # @param text [const char **]
631
+ # @param text [char **]
632
632
  # @param count [int]
633
633
  # @param active [int *]
634
634
  # @return [int]
@@ -824,7 +824,7 @@ module Raylib
824
824
  # @!method GuiListViewEx(bounds, text, count, scrollIndex, active, focus)
825
825
  # GuiListViewEx : List View with extended parameters
826
826
  # @param bounds [Rectangle]
827
- # @param text [const char **]
827
+ # @param text [char **]
828
828
  # @param count [int]
829
829
  # @param scrollIndex [int *]
830
830
  # @param active [int *]
data/lib/raylib_main.rb CHANGED
@@ -890,12 +890,14 @@ module Raylib
890
890
  # ModelAnimation
891
891
  class ModelAnimation < FFI::Struct
892
892
  layout(
893
+ :name, [:char, 32], # Animation name
893
894
  :boneCount, :int, # Number of bones
894
895
  :frameCount, :int, # Number of animation frames
895
896
  :bones, :pointer, # Bones information (skeleton)
896
897
  :framePoses, :pointer, # Poses array by frame
897
- :name, [:char, 32], # Animation name
898
898
  )
899
+ def name = self[:name]
900
+ def name=(v) self[:name] = v end
899
901
  def boneCount = self[:boneCount]
900
902
  def boneCount=(v) self[:boneCount] = v end
901
903
  def frameCount = self[:frameCount]
@@ -904,8 +906,6 @@ module Raylib
904
906
  def bones=(v) self[:bones] = v end
905
907
  def framePoses = self[:framePoses]
906
908
  def framePoses=(v) self[:framePoses] = v end
907
- def name = self[:name]
908
- def name=(v) self[:name] = v end
909
909
  end
910
910
 
911
911
  # Ray, ray for raycasting
@@ -1091,12 +1091,9 @@ module Raylib
1091
1091
  # File path list
1092
1092
  class FilePathList < FFI::Struct
1093
1093
  layout(
1094
- :capacity, :uint, # Filepaths max entries
1095
1094
  :count, :uint, # Filepaths entries count
1096
1095
  :paths, :pointer, # Filepaths entries
1097
1096
  )
1098
- def capacity = self[:capacity]
1099
- def capacity=(v) self[:capacity] = v end
1100
1097
  def count = self[:count]
1101
1098
  def count=(v) self[:count] = v end
1102
1099
  def paths = self[:paths]
@@ -2049,6 +2046,20 @@ module Raylib
2049
2046
  # @return [void]
2050
2047
  [:UnloadDroppedFiles, :UnloadDroppedFiles, [FilePathList.by_value], :void],
2051
2048
 
2049
+ # @!method GetDirectoryFileCount(dirPath)
2050
+ # GetDirectoryFileCount : Get the file count in a directory
2051
+ # @param dirPath [const char *]
2052
+ # @return [unsigned int]
2053
+ [:GetDirectoryFileCount, :GetDirectoryFileCount, [:pointer], :uint],
2054
+
2055
+ # @!method GetDirectoryFileCountEx(basePath, filter, scanSubdirs)
2056
+ # GetDirectoryFileCountEx : Get the file count in a directory with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result
2057
+ # @param basePath [const char *]
2058
+ # @param filter [const char *]
2059
+ # @param scanSubdirs [bool]
2060
+ # @return [unsigned int]
2061
+ [:GetDirectoryFileCountEx, :GetDirectoryFileCountEx, [:pointer, :pointer, :bool], :uint],
2062
+
2052
2063
  # @!method CompressData(data, dataSize, compDataSize)
2053
2064
  # CompressData : Compress data (DEFLATE algorithm), memory must be MemFree()
2054
2065
  # @param data [const unsigned char *]
@@ -4930,6 +4941,23 @@ module Raylib
4930
4941
  # @return [void]
4931
4942
  [:UpdateModelAnimationBones, :UpdateModelAnimationBones, [Model.by_value, ModelAnimation.by_value, :int], :void],
4932
4943
 
4944
+ # @!method UpdateModelAnimationBonesLerp(model, animA, frameA, animB, frameB, value)
4945
+ # UpdateModelAnimationBonesLerp : Update model animation mesh bone matrices with interpolation between two poses(GPU skinning)
4946
+ # @param model [Model]
4947
+ # @param animA [ModelAnimation]
4948
+ # @param frameA [int]
4949
+ # @param animB [ModelAnimation]
4950
+ # @param frameB [int]
4951
+ # @param value [float]
4952
+ # @return [void]
4953
+ [:UpdateModelAnimationBonesLerp, :UpdateModelAnimationBonesLerp, [Model.by_value, ModelAnimation.by_value, :int, ModelAnimation.by_value, :int, :float], :void],
4954
+
4955
+ # @!method UpdateModelVertsToCurrentBones(model)
4956
+ # UpdateModelVertsToCurrentBones : Update model vertices according to mesh bone matrices (CPU)
4957
+ # @param model [Model]
4958
+ # @return [void]
4959
+ [:UpdateModelVertsToCurrentBones, :UpdateModelVertsToCurrentBones, [Model.by_value], :void],
4960
+
4933
4961
  # @!method UnloadModelAnimation(anim)
4934
4962
  # UnloadModelAnimation : Unload animation data
4935
4963
  # @param anim [ModelAnimation]
data/lib/raymath.rb CHANGED
@@ -18,7 +18,6 @@ module Raylib
18
18
 
19
19
  # Struct
20
20
 
21
- # NOTE: Helper types to be used instead of array return types for *ToFloat functions
22
21
  class Float3 < FFI::Struct
23
22
  layout(
24
23
  :v, [:float, 3],
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.7.17
4
+ version: 0.7.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit