raylib-bindings 0.7.14-x86_64-linux → 0.7.17-x86_64-linux

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: 03bd2a624497b9fb876bc7aceb0e4d4f688eafa13059fea812df6664def75e9a
4
- data.tar.gz: 4ec9ebe90ef597d50fab0dc097137ab68835f199318403d97635f1928d7cd4e2
3
+ metadata.gz: f617c84c109b630d97e6264981f69f3dc617ba28fa55cc2b23676b8b44364574
4
+ data.tar.gz: 9ccbe7abdbf3b30dc1388dd66c1ac6409a4ae11e2cc5cfca43ffca5e70aa7a44
5
5
  SHA512:
6
- metadata.gz: dd952c4764196a6a593e9af6e43b6e88245c68d75d2fb77045cce700bbd22aa175ad837ea049707015bc02a8f7c4e1e4f207514ed850ac233c3f1c5b30bef85d
7
- data.tar.gz: e3f445d6f2ebf24fb78980d790e82247127400b48dbd55779e6afb808e6806d7f1074f711f1de8a1fce6d49c6916c80f7933bffda2ed80ca2bce60df99a7537f
6
+ metadata.gz: ed06907242dc7b922631e07b39b91a46aad44cd33bd59c548bdf633f3e532e22330a71d8c321da54adf4fcf70d77ad0bf3b87b720086dd687db35c7121480a56
7
+ data.tar.gz: f51f29b53cb38de34c72eb9b0acc035ba320a44e97e0e29eeea031980397fe1b13da604781a6e5034127bc100aacaf15a8bc38186242d244f76e178b060b7f2e
data/ChangeLog CHANGED
@@ -1,3 +1,19 @@
1
+ 2026-01-10 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/f2c8a9c085c26c0a7a0b5bf7d6e69a56618bd964 ) and raygui ( https://github.com/raysan5/raygui/commit/51e6bcb39346b3e363643f95c3532119af41f6fd )
4
+
5
+ 2025-12-28 vaiorabbit <http://twitter.com/vaiorabbit>
6
+
7
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/05f5143603ba4db9b3157e981926a42c55c4c766 ) and raygui ( https://github.com/raysan5/raygui/commit/0b94b80c92c34c79f8d902f51f68dfc1edacf51b )
8
+
9
+ 2025-11-18 vaiorabbit <http://twitter.com/vaiorabbit>
10
+
11
+ * examples/particles_fireworks.rb : Added
12
+
13
+ 2025-10-26 vaiorabbit <http://twitter.com/vaiorabbit>
14
+
15
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/a818508158119f74e99b4dc98345c28ce112733c ) and raygui ( https://github.com/raysan5/raygui/commit/b9971133b2f7b7513904770d565b683a93fb3624 )
16
+
1
17
  2025-07-13 vaiorabbit <http://twitter.com/vaiorabbit>
2
18
 
3
19
  * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/20a07a65d7b5625f9d165d2659cfc06bd67116a4 )
data/LICENSE.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  Ruby-raylib : Yet another raylib wrapper for Ruby
2
- Copyright (c) 2021-2025 vaiorabbit <http://twitter.com/vaiorabbit>
2
+ Copyright (c) 2021-2026 vaiorabbit <http://twitter.com/vaiorabbit>
3
3
 
4
4
  This software is provided 'as-is', without any express or implied
5
5
  warranty. In no event will the authors be held liable for any damages
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 : 2025-07-13
6
+ * Last modified : 2026-01-10
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/20a07a65d7b5625f9d165d2659cfc06bd67116a4 )
10
+ * [raylib](https://github.com/raysan5/raylib) version [5.6-dev]( https://github.com/raysan5/raylib/commit/f2c8a9c085c26c0a7a0b5bf7d6e69a56618bd964 )
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/99b37e4d4fdc19e7bf73844d6b9f177cbb27ce24 )
14
+ * [raygui](https://github.com/raysan5/raygui) version [5.0-dev]( https://github.com/raysan5/raygui/commit/51e6bcb39346b3e363643f95c3532119af41f6fd )
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,9 +50,9 @@ 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 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x64-mingw-ucrt]
53
+ * ruby 4.0.0 (2025-12-25 revision 553f1675f3) +PRISM [x64-mingw-ucrt]
54
54
  * [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
55
- * ruby 3.2.0preview1 (2022-04-03 master f801386f0c) [x86_64-linux]
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
57
57
  * ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [aarch64-linux]
58
58
 
@@ -70,7 +70,7 @@ D:\> ruby template.rb
70
70
 
71
71
  * [Windows] gcc
72
72
 
73
- gcc (Rev3, Built by MSYS2 project) 14.2.0
73
+ gcc (Rev8, Built by MSYS2 project) 15.2.0
74
74
 
75
75
  * [Linux] gcc, clang
76
76
 
@@ -91,12 +91,17 @@ 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 3.4.7 (2025-10-08 revision 7a5688e2a2) +PRISM [x64-mingw-ucrt]
95
+ * ruby 3.4.4 (2025-05-14 revision a38531fd3f) +PRISM [x64-mingw-ucrt]
96
+ * ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x64-mingw-ucrt]
94
97
  * ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x64-mingw-ucrt]
95
98
  * ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x64-mingw-ucrt]
96
99
  * ruby 3.2.0 (2022-12-25 revision a528908271) [x64-mingw-ucrt]
