raylib-bindings 0.7.12 → 0.7.13
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 +8 -0
- data/README.md +7 -5
- data/lib/config.rb +3 -3
- data/lib/libraylib.aarch64.so +0 -0
- data/lib/libraylib.arm64.dylib +0 -0
- data/lib/libraylib.dll +0 -0
- data/lib/libraylib.x86_64.dylib +0 -0
- data/lib/libraylib.x86_64.so +0 -0
- data/lib/physac.dll +0 -0
- data/lib/raygui.aarch64.so +0 -0
- data/lib/raygui.arm64.dylib +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raygui.x86_64.dylib +0 -0
- data/lib/raygui.x86_64.so +0 -0
- data/lib/raylib_main.rb +30 -12
- data/lib/rlgl.rb +5 -5
- 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: 58b5cf1df9fef8194482323704c8406c133191316559d54fd377930d6005e0cb
|
4
|
+
data.tar.gz: 8b78cdc6826e04b703cf6701cbc8934b5e441084b7cad45c436615ef58dbda1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa5da0ba84fd6ea405ac56cfc1d4af774e7c15b68a5ae4ef84da6e471edda894b7b9c94f4cfce366571cd1e2b7a49869316413fe7a599efc41bfa903c1157ac6
|
7
|
+
data.tar.gz: 159f7d8d3c6dc2d91915c2d33de339f84d94f387c61e36de0fd8ce4f766b88d3d535122ed7462b53d28c12325b673e6c25977a92d34ab8c5c3ed77c24bf34502
|
data/ChangeLog
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
2025-06-08 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/59bcf680aafb6f054e150f70c8c71deb44ad04b1) and raygui ( https://github.com/raysan5/raygui/commit/99b37e4d4fdc19e7bf73844d6b9f177cbb27ce24 )
|
4
|
+
|
5
|
+
2025-05-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/7e072783683e8449c70e39148c4ac5ccc2ae8c49) and raygui ( https://github.com/raysan5/raygui/commit/cb78993237b4887fb0277317483b1c757d8ffc14 )
|
8
|
+
|
1
9
|
2025-04-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
10
|
|
3
11
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/1ec281e86fa518dd8d8d85271e42cf8db4340f41) and raygui ( https://github.com/raysan5/raygui/commit/0895c8b8c4bf9e111492b19fba336d62d4a0b960 )
|
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-06-08
|
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/59bcf680aafb6f054e150f70c8c71deb44ad04b1 )
|
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/99b37e4d4fdc19e7bf73844d6b9f177cbb27ce24 )
|
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 3.4.
|
53
|
+
* ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x64-mingw-ucrt]
|
54
54
|
* [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
|
55
55
|
* ruby 3.2.0preview1 (2022-04-03 master f801386f0c) [x86_64-linux]
|
56
56
|
* [Linux/ARM64 Chromebook] https://github.com/rvm/ubuntu_rvm
|
@@ -70,7 +70,7 @@ D:\> ruby template.rb
|
|
70
70
|
|
71
71
|
* [Windows] gcc
|
72
72
|
|
73
|
-
gcc (Rev3, Built by MSYS2 project)
|
73
|
+
gcc (Rev3, Built by MSYS2 project) 14.2.0
|
74
74
|
|
75
75
|
* [Linux] gcc, clang
|
76
76
|
|
@@ -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 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x64-mingw-ucrt]
|
94
95
|
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x64-mingw-ucrt]
|
95
96
|
* ruby 3.2.0 (2022-12-25 revision a528908271) [x64-mingw-ucrt]
|
96
97
|
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
|
@@ -140,6 +141,7 @@ D:\> ruby template.rb
|
|
140
141
|
|
141
142
|
* [Windows] gcc
|
142
143
|
|
144
|
+
gcc (Rev3, Built by MSYS2 project) 13.2.0
|
143
145
|
gcc (Rev7, Built by MSYS2 project) 12.2.0
|
144
146
|
gcc (Rev10, Built by MSYS2 project) 11.2.0
|
145
147
|
gcc (Rev9, Built by MSYS2 project) 11.2.0
|
data/lib/config.rb
CHANGED
@@ -36,7 +36,7 @@ module Raylib
|
|
36
36
|
MAX_KEYBOARD_KEYS = 512 # Maximum number of keyboard keys supported
|
37
37
|
MAX_MOUSE_BUTTONS = 8 # Maximum number of mouse buttons supported
|
38
38
|
MAX_GAMEPADS = 4 # Maximum number of gamepads supported
|
39
|
-
|
39
|
+
MAX_GAMEPAD_AXES = 8 # Maximum number of axes supported (per gamepad)
|
40
40
|
MAX_GAMEPAD_BUTTONS = 32 # Maximum number of buttons supported (per gamepad)
|
41
41
|
MAX_GAMEPAD_VIBRATION_TIME = 2.0 # Maximum vibration time in seconds
|
42
42
|
MAX_TOUCH_POINTS = 8 # Maximum number of touch points supported
|
@@ -50,8 +50,8 @@ module Raylib
|
|
50
50
|
RL_DEFAULT_BATCH_MAX_TEXTURE_UNITS = 4 # Maximum number of textures units that can be activated on batch drawing (SetShaderValueTexture())
|
51
51
|
RL_MAX_MATRIX_STACK_SIZE = 32 # Maximum size of internal Matrix stack
|
52
52
|
RL_MAX_SHADER_LOCATIONS = 32 # Maximum number of shader locations supported
|
53
|
-
RL_CULL_DISTANCE_NEAR = 0.
|
54
|
-
RL_CULL_DISTANCE_FAR =
|
53
|
+
RL_CULL_DISTANCE_NEAR = 0.05 # Default projection matrix near cull distance
|
54
|
+
RL_CULL_DISTANCE_FAR = 4000.0 # Default projection matrix far cull distance
|
55
55
|
RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION = 0
|
56
56
|
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD = 1
|
57
57
|
RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL = 2
|
data/lib/libraylib.aarch64.so
CHANGED
Binary file
|
data/lib/libraylib.arm64.dylib
CHANGED
Binary file
|
data/lib/libraylib.dll
CHANGED
Binary file
|
data/lib/libraylib.x86_64.dylib
CHANGED
Binary file
|
data/lib/libraylib.x86_64.so
CHANGED
Binary file
|
data/lib/physac.dll
CHANGED
Binary file
|
data/lib/raygui.aarch64.so
CHANGED
Binary file
|
data/lib/raygui.arm64.dylib
CHANGED
Binary file
|
data/lib/raygui.dll
CHANGED
Binary file
|
data/lib/raygui.x86_64.dylib
CHANGED
Binary file
|
data/lib/raygui.x86_64.so
CHANGED
Binary file
|
data/lib/raylib_main.rb
CHANGED
@@ -207,7 +207,7 @@ module Raylib
|
|
207
207
|
GAMEPAD_BUTTON_RIGHT_THUMB = 17 # Gamepad joystick pressed button right
|
208
208
|
|
209
209
|
# enum GamepadAxis
|
210
|
-
# Gamepad
|
210
|
+
# Gamepad axes
|
211
211
|
GAMEPAD_AXIS_LEFT_X = 0 # Gamepad left stick X axis
|
212
212
|
GAMEPAD_AXIS_LEFT_Y = 1 # Gamepad left stick Y axis
|
213
213
|
GAMEPAD_AXIS_RIGHT_X = 2 # Gamepad right stick X axis
|
@@ -1872,7 +1872,7 @@ module Raylib
|
|
1872
1872
|
# @!method SaveFileText(fileName, text)
|
1873
1873
|
# SaveFileText : Save text data to file (write), string must be '\0' terminated, returns true on success
|
1874
1874
|
# @param fileName [const char *]
|
1875
|
-
# @param text [char *]
|
1875
|
+
# @param text [const char *]
|
1876
1876
|
# @return [bool]
|
1877
1877
|
[:SaveFileText, :SaveFileText, [:pointer, :pointer], :bool],
|
1878
1878
|
|
@@ -2024,16 +2024,16 @@ module Raylib
|
|
2024
2024
|
[:DecompressData, :DecompressData, [:pointer, :int, :pointer], :pointer],
|
2025
2025
|
|
2026
2026
|
# @!method EncodeDataBase64(data, dataSize, outputSize)
|
2027
|
-
# EncodeDataBase64 : Encode data to Base64 string, memory must be MemFree()
|
2027
|
+
# EncodeDataBase64 : Encode data to Base64 string (includes NULL terminator), memory must be MemFree()
|
2028
2028
|
# @param data [const unsigned char *]
|
2029
2029
|
# @param dataSize [int]
|
2030
2030
|
# @param outputSize [int *]
|
2031
2031
|
# @return [char *]
|
2032
2032
|
[:EncodeDataBase64, :EncodeDataBase64, [:pointer, :int, :pointer], :pointer],
|
2033
2033
|
|
2034
|
-
# @!method DecodeDataBase64(
|
2035
|
-
# DecodeDataBase64 : Decode Base64 string
|
2036
|
-
# @param
|
2034
|
+
# @!method DecodeDataBase64(text, outputSize)
|
2035
|
+
# DecodeDataBase64 : Decode Base64 string (expected NULL terminated), memory must be MemFree()
|
2036
|
+
# @param text [const char *]
|
2037
2037
|
# @param outputSize [int *]
|
2038
2038
|
# @return [unsigned char *]
|
2039
2039
|
[:DecodeDataBase64, :DecodeDataBase64, [:pointer, :pointer], :pointer],
|
@@ -2204,13 +2204,13 @@ module Raylib
|
|
2204
2204
|
[:GetGamepadButtonPressed, :GetGamepadButtonPressed, [], :int],
|
2205
2205
|
|
2206
2206
|
# @!method GetGamepadAxisCount(gamepad)
|
2207
|
-
# GetGamepadAxisCount : Get
|
2207
|
+
# GetGamepadAxisCount : Get axis count for a gamepad
|
2208
2208
|
# @param gamepad [int]
|
2209
2209
|
# @return [int]
|
2210
2210
|
[:GetGamepadAxisCount, :GetGamepadAxisCount, [:int], :int],
|
2211
2211
|
|
2212
2212
|
# @!method GetGamepadAxisMovement(gamepad, axis)
|
2213
|
-
# GetGamepadAxisMovement : Get
|
2213
|
+
# GetGamepadAxisMovement : Get movement value for a gamepad axis
|
2214
2214
|
# @param gamepad [int]
|
2215
2215
|
# @param axis [int]
|
2216
2216
|
# @return [float]
|
@@ -2549,6 +2549,15 @@ module Raylib
|
|
2549
2549
|
# @return [void]
|
2550
2550
|
[:DrawEllipse, :DrawEllipse, [:int, :int, :float, :float, Color.by_value], :void],
|
2551
2551
|
|
2552
|
+
# @!method DrawEllipseV(center, radiusH, radiusV, color)
|
2553
|
+
# DrawEllipseV : Draw ellipse (Vector version)
|
2554
|
+
# @param center [Vector2]
|
2555
|
+
# @param radiusH [float]
|
2556
|
+
# @param radiusV [float]
|
2557
|
+
# @param color [Color]
|
2558
|
+
# @return [void]
|
2559
|
+
[:DrawEllipseV, :DrawEllipseV, [Vector2.by_value, :float, :float, Color.by_value], :void],
|
2560
|
+
|
2552
2561
|
# @!method DrawEllipseLines(centerX, centerY, radiusH, radiusV, color)
|
2553
2562
|
# DrawEllipseLines : Draw ellipse outline
|
2554
2563
|
# @param centerX [int]
|
@@ -2559,6 +2568,15 @@ module Raylib
|
|
2559
2568
|
# @return [void]
|
2560
2569
|
[:DrawEllipseLines, :DrawEllipseLines, [:int, :int, :float, :float, Color.by_value], :void],
|
2561
2570
|
|
2571
|
+
# @!method DrawEllipseLinesV(center, radiusH, radiusV, color)
|
2572
|
+
# DrawEllipseLinesV : Draw ellipse outline (Vector version)
|
2573
|
+
# @param center [Vector2]
|
2574
|
+
# @param radiusH [float]
|
2575
|
+
# @param radiusV [float]
|
2576
|
+
# @param color [Color]
|
2577
|
+
# @return [void]
|
2578
|
+
[:DrawEllipseLinesV, :DrawEllipseLinesV, [Vector2.by_value, :float, :float, Color.by_value], :void],
|
2579
|
+
|
2562
2580
|
# @!method DrawRing(center, innerRadius, outerRadius, startAngle, endAngle, segments, color)
|
2563
2581
|
# DrawRing : Draw ring
|
2564
2582
|
# @param center [Vector2]
|
@@ -2639,13 +2657,13 @@ module Raylib
|
|
2639
2657
|
# @return [void]
|
2640
2658
|
[:DrawRectangleGradientH, :DrawRectangleGradientH, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void],
|
2641
2659
|
|
2642
|
-
# @!method DrawRectangleGradientEx(rec, topLeft, bottomLeft,
|
2660
|
+
# @!method DrawRectangleGradientEx(rec, topLeft, bottomLeft, bottomRight, topRight)
|
2643
2661
|
# DrawRectangleGradientEx : Draw a gradient-filled rectangle with custom vertex colors
|
2644
2662
|
# @param rec [Rectangle]
|
2645
2663
|
# @param topLeft [Color]
|
2646
2664
|
# @param bottomLeft [Color]
|
2647
|
-
# @param topRight [Color]
|
2648
2665
|
# @param bottomRight [Color]
|
2666
|
+
# @param topRight [Color]
|
2649
2667
|
# @return [void]
|
2650
2668
|
[:DrawRectangleGradientEx, :DrawRectangleGradientEx, [Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
|
2651
2669
|
|
@@ -3585,7 +3603,7 @@ module Raylib
|
|
3585
3603
|
# @!method ImageDrawTriangleFan(dst, points, pointCount, color)
|
3586
3604
|
# ImageDrawTriangleFan : Draw a triangle fan defined by points within an image (first vertex is the center)
|
3587
3605
|
# @param dst [Image *]
|
3588
|
-
# @param points [Vector2 *]
|
3606
|
+
# @param points [const Vector2 *]
|
3589
3607
|
# @param pointCount [int]
|
3590
3608
|
# @param color [Color]
|
3591
3609
|
# @return [void]
|
@@ -3594,7 +3612,7 @@ module Raylib
|
|
3594
3612
|
# @!method ImageDrawTriangleStrip(dst, points, pointCount, color)
|
3595
3613
|
# ImageDrawTriangleStrip : Draw a triangle strip defined by points within an image
|
3596
3614
|
# @param dst [Image *]
|
3597
|
-
# @param points [Vector2 *]
|
3615
|
+
# @param points [const Vector2 *]
|
3598
3616
|
# @param pointCount [int]
|
3599
3617
|
# @param color [Color]
|
3600
3618
|
# @return [void]
|
data/lib/rlgl.rb
CHANGED
@@ -251,11 +251,11 @@ module Raylib
|
|
251
251
|
class RlVertexBuffer < FFI::Struct
|
252
252
|
layout(
|
253
253
|
:elementCount, :int, # Number of elements in the buffer (QUADS)
|
254
|
-
:vertices, :pointer,
|
255
|
-
:texcoords, :pointer,
|
256
|
-
:normals, :pointer,
|
257
|
-
:colors, :pointer,
|
258
|
-
:indices, :pointer,
|
254
|
+
:vertices, :pointer, # Vertex position (XYZ - 3 components per vertex) (shader-location = 0)
|
255
|
+
:texcoords, :pointer, # Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)
|
256
|
+
:normals, :pointer, # Vertex normal (XYZ - 3 components per vertex) (shader-location = 2)
|
257
|
+
:colors, :pointer, # Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)
|
258
|
+
:indices, :pointer, # Vertex indices (in case vertex data comes indexed) (6 indices per quad)
|
259
259
|
:vaoId, :uint, # OpenGL Vertex Array Object id
|
260
260
|
:vboId, [:uint, 5], # OpenGL Vertex Buffer Objects id (5 types of vertex data)
|
261
261
|
)
|
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-06-08 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: ffi
|