raylib-bindings 0.7.14-x64-mingw → 0.7.15-x64-mingw
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 +4 -4
- data/ChangeLog +4 -0
- data/README.md +10 -6
- data/lib/libraylib.dll +0 -0
- data/lib/physac.dll +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raygui_main.rb +27 -0
- data/lib/raylib_main.rb +118 -21
- data/lib/rlgl.rb +39 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe7199a87b3cc78dfd77897868ba8a917af615a393857d8ae79859210bb96532
|
|
4
|
+
data.tar.gz: 0c471b2aede5eae0ca5b920a33cba7ba9ab00187e5b67c3075c62be5129737f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6a07d6b2f8b6cfafa87c8f0ed0ed411b163bc14b11d705c622c4a6b9f3fc90f5a6cbd9df0e99cc74b9781d3225e0d8115bb908f839564e33d690d2b4bf66bea
|
|
7
|
+
data.tar.gz: 638568714f969c6b6006d5abc15af18b2581af3b4e19b7bb689ca32b7a460f306c170a461e77ddda7b8194e0fb5be0bd8c0b85c7e03c2645e4b4ce65a4951e9c
|
data/ChangeLog
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
2025-10-26 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
2
|
+
|
|
3
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/a818508158119f74e99b4dc98345c28ce112733c ) and raygui ( https://github.com/raysan5/raygui/commit/b9971133b2f7b7513904770d565b683a93fb3624 )
|
|
4
|
+
|
|
1
5
|
2025-07-13 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
2
6
|
|
|
3
7
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/20a07a65d7b5625f9d165d2659cfc06bd67116a4 )
|
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-
|
|
6
|
+
* Last modified : 2025-10-26
|
|
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/
|
|
10
|
+
* [raylib](https://github.com/raysan5/raylib) version [5.6-dev]( https://github.com/raysan5/raylib/commit/a818508158119f74e99b4dc98345c28ce112733c )
|
|
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/
|
|
14
|
+
* [raygui](https://github.com/raysan5/raygui) version [5.0-dev]( https://github.com/raysan5/raygui/commit/b9971133b2f7b7513904770d565b683a93fb3624 )
|
|
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.
|
|
53
|
+
* ruby 3.4.7 (2025-10-08 revision 7a5688e2a2) +PRISM [x64-mingw-ucrt]
|
|
54
54
|
* [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
|
|
55
|
-
* ruby 3.
|
|
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 (
|
|
73
|
+
gcc (Rev8, Built by MSYS2 project) 15.2.0
|
|
74
74
|
|
|
75
75
|
* [Linux] gcc, clang
|
|
76
76
|
|
|
@@ -91,12 +91,16 @@ 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.4 (2025-05-14 revision a38531fd3f) +PRISM [x64-mingw-ucrt]
|
|
95
|
+
* ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x64-mingw-ucrt]
|
|
94
96
|
* ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x64-mingw-ucrt]
|
|
95
97
|
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x64-mingw-ucrt]
|
|
96
98
|
* ruby 3.2.0 (2022-12-25 revision a528908271) [x64-mingw-ucrt]
|
|
97
99
|
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
|
|
98
100
|
* ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
|
|
99
101
|
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
|
102
|
+
* [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
|
|
103
|
+
* ruby 3.2.0preview1 (2022-04-03 master f801386f0c) [x86_64-linux]
|
|
100
104
|
* [Linux/ARM64 Chromebook] https://github.com/rvm/ubuntu_rvm
|
|
101
105
|
* ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]
|
|
102
106
|
|
data/lib/libraylib.dll
CHANGED
|
Binary file
|
data/lib/physac.dll
CHANGED
|
Binary file
|
data/lib/raygui.dll
CHANGED
|
Binary file
|
data/lib/raygui_main.rb
CHANGED
|
@@ -440,6 +440,27 @@ module Raylib
|
|
|
440
440
|
|
|
441
441
|
# Struct
|
|
442
442
|
|
|
443
|
+
# It should be redesigned to be provided by user
|
|
444
|
+
class Texture < FFI::Struct
|
|
445
|
+
layout(
|
|
446
|
+
:id, :uint, # OpenGL texture id
|
|
447
|
+
:width, :int, # Texture base width
|
|
448
|
+
:height, :int, # Texture base height
|
|
449
|
+
:mipmaps, :int, # Mipmap levels, 1 by default
|
|
450
|
+
:format, :int, # Data format (PixelFormat type)
|
|
451
|
+
)
|
|
452
|
+
def id = self[:id]
|
|
453
|
+
def id=(v) self[:id] = v end
|
|
454
|
+
def width = self[:width]
|
|
455
|
+
def width=(v) self[:width] = v end
|
|
456
|
+
def height = self[:height]
|
|
457
|
+
def height=(v) self[:height] = v end
|
|
458
|
+
def mipmaps = self[:mipmaps]
|
|
459
|
+
def mipmaps=(v) self[:mipmaps] = v end
|
|
460
|
+
def format = self[:format]
|
|
461
|
+
def format=(v) self[:format] = v end
|
|
462
|
+
end
|
|
463
|
+
|
|
443
464
|
# NOTE: Used when exporting style as code for convenience
|
|
444
465
|
class GuiStyleProp < FFI::Struct
|
|
445
466
|
layout(
|
|
@@ -591,6 +612,12 @@ module Raylib
|
|
|
591
612
|
# @return [void]
|
|
592
613
|
[:GuiDrawIcon, :GuiDrawIcon, [:int, :int, :int, :int, Color.by_value], :void],
|
|
593
614
|
|
|
615
|
+
# @!method GuiGetTextWidth(text)
|
|
616
|
+
# GuiGetTextWidth : Get text width considering gui style and icon size (if required)
|
|
617
|
+
# @param text [const char *]
|
|
618
|
+
# @return [int]
|
|
619
|
+
[:GuiGetTextWidth, :GuiGetTextWidth, [:pointer], :int],
|
|
620
|
+
|
|
594
621
|
# @!method GuiWindowBox(bounds, title)
|
|
595
622
|
# GuiWindowBox : Window Box control, shows a window that can be closed
|
|
596
623
|
# @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
|
|
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]
|
|
@@ -1876,6 +1876,48 @@ module Raylib
|
|
|
1876
1876
|
# @return [bool]
|
|
1877
1877
|
[:SaveFileText, :SaveFileText, [:pointer, :pointer], :bool],
|
|
1878
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 (
|
|
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 *]
|
|
@@ -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
|
|
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
|
|
4208
|
-
# @param
|
|
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,
|
|
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
|
|
4344
|
+
# @param search [const char *]
|
|
4248
4345
|
# @return [int]
|
|
4249
4346
|
[:TextFindIndex, :TextFindIndex, [:pointer, :pointer], :int],
|
|
4250
4347
|
|
data/lib/rlgl.rb
CHANGED
|
@@ -84,12 +84,13 @@ module Raylib
|
|
|
84
84
|
|
|
85
85
|
# enum rlGlVersion
|
|
86
86
|
# OpenGL version
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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]
|
|
@@ -1169,14 +1200,14 @@ module Raylib
|
|
|
1169
1200
|
[:rlUnloadShaderProgram, :rlUnloadShaderProgram, [:uint], :void],
|
|
1170
1201
|
|
|
1171
1202
|
# @!method rlGetLocationUniform(shaderId, uniformName)
|
|
1172
|
-
# rlGetLocationUniform : Get shader location uniform
|
|
1203
|
+
# rlGetLocationUniform : Get shader location uniform, requires shader program id
|
|
1173
1204
|
# @param shaderId [unsigned int]
|
|
1174
1205
|
# @param uniformName [const char *]
|
|
1175
1206
|
# @return [int]
|
|
1176
1207
|
[:rlGetLocationUniform, :rlGetLocationUniform, [:uint, :pointer], :int],
|
|
1177
1208
|
|
|
1178
1209
|
# @!method rlGetLocationAttrib(shaderId, attribName)
|
|
1179
|
-
# rlGetLocationAttrib : Get shader location attribute
|
|
1210
|
+
# rlGetLocationAttrib : Get shader location attribute, requires shader program id
|
|
1180
1211
|
# @param shaderId [unsigned int]
|
|
1181
1212
|
# @param attribName [const char *]
|
|
1182
1213
|
# @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.
|
|
4
|
+
version: 0.7.15
|
|
5
5
|
platform: x64-mingw
|
|
6
6
|
authors:
|
|
7
7
|
- vaiorabbit
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
10
|
+
date: 2025-10-26 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: ffi
|