97
100
  * ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
98
101
  * ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
99
102
  * ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
103
+ * [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
104
+ * ruby 3.2.0preview1 (2022-04-03 master f801386f0c) [x86_64-linux]
100
105
  * [Linux/ARM64 Chromebook] https://github.com/rvm/ubuntu_rvm
101
106
  * ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]
102
107
 
@@ -197,7 +202,7 @@ Shared libraries in `lib` directory are built on top of these products and are a
197
202
  All ruby codes here are available under the terms of the zlib/libpng License ( http://opensource.org/licenses/Zlib ).
198
203
 
199
204
  Ruby-raylib : Yet another raylib wrapper for Ruby
200
- Copyright (c) 2021-2025 vaiorabbit <http://twitter.com/vaiorabbit>
205
+ Copyright (c) 2021-2026 vaiorabbit <http://twitter.com/vaiorabbit>
201
206
 
202
207
  This software is provided 'as-is', without any express or implied
203
208
  warranty. In no event will the authors be held liable for any damages
data/lib/config.rb CHANGED
@@ -16,6 +16,8 @@ module Raylib
16
16
  SUPPORT_MODULE_RTEXT = 1 # WARNING: It requires SUPPORT_MODULE_RTEXTURES to load sprite font textures
17
17
  SUPPORT_MODULE_RMODELS = 1
18
18
  SUPPORT_MODULE_RAUDIO = 1
19
+ SUPPORT_STANDARD_FILEIO = 1
20
+ SUPPORT_TRACELOG = 1
19
21
  SUPPORT_CAMERA_SYSTEM = 1
20
22
  SUPPORT_GESTURES_SYSTEM = 1
21
23
  SUPPORT_RPRAND_GENERATOR = 1
@@ -24,13 +26,13 @@ module Raylib
24
26
  SUPPORT_WINMM_HIGHRES_TIMER = 1
25
27
  SUPPORT_PARTIALBUSY_WAIT_LOOP = 1
26
28
  SUPPORT_SCREEN_CAPTURE = 1
27
- SUPPORT_GIF_RECORDING = 1
28
29
  SUPPORT_COMPRESSION_API = 1
29
30
  SUPPORT_AUTOMATION_EVENTS = 1
30
31
  SUPPORT_CLIPBOARD_IMAGE = 1
31
32
  SUPPORT_FILEFORMAT_BMP = 1
32
33
  SUPPORT_FILEFORMAT_PNG = 1
33
34
  SUPPORT_FILEFORMAT_JPG = 1
35
+ MAX_TRACELOG_MSG_LENGTH = 256 # Max length of one trace-log message
34
36
  MAX_FILEPATH_CAPACITY = 8192 # Maximum file paths capacity
35
37
  MAX_FILEPATH_LENGTH = 4096 # Maximum length for filepaths (Linux PATH_MAX default value)
36
38
  MAX_KEYBOARD_KEYS = 512 # Maximum number of keyboard keys supported
@@ -39,7 +41,7 @@ module Raylib
39
41
  MAX_GAMEPAD_AXES = 8 # Maximum number of axes supported (per gamepad)
40
42
  MAX_GAMEPAD_BUTTONS = 32 # Maximum number of buttons supported (per gamepad)
41
43
  MAX_GAMEPAD_VIBRATION_TIME = 2.0 # Maximum vibration time in seconds
42
- MAX_TOUCH_POINTS = 8 # Maximum number of touch points supported
44
+ MAX_TOUCH_POINTS = 10 # Maximum number of touch points supported
43
45
  MAX_KEY_PRESSED_QUEUE = 16 # Maximum number of keys in the key input queue
44
46
  MAX_CHAR_PRESSED_QUEUE = 16 # Maximum number of characters in the char input queue
45
47
  MAX_DECOMPRESSION_SIZE = 64 # Max size allocated for decompression in MB
@@ -110,8 +112,5 @@ module Raylib
110
112
  AUDIO_DEVICE_CHANNELS = 2 # Device output channels: stereo
111
113
  AUDIO_DEVICE_SAMPLE_RATE = 0 # Device sample rate (device default)
112
114
  MAX_AUDIO_BUFFER_POOL_CHANNELS = 16 # Maximum number of audio pool channels
113
- SUPPORT_STANDARD_FILEIO = 1
114
- SUPPORT_TRACELOG = 1
115
- MAX_TRACELOG_MSG_LENGTH = 256 # Max length of one trace-log message
116
115
 
117
116
  end
Binary file
data/lib/raygui.x86_64.so CHANGED
Binary file
data/lib/raygui_main.rb CHANGED
@@ -392,22 +392,22 @@ module Raylib
392
392
  ICON_SLICING = 231
393
393
  ICON_MANUAL_CONTROL = 232
394
394
  ICON_COLLISION = 233
395
- ICON_234 = 234
396
- ICON_235 = 235
397
- ICON_236 = 236
398
- ICON_237 = 237
399
- ICON_238 = 238
400
- ICON_239 = 239
401
- ICON_240 = 240
402
- ICON_241 = 241
403
- ICON_242 = 242
404
- ICON_243 = 243
405
- ICON_244 = 244
406
- ICON_245 = 245
407
- ICON_246 = 246
408
- ICON_247 = 247
409
- ICON_248 = 248
410
- ICON_249 = 249
395
+ ICON_CIRCLE_ADD = 234
396
+ ICON_CIRCLE_ADD_FILL = 235
397
+ ICON_CIRCLE_WARNING = 236
398
+ ICON_CIRCLE_WARNING_FILL = 237
399
+ ICON_BOX_MORE = 238
400
+ ICON_BOX_MORE_FILL = 239
401
+ ICON_BOX_MINUS = 240
402
+ ICON_BOX_MINUS_FILL = 241
403
+ ICON_UNION = 242
404
+ ICON_INTERSECTION = 243
405
+ ICON_DIFFERENCE = 244
406
+ ICON_SPHERE = 245
407
+ ICON_CYLINDER = 246
408
+ ICON_CONE = 247
409
+ ICON_ELLIPSOID = 248
410
+ ICON_CAPSULE = 249
411
411
  ICON_250 = 250
412
412
  ICON_251 = 251
413
413
  ICON_252 = 252
@@ -591,6 +591,12 @@ module Raylib
591
591
  # @return [void]
592
592
  [:GuiDrawIcon, :GuiDrawIcon, [:int, :int, :int, :int, Color.by_value], :void],
593
593
 
594
+ # @!method GuiGetTextWidth(text)
595
+ # GuiGetTextWidth : Get text width considering gui style and icon size (if required)
596
+ # @param text [const char *]
597
+ # @return [int]
598
+ [:GuiGetTextWidth, :GuiGetTextWidth, [:pointer], :int],
599
+
594
600
  # @!method GuiWindowBox(bounds, title)
595
601
  # GuiWindowBox : Window Box control, shows a window that can be closed
596
602
  # @param bounds [Rectangle]
data/lib/raylib_main.rb CHANGED
@@ -693,7 +693,7 @@ module Raylib
693
693
  :position, Vector3, # Camera position
694
694
  :target, Vector3, # Camera target it looks-at
695
695
  :up, Vector3, # Camera up vector (rotation over its axis)
696
- :fovy, :float, # Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic
696
+ :fovy, :float, # Camera field-of-view aperture in Y (degrees) in perspective, used as near plane height in world units in orthographic
697
697
  :projection, :int, # Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
698
698
  )
