raylib-bindings 0.7.5-x86_64-linux → 0.7.7-x86_64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6cff823c99ce2c66a15285fb4cd20568532d5781c2811994bcb848c37ed2b48d
4
- data.tar.gz: 648189070669ecb376be78be82ac95a45d12dacff07616205f216d96521dec0a
3
+ metadata.gz: bee3aa3c51581c58872214f084285bb5156a42c1f9213ca90e897d1185b724af
4
+ data.tar.gz: 2a9d9f26dc70454f493c53d5fa82492b268294f7d6c97c8d0221aee8f744d4cc
5
5
  SHA512:
6
- metadata.gz: 43cdb7fe02b8adac9016ad52aa86457089539669ad546d5dc52853dafcf5daff796bfafdd66e0113cd609b9d31f75e5636127427f2370744a5f6b835daac5eb0
7
- data.tar.gz: 81ec131fceb717c723cd54a5371f299d90561b428391467937d121dfaa2a129502aa8efc86ffaf66a5278b5f45ad10b31974d1f1d14775a8ffea587dc485305c
6
+ metadata.gz: aec8ea31a273cbfd58a2673651ff9543526265f369934afedbd67ec58810fd453ef8027453e696e6c81240b9475bf90aeb0da3612c86d3de9ce882523a5dd0b5
7
+ data.tar.gz: 5bec7267a292f10f1d33e1d7c943faab9c5b9f7b4a041a9936bf031ff949ab9a23a87b2f0ebc652cb72b07c511e958b5fc0d8a66b9062420be55a5978239c6bd
data/ChangeLog CHANGED
@@ -1,3 +1,19 @@
1
+ 2024-09-16 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/186787e31179eec8280a429fae50b65ef58368d3 ) and raygui ( https://github.com/raysan5/raygui/commit/b5a81fb76eec3521f4cbd6c02ace0dcc7b1cc810 )
4
+
5
+ 2024-09-07 vaiorabbit <http://twitter.com/vaiorabbit>
6
+
7
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/10b01ba7c2139b9203045bb56aa8403ca810cc6b ) and raygui ( https://github.com/raysan5/raygui/commit/6aae83894ac20b7ac8bf511f43d368f0ad409534 )
8
+
9
+ 2024-08-12 vaiorabbit <http://twitter.com/vaiorabbit>
10
+
11
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/418b8780533e6d7822aefcd1a1dd3cb6cca95fa5 )
12
+
13
+ 2024-07-28 vaiorabbit <http://twitter.com/vaiorabbit>
14
+
15
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/e5a1fc4f20f9daca17a2f76ffe217b1128625d0b ) and raygui ( https://github.com/raysan5/raygui/commit/33f16596091e8147d01f948e7125db02cfae5faa )
16
+
1
17
  2024-07-14 vaiorabbit <http://twitter.com/vaiorabbit>
2
18
 
3
19
  * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/5ede47618bd9f9a440af648da1b4817e51644994 ) and raygui ( https://github.com/raysan5/raygui/commit/3fb9d77a67243497e10ae0448374a52a2a65e26f )
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 : 2024-07-14
6
+ * Last modified : 2024-09-16
7
7
 
8
8
  Provides Ruby bindings for raylib-related libraries including:
9
9
 
10
- * [raylib](https://github.com/raysan5/raylib) version [5.1-dev]( https://github.com/raysan5/raylib/commit/5ede47618bd9f9a440af648da1b4817e51644994 )
10
+ * [raylib](https://github.com/raysan5/raylib) version [5.5-dev]( https://github.com/raysan5/raylib/commit/186787e31179eec8280a429fae50b65ef58368d3 )
11
11
  * raylib
12
12
  * raymath
13
13
  * rlgl
14
- * [raygui](https://github.com/raysan5/raygui) version [4.1-dev]( https://github.com/raysan5/raygui/commit/3fb9d77a67243497e10ae0448374a52a2a65e26f )
14
+ * [raygui](https://github.com/raysan5/raygui) version [4.5-dev]( https://github.com/raysan5/raygui/commit/b5a81fb76eec3521f4cbd6c02ace0dcc7b1cc810 )
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">
data/lib/config.rb CHANGED
@@ -53,6 +53,7 @@ module Raylib
53
53
  RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR = 3
54
54
  RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT = 4
55
55
  RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2 = 5
56
+ RL_DEFAULT_SHADER_ATTRIB_LOCATION_INDICES = 6
56
57
  RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION = "vertexPosition" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION
57
58
  RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD = "vertexTexCoord" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD
58
59
  RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL = "vertexNormal" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL
Binary file
data/lib/raygui.x86_64.so CHANGED
Binary file
data/lib/raygui_main.rb CHANGED
@@ -12,9 +12,9 @@ module Raylib
12
12
  # Define/Macro
13
13
 
14
14
  RAYGUI_VERSION_MAJOR = 4
15
- RAYGUI_VERSION_MINOR = 1
15
+ RAYGUI_VERSION_MINOR = 5
16
16
  RAYGUI_VERSION_PATCH = 0
17
- RAYGUI_VERSION = "4.1-dev"
17
+ RAYGUI_VERSION = "4.5-dev"
18
18
  SCROLLBAR_LEFT_SIDE = 0
19
19
  SCROLLBAR_RIGHT_SIDE = 1
20
20
 
@@ -128,6 +128,7 @@ module Raylib
128
128
  ARROW_PADDING = 16 # DropdownBox arrow separation from border and items
129
129
  DROPDOWN_ITEMS_SPACING = 17 # DropdownBox items separation
130
130
  DROPDOWN_ARROW_HIDDEN = 18 # DropdownBox arrow hidden
131
+ DROPDOWN_ROLL_UP = 19 # DropdownBox roll up flag (default rolls down)
131
132
 
132
133
  # enum GuiTextBoxProperty
133
134
  # TextBox/TextBoxMulti/ValueBox/Spinner
@@ -379,12 +380,12 @@ module Raylib
379
380
  ICON_WARNING = 220
380
381
  ICON_HELP_BOX = 221
381
382
  ICON_INFO_BOX = 222
382
- ICON_223 = 223
383
- ICON_224 = 224
384
- ICON_225 = 225
385
- ICON_226 = 226
386
- ICON_227 = 227
387
- ICON_228 = 228
383
+ ICON_PRIORITY = 223
384
+ ICON_LAYERS_ISO = 224
385
+ ICON_LAYERS2 = 225
386
+ ICON_MLAYERS = 226
387
+ ICON_MAPS = 227
388
+ ICON_HOT = 228
388
389
  ICON_229 = 229
389
390
  ICON_230 = 230
390
391
  ICON_231 = 231
data/lib/raylib_main.rb CHANGED
@@ -14,7 +14,7 @@ module Raylib
14
14
  RAYLIB_VERSION_MAJOR = 5
15
15
  RAYLIB_VERSION_MINOR = 5
16
16
  RAYLIB_VERSION_PATCH = 0
17
- RAYLIB_VERSION = "5.5"
17
+ RAYLIB_VERSION = "5.5-dev"
18
18
 
19
19
  # Enum
20
20
 
@@ -1198,12 +1198,12 @@ module Raylib
1198
1198
  [:ClearWindowState, :ClearWindowState, [:uint], :void],
1199
1199
 
1200
1200
  # @!method ToggleFullscreen()
1201
- # ToggleFullscreen : Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)
1201
+ # ToggleFullscreen : Toggle window state: fullscreen/windowed [resizes monitor to match window resolution] (only PLATFORM_DESKTOP)
1202
1202
  # @return [void]
1203
1203
  [:ToggleFullscreen, :ToggleFullscreen, [], :void],
1204
1204
 
1205
1205
  # @!method ToggleBorderlessWindowed()
1206
- # ToggleBorderlessWindowed : Toggle window state: borderless windowed (only PLATFORM_DESKTOP)
1206
+ # ToggleBorderlessWindowed : Toggle window state: borderless windowed [resizes window to match monitor resolution] (only PLATFORM_DESKTOP)
1207
1207
  # @return [void]
1208
1208
  [:ToggleBorderlessWindowed, :ToggleBorderlessWindowed, [], :void],
1209
1209
 
@@ -1948,7 +1948,7 @@ module Raylib
1948
1948
  [:LoadDirectoryFiles, :LoadDirectoryFiles, [:pointer], FilePathList.by_value],
1949
1949
 
1950
1950
  # @!method LoadDirectoryFilesEx(basePath, filter, scanSubdirs)
1951
- # LoadDirectoryFilesEx : Load directory filepaths with extension filtering and recursive directory scan
1951
+ # LoadDirectoryFilesEx : Load directory filepaths with extension filtering and recursive directory scan. Use "/DIR" in the filter string to include directories in the result
1952
1952
  # @param basePath [const char *]
1953
1953
  # @param filter [const char *]
1954
1954
  # @param scanSubdirs [bool]
@@ -2452,13 +2452,13 @@ module Raylib
2452
2452
  # @return [void]
2453
2453
  [:DrawCircleSectorLines, :DrawCircleSectorLines, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
2454
2454
 
2455
- # @!method DrawCircleGradient(centerX, centerY, radius, color1, color2)
2455
+ # @!method DrawCircleGradient(centerX, centerY, radius, inner, outer)
2456
2456
  # DrawCircleGradient : Draw a gradient-filled circle
2457
2457
  # @param centerX [int]
2458
2458
  # @param centerY [int]
2459
2459
  # @param radius [float]
2460
- # @param color1 [Color]
2461
- # @param color2 [Color]
2460
+ # @param inner [Color]
2461
+ # @param outer [Color]
2462
2462
  # @return [void]
2463
2463
  [:DrawCircleGradient, :DrawCircleGradient, [:int, :int, :float, Color.by_value, Color.by_value], :void],
2464
2464
 
@@ -2565,35 +2565,35 @@ module Raylib
2565
2565
  # @return [void]
2566
2566
  [:DrawRectanglePro, :DrawRectanglePro, [Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],
2567
2567
 
2568
- # @!method DrawRectangleGradientV(posX, posY, width, height, color1, color2)
2568
+ # @!method DrawRectangleGradientV(posX, posY, width, height, top, bottom)
2569
2569
  # DrawRectangleGradientV : Draw a vertical-gradient-filled rectangle
2570
2570
  # @param posX [int]
2571
2571
  # @param posY [int]
2572
2572
  # @param width [int]
2573
2573
  # @param height [int]
2574
- # @param color1 [Color]
2575
- # @param color2 [Color]
2574
+ # @param top [Color]
2575
+ # @param bottom [Color]
2576
2576
  # @return [void]
2577
2577
  [:DrawRectangleGradientV, :DrawRectangleGradientV, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void],
2578
2578
 
2579
- # @!method DrawRectangleGradientH(posX, posY, width, height, color1, color2)
2579
+ # @!method DrawRectangleGradientH(posX, posY, width, height, left, right)
2580
2580
  # DrawRectangleGradientH : Draw a horizontal-gradient-filled rectangle
2581
2581
  # @param posX [int]
2582
2582
  # @param posY [int]
2583
2583
  # @param width [int]
2584
2584
  # @param height [int]
2585
- # @param color1 [Color]
2586
- # @param color2 [Color]
2585
+ # @param left [Color]
2586
+ # @param right [Color]
2587
2587
  # @return [void]
2588
2588
  [:DrawRectangleGradientH, :DrawRectangleGradientH, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void],
2589
2589
 
2590
- # @!method DrawRectangleGradientEx(rec, col1, col2, col3, col4)
2590
+ # @!method DrawRectangleGradientEx(rec, topLeft, bottomLeft, topRight, bottomRight)
2591
2591
  # DrawRectangleGradientEx : Draw a gradient-filled rectangle with custom vertex colors
2592
2592
  # @param rec [Rectangle]
2593
- # @param col1 [Color]
2594
- # @param col2 [Color]
2595
- # @param col3 [Color]
2596
- # @param col4 [Color]
2593
+ # @param topLeft [Color]
2594
+ # @param bottomLeft [Color]
2595
+ # @param topRight [Color]
2596
+ # @param bottomRight [Color]
2597
2597
  # @return [void]
2598
2598
  [:DrawRectangleGradientEx, :DrawRectangleGradientEx, [Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
2599
2599
 
@@ -3814,6 +3814,14 @@ module Raylib
3814
3814
  # @return [Color]
3815
3815
  [:ColorAlphaBlend, :ColorAlphaBlend, [Color.by_value, Color.by_value, Color.by_value], Color.by_value],
3816
3816
 
3817
+ # @!method ColorLerp(color1, color2, factor)
3818
+ # ColorLerp : Get color lerp interpolation between two colors, factor [0.0f..1.0f]
3819
+ # @param color1 [Color]
3820
+ # @param color2 [Color]
3821
+ # @param factor [float]
3822
+ # @return [Color]
3823
+ [:ColorLerp, :ColorLerp, [Color.by_value, Color.by_value, :float], Color.by_value],
3824
+
3817
3825
  # @!method GetColor(hexValue)
3818
3826
  # GetColor : Get Color structure from hexadecimal value
3819
3827
  # @param hexValue [unsigned int]
@@ -3855,7 +3863,7 @@ module Raylib
3855
3863
  [:LoadFont, :LoadFont, [:pointer], Font.by_value],
3856
3864
 
3857
3865
  # @!method LoadFontEx(fileName, fontSize, codepoints, codepointCount)
3858
- # LoadFontEx : Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont
3866
+ # 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
3859
3867
  # @param fileName [const char *]
3860
3868
  # @param fontSize [int]
3861
3869
  # @param codepoints [int *]
@@ -4484,6 +4492,26 @@ module Raylib
4484
4492
  # @return [void]
4485
4493
  [:DrawModelWiresEx, :DrawModelWiresEx, [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value], :void],
4486
4494
 
4495
+ # @!method DrawModelPoints(model, position, scale, tint)
4496
+ # DrawModelPoints : Draw a model as points
4497
+ # @param model [Model]
4498
+ # @param position [Vector3]
4499
+ # @param scale [float]
4500
+ # @param tint [Color]
4501
+ # @return [void]
4502
+ [:DrawModelPoints, :DrawModelPoints, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void],
4503
+
4504
+ # @!method DrawModelPointsEx(model, position, rotationAxis, rotationAngle, scale, tint)
4505
+ # DrawModelPointsEx : Draw a model as points with extended parameters
4506
+ # @param model [Model]
4507
+ # @param position [Vector3]
4508
+ # @param rotationAxis [Vector3]
4509
+ # @param rotationAngle [float]
4510
+ # @param scale [Vector3]
4511
+ # @param tint [Color]
4512
+ # @return [void]
4513
+ [:DrawModelPointsEx, :DrawModelPointsEx, [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value], :void],
4514
+
4487
4515
  # @!method DrawBoundingBox(box, color)
4488
4516
  # DrawBoundingBox : Draw bounding box (wires)
4489
4517
  # @param box [BoundingBox]
data/lib/rlgl.rb CHANGED
@@ -180,15 +180,19 @@ module Raylib
180
180
 
181
181
  # enum rlShaderUniformDataType
182
182
  # Shader uniform data type
183
- RL_SHADER_UNIFORM_FLOAT = 0 # Shader uniform type: float
184
- RL_SHADER_UNIFORM_VEC2 = 1 # Shader uniform type: vec2 (2 float)
185
- RL_SHADER_UNIFORM_VEC3 = 2 # Shader uniform type: vec3 (3 float)
186
- RL_SHADER_UNIFORM_VEC4 = 3 # Shader uniform type: vec4 (4 float)
187
- RL_SHADER_UNIFORM_INT = 4 # Shader uniform type: int
188
- RL_SHADER_UNIFORM_IVEC2 = 5 # Shader uniform type: ivec2 (2 int)
189
- RL_SHADER_UNIFORM_IVEC3 = 6 # Shader uniform type: ivec3 (3 int)
190
- RL_SHADER_UNIFORM_IVEC4 = 7 # Shader uniform type: ivec4 (4 int)
191
- RL_SHADER_UNIFORM_SAMPLER2D = 8 # Shader uniform type: sampler2d
183
+ RL_SHADER_UNIFORM_FLOAT = 0 # Shader uniform type: float
184
+ RL_SHADER_UNIFORM_VEC2 = 1 # Shader uniform type: vec2 (2 float)
185
+ RL_SHADER_UNIFORM_VEC3 = 2 # Shader uniform type: vec3 (3 float)
186
+ RL_SHADER_UNIFORM_VEC4 = 3 # Shader uniform type: vec4 (4 float)
187
+ RL_SHADER_UNIFORM_INT = 4 # Shader uniform type: int
188
+ RL_SHADER_UNIFORM_IVEC2 = 5 # Shader uniform type: ivec2 (2 int)
189
+ RL_SHADER_UNIFORM_IVEC3 = 6 # Shader uniform type: ivec3 (3 int)
190
+ RL_SHADER_UNIFORM_IVEC4 = 7 # Shader uniform type: ivec4 (4 int)
191
+ RL_SHADER_UNIFORM_UINT = 8 # Shader uniform type: unsigned int
192
+ RL_SHADER_UNIFORM_UIVEC2 = 9 # Shader uniform type: uivec2 (2 unsigned int)
193
+ RL_SHADER_UNIFORM_UIVEC3 = 10 # Shader uniform type: uivec3 (3 unsigned int)
194
+ RL_SHADER_UNIFORM_UIVEC4 = 11 # Shader uniform type: uivec4 (4 unsigned int)
195
+ RL_SHADER_UNIFORM_SAMPLER2D = 12 # Shader uniform type: sampler2d
192
196
 
193
197
  # enum rlShaderAttributeDataType
194
198
  # Shader attribute data types
@@ -723,7 +727,7 @@ module Raylib
723
727
  [:rlEnablePointMode, :rlEnablePointMode, [], :void],
724
728
 
725
729
  # @!method rlDisableWireMode()
726
- # rlDisableWireMode : Disable wire mode ( and point ) maybe rename
730
+ # rlDisableWireMode : Disable wire (and point) mode
727
731
  # @return [void]
728
732
  [:rlDisableWireMode, :rlDisableWireMode, [], :void],
729
733
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raylib-bindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.7
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-14 00:00:00.000000000 Z
11
+ date: 2024-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.5.11
74
+ rubygems_version: 3.5.18
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Ruby bindings for raylib, raygui and Physac