699
699
  def position = self[:position]
@@ -713,10 +713,10 @@ module Raylib
713
713
  # Camera2D, defines position/orientation in 2d space
714
714
  class Camera2D < FFI::Struct
715
715
  layout(
716
- :offset, Vector2, # Camera offset (displacement from target)
717
- :target, Vector2, # Camera target (rotation and zoom origin)
718
- :rotation, :float, # Camera rotation in degrees
719
- :zoom, :float, # Camera zoom (scaling), should be 1.0f by default
716
+ :offset, Vector2, # Camera offset (screen space offset from window origin)
717
+ :target, Vector2, # Camera target (world space target point that is mapped to screen space offset)
718
+ :rotation, :float, # Camera rotation in degrees (pivots around target)
719
+ :zoom, :float, # Camera zoom (scaling around target), must not be set to 0, set to 1.0f for no scale
720
720
  )
721
721
  def offset = self[:offset]
722
722
  def offset=(v) self[:offset] = v end
@@ -1765,6 +1765,12 @@ module Raylib
1765
1765
  # @return [void]
1766
1766
  [:OpenURL, :OpenURL, [:pointer], :void],
1767
1767
 
1768
+ # @!method SetTraceLogLevel(logLevel)
1769
+ # SetTraceLogLevel : Set the current threshold (minimum) log level
1770
+ # @param logLevel [int]
1771
+ # @return [void]
1772
+ [:SetTraceLogLevel, :SetTraceLogLevel, [:int], :void],
1773
+
1768
1774
  # @!method TraceLog(logLevel, text, ...)
1769
1775
  # TraceLog : Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)
1770
1776
  # @param logLevel [int]
@@ -1773,11 +1779,11 @@ module Raylib
1773
1779
  # @return [void]
1774
1780
  [:TraceLog, :TraceLog, [:int, :pointer, :varargs], :void],
1775
1781
 
1776
- # @!method SetTraceLogLevel(logLevel)
1777
- # SetTraceLogLevel : Set the current threshold (minimum) log level
1778
- # @param logLevel [int]
1782
+ # @!method SetTraceLogCallback(callback)
1783
+ # SetTraceLogCallback : Set custom trace log
1784
+ # @param callback [TraceLogCallback]
1779
1785
  # @return [void]
1780
- [:SetTraceLogLevel, :SetTraceLogLevel, [:int], :void],
1786
+ [:SetTraceLogCallback, :SetTraceLogCallback, [:TraceLogCallback], :void],
1781
1787
 
1782
1788
  # @!method MemAlloc(size)
1783
1789
  # MemAlloc : Internal memory allocator
@@ -1798,36 +1804,6 @@ module Raylib
1798
1804
  # @return [void]
1799
1805
  [:MemFree, :MemFree, [:pointer], :void],
1800
1806
 
1801
- # @!method SetTraceLogCallback(callback)
1802
- # SetTraceLogCallback : Set custom trace log
1803
- # @param callback [TraceLogCallback]
1804
- # @return [void]
1805
- [:SetTraceLogCallback, :SetTraceLogCallback, [:TraceLogCallback], :void],
1806
-
1807
- # @!method SetLoadFileDataCallback(callback)
1808
- # SetLoadFileDataCallback : Set custom file binary data loader
1809
- # @param callback [LoadFileDataCallback]
1810
- # @return [void]
1811
- [:SetLoadFileDataCallback, :SetLoadFileDataCallback, [:LoadFileDataCallback], :void],
1812
-
1813
- # @!method SetSaveFileDataCallback(callback)
1814
- # SetSaveFileDataCallback : Set custom file binary data saver
1815
- # @param callback [SaveFileDataCallback]
1816
- # @return [void]
1817
- [:SetSaveFileDataCallback, :SetSaveFileDataCallback, [:SaveFileDataCallback], :void],
1818
-
1819
- # @!method SetLoadFileTextCallback(callback)
1820
- # SetLoadFileTextCallback : Set custom file text data loader
1821
- # @param callback [LoadFileTextCallback]
1822
- # @return [void]
1823
- [:SetLoadFileTextCallback, :SetLoadFileTextCallback, [:LoadFileTextCallback], :void],
1824
-
1825
- # @!method SetSaveFileTextCallback(callback)
1826
- # SetSaveFileTextCallback : Set custom file text data saver
1827
- # @param callback [SaveFileTextCallback]
1828
- # @return [void]
1829
- [:SetSaveFileTextCallback, :SetSaveFileTextCallback, [:SaveFileTextCallback], :void],
1830
-
1831
1807
  # @!method LoadFileData(fileName, dataSize)
1832
1808
  # LoadFileData : Load file data as byte array (read)
1833
1809
  # @param fileName [const char *]
@@ -1876,6 +1852,72 @@ module Raylib
1876
1852
  # @return [bool]
1877
1853
  [:SaveFileText, :SaveFileText, [:pointer, :pointer], :bool],
1878
1854
 
1855
+ # @!method SetLoadFileDataCallback(callback)
1856
+ # SetLoadFileDataCallback : Set custom file binary data loader
1857
+ # @param callback [LoadFileDataCallback]
1858
+ # @return [void]
1859
+ [:SetLoadFileDataCallback, :SetLoadFileDataCallback, [:LoadFileDataCallback], :void],
1860
+
1861
+ # @!method SetSaveFileDataCallback(callback)
1862
+ # SetSaveFileDataCallback : Set custom file binary data saver
1863
+ # @param callback [SaveFileDataCallback]
1864
+ # @return [void]
1865
+ [:SetSaveFileDataCallback, :SetSaveFileDataCallback, [:SaveFileDataCallback], :void],
1866
+
1867
+ # @!method SetLoadFileTextCallback(callback)
1868
+ # SetLoadFileTextCallback : Set custom file text data loader
1869
+ # @param callback [LoadFileTextCallback]
1870
+ # @return [void]
1871
+ [:SetLoadFileTextCallback, :SetLoadFileTextCallback, [:LoadFileTextCallback], :void],
1872
+
1873
+ # @!method SetSaveFileTextCallback(callback)
1874
+ # SetSaveFileTextCallback : Set custom file text data saver
1875
+ # @param callback [SaveFileTextCallback]
1876
+ # @return [void]
1877
+ [:SetSaveFileTextCallback, :SetSaveFileTextCallback, [:SaveFileTextCallback], :void],
1878
+
1879
+ # @!method FileRename(fileName, fileRename)
1880
+ # FileRename : Rename file (if exists)
1881
+ # @param fileName [const char *]
1882
+ # @param fileRename [const char *]
1883
+ # @return [int]
1884
+ [:FileRename, :FileRename, [:pointer, :pointer], :int],
1885
+
1886
+ # @!method FileRemove(fileName)
1887
+ # FileRemove : Remove file (if exists)
1888
+ # @param fileName [const char *]
1889
+ # @return [int]
1890
+ [:FileRemove, :FileRemove, [:pointer], :int],
1891
+
1892
+ # @!method FileCopy(srcPath, dstPath)
1893
+ # FileCopy : Copy file from one path to another, dstPath created if it doesn't exist
1894
+ # @param srcPath [const char *]
1895
+ # @param dstPath [const char *]
1896
+ # @return [int]
1897
+ [:FileCopy, :FileCopy, [:pointer, :pointer], :int],
1898
+
1899
+ # @!method FileMove(srcPath, dstPath)
1900
+ # FileMove : Move file from one directory to another, dstPath created if it doesn't exist
1901
+ # @param srcPath [const char *]
1902
+ # @param dstPath [const char *]
1903
+ # @return [int]
1904
+ [:FileMove, :FileMove, [:pointer, :pointer], :int],
1905
+
1906
+ # @!method FileTextReplace(fileName, search, replacement)
1907
+ # FileTextReplace : Replace text in an existing file
1908
+ # @param fileName [const char *]
1909
+ # @param search [const char *]
1910
+ # @param replacement [const char *]
1911
+ # @return [int]
1912
+ [:FileTextReplace, :FileTextReplace, [:pointer, :pointer, :pointer], :int],
1913
+
1914
+ # @!method FileTextFindIndex(fileName, search)
1915
+ # FileTextFindIndex : Find text in existing file
1916
+ # @param fileName [const char *]
1917
+ # @param search [const char *]
1918
+ # @return [int]
1919
+ [:FileTextFindIndex, :FileTextFindIndex, [:pointer, :pointer], :int],
1920
+
1879
1921
  # @!method FileExists(fileName)
1880
1922
  # FileExists : Check if file exists
1881
1923
  # @param fileName [const char *]
@@ -1889,7 +1931,7 @@ module Raylib
1889
1931
  [:DirectoryExists, :DirectoryExists, [:pointer], :bool],
1890
1932
 
1891
1933
  # @!method IsFileExtension(fileName, ext)
1892
- # IsFileExtension : Check file extension (including point: .png, .wav)
1934
+ # IsFileExtension : Check file extension (recommended include point: .png, .wav)
1893
1935
  # @param fileName [const char *]
1894
1936
  # @param ext [const char *]
1895
1937
  # @return [bool]
@@ -1901,6 +1943,12 @@ module Raylib
1901
1943
  # @return [int]
1902
1944
  [:GetFileLength, :GetFileLength, [:pointer], :int],
1903
1945
 
1946
+ # @!method GetFileModTime(fileName)
1947
+ # GetFileModTime : Get file modification time (last write time)
1948
+ # @param fileName [const char *]
1949
+ # @return [long]
1950
+ [:GetFileModTime, :GetFileModTime, [:pointer], :long],
1951
+
1904
1952
  # @!method GetFileExtension(fileName)
1905
1953
  # GetFileExtension : Get pointer to extension for a filename string (includes dot: '.png')
1906
1954
  # @param fileName [const char *]
@@ -1947,9 +1995,9 @@ module Raylib
1947
1995
  # @return [int]
1948
1996
  [:MakeDirectory, :MakeDirectory, [:pointer], :int],
1949
1997
 
1950
- # @!method ChangeDirectory(dir)
1998
+ # @!method ChangeDirectory(dirPath)
1951
1999
  # ChangeDirectory : Change working directory, return true on success
1952
- # @param dir [const char *]
2000
+ # @param dirPath [const char *]
1953
2001
  # @return [bool]
1954
2002
  [:ChangeDirectory, :ChangeDirectory, [:pointer], :bool],
1955
2003
 
@@ -2001,12 +2049,6 @@ module Raylib
2001
2049
  # @return [void]
2002
2050
  [:UnloadDroppedFiles, :UnloadDroppedFiles, [FilePathList.by_value], :void],
2003
2051
 
2004
- # @!method GetFileModTime(fileName)
2005
- # GetFileModTime : Get file modification time (last write time)
2006
- # @param fileName [const char *]
2007
- # @return [long]
2008
- [:GetFileModTime, :GetFileModTime, [:pointer], :long],
2009
-
2010
2052
  # @!method CompressData(data, dataSize, compDataSize)
2011
2053
  # CompressData : Compress data (DEFLATE algorithm), memory must be MemFree()
2012
2054
  # @param data [const unsigned char *]
@@ -2059,6 +2101,13 @@ module Raylib
2059
2101
  # @return [unsigned int *]
2060
2102
  [:ComputeSHA1, :ComputeSHA1, [:pointer, :int], :pointer],
2061
2103
 
2104
+ # @!method ComputeSHA256(data, dataSize)
2105
+ # ComputeSHA256 : Compute SHA256 hash code, returns static int[8] (32 bytes)
2106
+ # @param data [unsigned char *]
2107
+ # @param dataSize [int]
2108
+ # @return [unsigned int *]
2109
+ [:ComputeSHA256, :ComputeSHA256, [:pointer, :int], :pointer],
2110
+
2062
2111
  # @!method LoadAutomationEventList(fileName)
2063
2112
  # LoadAutomationEventList : Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS
2064
2113
  # @param fileName [const char *]
@@ -2473,6 +2522,16 @@ module Raylib
2473
2522
  # @return [void]
2474
2523
  [:DrawLineBezier, :DrawLineBezier, [Vector2.by_value, Vector2.by_value, :float, Color.by_value], :void],
2475
2524
 
2525
+ # @!method DrawLineDashed(startPos, endPos, dashSize, spaceSize, color)
2526
+ # DrawLineDashed : Draw a dashed line
2527
+ # @param startPos [Vector2]
2528
+ # @param endPos [Vector2]
2529
+ # @param dashSize [int]
2530
+ # @param spaceSize [int]
2531
+ # @param color [Color]
2532
+ # @return [void]
2533
+ [:DrawLineDashed, :DrawLineDashed, [Vector2.by_value, Vector2.by_value, :int, :int, Color.by_value], :void],
2534
+
2476
2535
  # @!method DrawCircle(centerX, centerY, radius, color)
2477
2536
  # DrawCircle : Draw a color-filled circle
2478
2537
  # @param centerX [int]
@@ -3928,7 +3987,7 @@ module Raylib
3928
3987
  # LoadFontEx : Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height
3929
3988
  # @param fileName [const char *]
3930
3989
  # @param fontSize [int]
3931
- # @param codepoints [int *]
3990
+ # @param codepoints [const int *]
3932
3991
  # @param codepointCount [int]
3933
3992
  # @return [Font]
3934
3993
  [:LoadFontEx, :LoadFontEx, [:pointer, :int, :pointer, :int], Font.by_value],
@@ -3947,7 +4006,7 @@ module Raylib
3947
4006
  # @param fileData [const unsigned char *]
3948
4007
  # @param dataSize [int]
3949
4008
  # @param fontSize [int]
3950
- # @param codepoints [int *]
4009
+ # @param codepoints [const int *]
3951
4010
  # @param codepointCount [int]
3952
4011
  # @return [Font]
3953
4012
  [:LoadFontFromMemory, :LoadFontFromMemory, [:pointer, :pointer, :int, :int, :pointer, :int], Font.by_value],
@@ -3958,16 +4017,17 @@ module Raylib
3958
4017
  # @return [bool]
3959
4018
  [:IsFontValid, :IsFontValid, [Font.by_value], :bool],
3960
4019
 
3961
- # @!method LoadFontData(fileData, dataSize, fontSize, codepoints, codepointCount, type)
4020
+ # @!method LoadFontData(fileData, dataSize, fontSize, codepoints, codepointCount, type, glyphCount)
3962
4021
  # LoadFontData : Load font data for further use
3963
4022
  # @param fileData [const unsigned char *]
3964
4023
  # @param dataSize [int]
3965
4024
  # @param fontSize [int]
3966
- # @param codepoints [int *]
4025
+ # @param codepoints [const int *]
3967
4026
  # @param codepointCount [int]
3968
4027
  # @param type [int]
4028
+ # @param glyphCount [int *]
3969
4029
  # @return [GlyphInfo *]
3970
- [:LoadFontData, :LoadFontData, [:pointer, :int, :int, :pointer, :int, :int], :pointer],
4030
+ [:LoadFontData, :LoadFontData, [:pointer, :int, :int, :pointer, :int, :int, :pointer], :pointer],
3971
4031
 
3972
4032
  # @!method GenImageFontAtlas(glyphs, glyphRecs, glyphCount, fontSize, padding, packMethod)
3973
4033
  # GenImageFontAtlas : Generate image font atlas using chars info
@@ -4166,6 +4226,20 @@ module Raylib
4166
4226
  # @return [const char *]
4167
4227
  [:CodepointToUTF8, :CodepointToUTF8, [:int, :pointer], :pointer],
4168
4228
 
4229
+ # @!method LoadTextLines(text, count)
4230
+ # LoadTextLines : Load text as separate lines ('\n')
4231
+ # @param text [const char *]
4232
+ # @param count [int *]
4233
+ # @return [char **]
4234
+ [:LoadTextLines, :LoadTextLines, [:pointer, :pointer], :pointer],
4235
+
4236
+ # @!method UnloadTextLines(text, lineCount)
4237
+ # UnloadTextLines : Unload text lines
4238
+ # @param text [char **]
4239
+ # @param lineCount [int]
4240
+ # @return [void]
4241
+ [:UnloadTextLines, :UnloadTextLines, [:pointer, :int], :void],
4242
+
4169
4243
  # @!method TextCopy(dst, src)
4170
4244
  # TextCopy : Copy one string to another, returns bytes copied
4171
4245
  # @param dst [char *]
@@ -4201,14 +4275,37 @@ module Raylib
4201
4275
  # @return [const char *]
4202
4276
  [:TextSubtext, :TextSubtext, [:pointer, :int, :int], :pointer],
4203
4277
 
4204
- # @!method TextReplace(text, replace, by)
4278
+ # @!method TextRemoveSpaces(text)
4279
+ # TextRemoveSpaces : Remove text spaces, concat words
4280
+ # @param text [const char *]
4281
+ # @return [const char *]
4282
+ [:TextRemoveSpaces, :TextRemoveSpaces, [:pointer], :pointer],
4283
+
4284
+ # @!method GetTextBetween(text, begin, end)
4285
+ # GetTextBetween : Get text between two strings
4286
+ # @param text [const char *]
4287
+ # @param begin [const char *]
4288
+ # @param end [const char *]
4289
+ # @return [char *]
4290
+ [:GetTextBetween, :GetTextBetween, [:pointer, :pointer, :pointer], :pointer],
4291
+
4292
+ # @!method TextReplace(text, search, replacement)
4205
4293
  # TextReplace : Replace text string (WARNING: memory must be freed!)
4206
4294
  # @param text [const char *]
4207
- # @param replace [const char *]
4208
- # @param by [const char *]
4295
+ # @param search [const char *]
4296
+ # @param replacement [const char *]
4209
4297
  # @return [char *]
4210
4298
  [:TextReplace, :TextReplace, [:pointer, :pointer, :pointer], :pointer],
4211
4299
 
4300
+ # @!method TextReplaceBetween(text, begin, end, replacement)
4301
+ # TextReplaceBetween : Replace text between two specific strings (WARNING: memory must be freed!)
4302
+ # @param text [const char *]
4303
+ # @param begin [const char *]
4304
+ # @param end [const char *]
4305
+ # @param replacement [const char *]
4306
+ # @return [char *]
4307
+ [:TextReplaceBetween, :TextReplaceBetween, [:pointer, :pointer, :pointer, :pointer], :pointer],
4308
+
4212
4309
  # @!method TextInsert(text, insert, position)
4213
4310
  # TextInsert : Insert text in a position (WARNING: memory must be freed!)
4214
4311
  # @param text [const char *]
@@ -4226,7 +4323,7 @@ module Raylib
4226
4323
  [:TextJoin, :TextJoin, [:pointer, :int, :pointer], :pointer],
4227
4324
 
4228
4325
  # @!method TextSplit(text, delimiter, count)
4229
- # TextSplit : Split text into multiple strings
4326
+ # TextSplit : Split text into multiple strings, using MAX_TEXTSPLIT_COUNT static strings
4230
4327
  # @param text [const char *]
4231
4328
  # @param delimiter [char]
4232
4329
  # @param count [int *]
@@ -4234,17 +4331,17 @@ module Raylib
4234
4331
  [:TextSplit, :TextSplit, [:pointer, :char, :pointer], :pointer],
4235
4332
 
4236
4333
  # @!method TextAppend(text, append, position)
4237
- # TextAppend : Append text at specific position and move cursor!
4334
+ # TextAppend : Append text at specific position and move cursor
4238
4335
  # @param text [char *]
4239
4336
  # @param append [const char *]
4240
4337
  # @param position [int *]
4241
4338
  # @return [void]
4242
4339
  [:TextAppend, :TextAppend, [:pointer, :pointer, :pointer], :void],
4243
4340
 
4244
- # @!method TextFindIndex(text, find)
4245
- # TextFindIndex : Find first text occurrence within a string
4341
+ # @!method TextFindIndex(text, search)
4342
+ # TextFindIndex : Find first text occurrence within a string, -1 if not found
4246
4343
  # @param text [const char *]
4247
- # @param find [const char *]
4344
+ # @param search [const char *]
4248
4345
  # @return [int]
4249
4346
  [:TextFindIndex, :TextFindIndex, [:pointer, :pointer], :int],
4250
4347
 
@@ -4990,7 +5087,7 @@ module Raylib
4990
5087
  [:IsSoundValid, :IsSoundValid, [Sound.by_value], :bool],
4991
5088
 
4992
5089
  # @!method UpdateSound(sound, data, sampleCount)
4993
- # UpdateSound : Update sound buffer with new data (data and frame count should fit in sound)
5090
+ # UpdateSound : Update sound buffer with new data (default data format: 32 bit float, stereo)
4994
5091
  # @param sound [Sound]
4995
5092
  # @param data [const void *]
4996
5093
  # @param sampleCount [int]
@@ -5074,7 +5171,7 @@ module Raylib
5074
5171
  [:SetSoundPitch, :SetSoundPitch, [Sound.by_value, :float], :void],
5075
5172
 
5076
5173
  # @!method SetSoundPan(sound, pan)
5077
- # SetSoundPan : Set pan for a sound (0.5 is center)
5174
+ # SetSoundPan : Set pan for a sound (-1.0 left, 0.0 center, 1.0 right)
5078
5175
  # @param sound [Sound]
5079
5176
  # @param pan [float]
5080
5177
  # @return [void]
@@ -5199,7 +5296,7 @@ module Raylib
5199
5296
  [:SetMusicPitch, :SetMusicPitch, [Music.by_value, :float], :void],
5200
5297
 
5201
5298
  # @!method SetMusicPan(music, pan)
5202
- # SetMusicPan : Set pan for a music (0.5 is center)
5299
+ # SetMusicPan : Set pan for a music (-1.0 left, 0.0 center, 1.0 right)
5203
5300
  # @param music [Music]
5204
5301
  # @param pan [float]
5205
5302
  # @return [void]
data/lib/raymath.rb CHANGED
@@ -1040,6 +1040,14 @@ module Raylib
1040
1040
  # @return [int]
1041
1041
  [:QuaternionEquals, :QuaternionEquals, [Quaternion.by_value, Quaternion.by_value], :int],
1042
1042
 
1043
+ # @!method MatrixCompose(translation, rotation, scale)
1044
+ # MatrixCompose
1045
+ # @param translation [Vector3]
1046
+ # @param rotation [Quaternion]
1047
+ # @param scale [Vector3]
1048
+ # @return [Matrix]
1049
+ [:MatrixCompose, :MatrixCompose, [Vector3.by_value, Quaternion.by_value, Vector3.by_value], Matrix.by_value],
1050
+
1043
1051
  # @!method MatrixDecompose(mat, translation, rotation, scale)
1044
1052
  # MatrixDecompose
1045
1053
  # @param mat [Matrix]
data/lib/rlgl.rb CHANGED
@@ -84,12 +84,13 @@ module Raylib
84
84
 
85
85
  # enum rlGlVersion
86
86
  # OpenGL version
87
- RL_OPENGL_11 = 1 # OpenGL 1.1
88
- RL_OPENGL_21 = 2 # OpenGL 2.1 (GLSL 120)
89
- RL_OPENGL_33 = 3 # OpenGL 3.3 (GLSL 330)
90
- RL_OPENGL_43 = 4 # OpenGL 4.3 (using GLSL 330)
91
- RL_OPENGL_ES_20 = 5 # OpenGL ES 2.0 (GLSL 100)
92
- RL_OPENGL_ES_30 = 6 # OpenGL ES 3.0 (GLSL 300 es)
87
+ RL_OPENGL_11_SOFTWARE = 0 # Software rendering
88
+ RL_OPENGL_11 = 1 # OpenGL 1.1
89
+ RL_OPENGL_21 = 2 # OpenGL 2.1 (GLSL 120)
90
+ RL_OPENGL_33 = 3 # OpenGL 3.3 (GLSL 330)
91
+ RL_OPENGL_43 = 4 # OpenGL 4.3 (using GLSL 330)
92
+ RL_OPENGL_ES_20 = 5 # OpenGL ES 2.0 (GLSL 100)
93
+ RL_OPENGL_ES_30 = 6 # OpenGL ES 3.0 (GLSL 300 es)
93
94
 
94
95
  # enum rlTraceLogLevel
95
96
  # Trace log level
@@ -544,6 +545,19 @@ module Raylib
544
545
  # @return [void]
545
546
  [:rlDisableVertexAttribute, :rlDisableVertexAttribute, [:uint], :void],
546
547
 
548
+ # @!method rlEnableStatePointer(vertexAttribType, buffer)
549
+ # rlEnableStatePointer : Enable attribute state pointer
550
+ # @param vertexAttribType [int]
551
+ # @param buffer [void *]
552
+ # @return [void]
553
+ [:rlEnableStatePointer, :rlEnableStatePointer, [:int, :pointer], :void],
554
+
555
+ # @!method rlDisableStatePointer(vertexAttribType)
556
+ # rlDisableStatePointer : Disable attribute state pointer
557
+ # @param vertexAttribType [int]
558
+ # @return [void]
559
+ [:rlDisableStatePointer, :rlDisableStatePointer, [:int], :void],
560
+
547
561
  # @!method rlActiveTextureSlot(slot)
548
562
  # rlActiveTextureSlot : Select and active a texture slot
549
563
  # @param slot [int]
@@ -726,6 +740,17 @@ module Raylib
726
740
  # @return [void]
727
741
  [:rlDisablePointMode, :rlDisablePointMode, [], :void],
728
742
 
743
+ # @!method rlSetPointSize(size)
744
+ # rlSetPointSize : Set the point drawing size
745
+ # @param size [float]
746
+ # @return [void]
747
+ [:rlSetPointSize, :rlSetPointSize, [:float], :void],
748
+
749
+ # @!method rlGetPointSize()
750
+ # rlGetPointSize : Get the point drawing size
751
+ # @return [float]
752
+ [:rlGetPointSize, :rlGetPointSize, [], :float],
753
+
729
754
  # @!method rlEnableWireMode()
730
755
  # rlEnableWireMode : Enable wire mode
731
756
  # @return [void]
@@ -834,6 +859,12 @@ module Raylib
834
859
  # @return [void]
835
860
  [:rlLoadExtensions, :rlLoadExtensions, [:pointer], :void],
836
861
 
862
+ # @!method rlGetProcAddress(procName)
863
+ # rlGetProcAddress : Get OpenGL procedure address
864
+ # @param procName [const char *]
865
+ # @return [void *]
866
+ [:rlGetProcAddress, :rlGetProcAddress, [:pointer], :pointer],
867
+
837
868
  # @!method rlGetVersion()
838
869
  # rlGetVersion : Get current OpenGL version
839
870
  # @return [int]
@@ -1141,6 +1172,24 @@ module Raylib
1141
1172
  # @return [void]
1142
1173
  [:rlUnloadFramebuffer, :rlUnloadFramebuffer, [:uint], :void],
1143
1174
 
1175
+ # @!method rlCopyFramebuffer(x, y, width, height, format, pixels)
1176
+ # rlCopyFramebuffer : Copy framebuffer pixel data to internal buffer
1177
+ # @param x [int]
1178
+ # @param y [int]
1179
+ # @param width [int]
1180
+ # @param height [int]
1181
+ # @param format [int]
1182
+ # @param pixels [void *]
1183
+ # @return [void]
1184
+ [:rlCopyFramebuffer, :rlCopyFramebuffer, [:int, :int, :int, :int, :int, :pointer], :void],
1185
+
1186
+ # @!method rlResizeFramebuffer(width, height)
1187
+ # rlResizeFramebuffer : Resize internal framebuffer
1188
+ # @param width [int]
1189
+ # @param height [int]
1190
+ # @return [void]
1191
+ [:rlResizeFramebuffer, :rlResizeFramebuffer, [:int, :int], :void],
1192
+
1144
1193
  # @!method rlLoadShaderCode(vsCode, fsCode)
1145
1194
  # rlLoadShaderCode : Load shader from code strings
1146
1195
  # @param vsCode [const char *]
@@ -1169,14 +1218,14 @@ module Raylib
1169
1218
  [:rlUnloadShaderProgram, :rlUnloadShaderProgram, [:uint], :void],
1170
1219
 
1171
1220
  # @!method rlGetLocationUniform(shaderId, uniformName)
1172
- # rlGetLocationUniform : Get shader location uniform
1221
+ # rlGetLocationUniform : Get shader location uniform, requires shader program id
1173
1222
  # @param shaderId [unsigned int]
1174
1223
  # @param uniformName [const char *]
1175
1224
  # @return [int]
1176
1225
  [:rlGetLocationUniform, :rlGetLocationUniform, [:uint, :pointer], :int],
1177
1226
 
1178
1227
  # @!method rlGetLocationAttrib(shaderId, attribName)
1179
- # rlGetLocationAttrib : Get shader location attribute
1228
+ # rlGetLocationAttrib : Get shader location attribute, requires shader program id
1180
1229
  # @param shaderId [unsigned int]
1181
1230
  # @param attribName [const char *]
1182
1231
  # @return [int]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raylib-bindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.14
4
+ version: 0.7.17
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - vaiorabbit
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-07-13 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ffi
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.6.5
72
+ rubygems_version: 4.0.3
73
73
  specification_version: 4
74
74
  summary: Ruby bindings for raylib, raygui and Physac
75
75
  test_files: []