raylib-bindings 0.1.1 → 0.1.3
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 +12 -0
- data/README.md +1 -1
- data/lib/libraylib.dll +0 -0
- data/lib/libraylib.dylib +0 -0
- data/lib/physac.dll +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raygui.dylib +0 -0
- data/lib/raygui.rb +11 -2
- data/lib/raylib_main.rb +18 -15
- data/lib/rlgl.rb +33 -1
- 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: a24ae09d1d8e13d58febdd5d222b7c219291c49531939bddccdcd89079bb4943
|
|
4
|
+
data.tar.gz: 536927a5880fa2ed1a7007951fd505bbe81cb0263011c9ead49912e484938d2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b38f484780698c0ae0ceb9a9f79ae31d5eb86a883df27434f61e96b3e75b50e6d5c285e9e83196852c5b4ca9597a355b7bf1627c66a8d07ddbff3cd44b15328
|
|
7
|
+
data.tar.gz: 29fb98821c8a10b45ae37b81aadd1ccba54864ed962990e0ebd424dd6f0d100b06e32057de13775155c3be0607e81f34f620ea71174140bf74d99f8f87ba489b
|
data/ChangeLog
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
+
2022-12-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
2
|
+
|
|
3
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/2c9d116a5ce835328dc3267313f1b34b2e7ad8c9 ) / and raygui ( https://github.com/raysan5/raygui/commit/64179558e425f6e05054d2a70eb12530e0fec103 )
|
|
4
|
+
* [Windows] Updated DLLs with the latest raylib
|
|
5
|
+
* example/rlgl_compute_shader.rb: Fixed API usage
|
|
6
|
+
|
|
7
|
+
2022-10-23 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
8
|
+
|
|
9
|
+
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/483f10397ee37ba551e57bad563a846f2dc5bb5b ) / and raygui ( https://github.com/raysan5/raygui/commit/d981abebd8f36dea9a297b2158b529ad8bf76a69a )
|
|
10
|
+
* [Windows] Updated DLLs with the latest raylib
|
|
11
|
+
|
|
1
12
|
2022-10-16 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
2
13
|
|
|
3
14
|
* Pulled latest raylib ( https://github.com/raysan5/raylib/commit/c5e89241c515d12a739a0d0bacb6a05395bf2a95 ) / and raygui ( https://github.com/raysan5/raygui/commit/98df231227d87dbf5954520169af29e610cd6a87 )
|
|
4
15
|
* example/models_loading_m3d.rb: Added
|
|
5
16
|
* example/models_loading_gltf.rb: Fixed model paths
|
|
17
|
+
* [Windows] Updated DLLs with the latest raylib
|
|
6
18
|
|
|
7
19
|
2022-08-28 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
8
20
|
|
data/README.md
CHANGED
data/lib/libraylib.dll
CHANGED
|
Binary file
|
data/lib/libraylib.dylib
CHANGED
|
Binary file
|
data/lib/physac.dll
CHANGED
|
Binary file
|
data/lib/raygui.dll
CHANGED
|
Binary file
|
data/lib/raygui.dylib
CHANGED
|
Binary file
|
data/lib/raygui.rb
CHANGED
|
@@ -304,8 +304,8 @@ module Raylib
|
|
|
304
304
|
ICON_BURGER_MENU = 214
|
|
305
305
|
ICON_CASE_SENSITIVE = 215
|
|
306
306
|
ICON_REG_EXP = 216
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
ICON_FOLDER = 217
|
|
308
|
+
ICON_FILE = 218
|
|
309
309
|
ICON_219 = 219
|
|
310
310
|
ICON_220 = 220
|
|
311
311
|
ICON_221 = 221
|
|
@@ -425,6 +425,9 @@ module Raylib
|
|
|
425
425
|
:GuiColorBarHue,
|
|
426
426
|
:GuiLoadStyle,
|
|
427
427
|
:GuiLoadStyleDefault,
|
|
428
|
+
:GuiEnableTooltip,
|
|
429
|
+
:GuiDisableTooltip,
|
|
430
|
+
:GuiSetTooltip,
|
|
428
431
|
:GuiIconText,
|
|
429
432
|
:GuiGetIcons,
|
|
430
433
|
:GuiLoadIcons,
|
|
@@ -477,6 +480,9 @@ module Raylib
|
|
|
477
480
|
:GuiColorBarHue => [Rectangle.by_value, :pointer, :float],
|
|
478
481
|
:GuiLoadStyle => [:pointer],
|
|
479
482
|
:GuiLoadStyleDefault => [],
|
|
483
|
+
:GuiEnableTooltip => [],
|
|
484
|
+
:GuiDisableTooltip => [],
|
|
485
|
+
:GuiSetTooltip => [:pointer],
|
|
480
486
|
:GuiIconText => [:int, :pointer],
|
|
481
487
|
:GuiGetIcons => [],
|
|
482
488
|
:GuiLoadIcons => [:pointer, :bool],
|
|
@@ -529,6 +535,9 @@ module Raylib
|
|
|
529
535
|
:GuiColorBarHue => :float,
|
|
530
536
|
:GuiLoadStyle => :void,
|
|
531
537
|
:GuiLoadStyleDefault => :void,
|
|
538
|
+
:GuiEnableTooltip => :void,
|
|
539
|
+
:GuiDisableTooltip => :void,
|
|
540
|
+
:GuiSetTooltip => :void,
|
|
532
541
|
:GuiIconText => :pointer,
|
|
533
542
|
:GuiGetIcons => :pointer,
|
|
534
543
|
:GuiLoadIcons => :pointer,
|
data/lib/raylib_main.rb
CHANGED
|
@@ -941,6 +941,7 @@ module Raylib
|
|
|
941
941
|
:ImageAlphaClear,
|
|
942
942
|
:ImageAlphaMask,
|
|
943
943
|
:ImageAlphaPremultiply,
|
|
944
|
+
:ImageBlurGaussian,
|
|
944
945
|
:ImageResize,
|
|
945
946
|
:ImageResizeNN,
|
|
946
947
|
:ImageResizeCanvas,
|
|
@@ -993,17 +994,17 @@ module Raylib
|
|
|
993
994
|
:DrawTextureV,
|
|
994
995
|
:DrawTextureEx,
|
|
995
996
|
:DrawTextureRec,
|
|
996
|
-
:DrawTextureQuad,
|
|
997
|
-
:DrawTextureTiled,
|
|
998
997
|
:DrawTexturePro,
|
|
999
998
|
:DrawTextureNPatch,
|
|
1000
|
-
:DrawTexturePoly,
|
|
1001
999
|
:Fade,
|
|
1002
1000
|
:ColorToInt,
|
|
1003
1001
|
:ColorNormalize,
|
|
1004
1002
|
:ColorFromNormalized,
|
|
1005
1003
|
:ColorToHSV,
|
|
1006
1004
|
:ColorFromHSV,
|
|
1005
|
+
:ColorTint,
|
|
1006
|
+
:ColorBrightness,
|
|
1007
|
+
:ColorContrast,
|
|
1007
1008
|
:ColorAlpha,
|
|
1008
1009
|
:ColorAlphaBlend,
|
|
1009
1010
|
:GetColor,
|
|
@@ -1064,8 +1065,6 @@ module Raylib
|
|
|
1064
1065
|
:DrawCubeV,
|
|
1065
1066
|
:DrawCubeWires,
|
|
1066
1067
|
:DrawCubeWiresV,
|
|
1067
|
-
:DrawCubeTexture,
|
|
1068
|
-
:DrawCubeTextureRec,
|
|
1069
1068
|
:DrawSphere,
|
|
1070
1069
|
:DrawSphereEx,
|
|
1071
1070
|
:DrawSphereWires,
|
|
@@ -1073,6 +1072,8 @@ module Raylib
|
|
|
1073
1072
|
:DrawCylinderEx,
|
|
1074
1073
|
:DrawCylinderWires,
|
|
1075
1074
|
:DrawCylinderWiresEx,
|
|
1075
|
+
:DrawCapsule,
|
|
1076
|
+
:DrawCapsuleWires,
|
|
1076
1077
|
:DrawPlane,
|
|
1077
1078
|
:DrawRay,
|
|
1078
1079
|
:DrawGrid,
|
|
@@ -1453,6 +1454,7 @@ module Raylib
|
|
|
1453
1454
|
:ImageAlphaClear => [:pointer, Color.by_value, :float],
|
|
1454
1455
|
:ImageAlphaMask => [:pointer, Image.by_value],
|
|
1455
1456
|
:ImageAlphaPremultiply => [:pointer],
|
|
1457
|
+
:ImageBlurGaussian => [:pointer, :int],
|
|
1456
1458
|
:ImageResize => [:pointer, :int, :int],
|
|
1457
1459
|
:ImageResizeNN => [:pointer, :int, :int],
|
|
1458
1460
|
:ImageResizeCanvas => [:pointer, :int, :int, :int, :int, Color.by_value],
|
|
@@ -1505,17 +1507,17 @@ module Raylib
|
|
|
1505
1507
|
:DrawTextureV => [Texture2D.by_value, Vector2.by_value, Color.by_value],
|
|
1506
1508
|
:DrawTextureEx => [Texture2D.by_value, Vector2.by_value, :float, :float, Color.by_value],
|
|
1507
1509
|
:DrawTextureRec => [Texture2D.by_value, Rectangle.by_value, Vector2.by_value, Color.by_value],
|
|
1508
|
-
:DrawTextureQuad => [Texture2D.by_value, Vector2.by_value, Vector2.by_value, Rectangle.by_value, Color.by_value],
|
|
1509
|
-
:DrawTextureTiled => [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, :float, Color.by_value],
|
|
1510
1510
|
:DrawTexturePro => [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
|
|
1511
1511
|
:DrawTextureNPatch => [Texture2D.by_value, NPatchInfo.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
|
|
1512
|
-
:DrawTexturePoly => [Texture2D.by_value, Vector2.by_value, :pointer, :pointer, :int, Color.by_value],
|
|
1513
1512
|
:Fade => [Color.by_value, :float],
|
|
1514
1513
|
:ColorToInt => [Color.by_value],
|
|
1515
1514
|
:ColorNormalize => [Color.by_value],
|
|
1516
1515
|
:ColorFromNormalized => [Vector4.by_value],
|
|
1517
1516
|
:ColorToHSV => [Color.by_value],
|
|
1518
1517
|
:ColorFromHSV => [:float, :float, :float],
|
|
1518
|
+
:ColorTint => [Color.by_value, Color.by_value],
|
|
1519
|
+
:ColorBrightness => [Color.by_value, :float],
|
|
1520
|
+
:ColorContrast => [Color.by_value, :float],
|
|
1519
1521
|
:ColorAlpha => [Color.by_value, :float],
|
|
1520
1522
|
:ColorAlphaBlend => [Color.by_value, Color.by_value, Color.by_value],
|
|
1521
1523
|
:GetColor => [:uint],
|
|
@@ -1576,8 +1578,6 @@ module Raylib
|
|
|
1576
1578
|
:DrawCubeV => [Vector3.by_value, Vector3.by_value, Color.by_value],
|
|
1577
1579
|
:DrawCubeWires => [Vector3.by_value, :float, :float, :float, Color.by_value],
|
|
1578
1580
|
:DrawCubeWiresV => [Vector3.by_value, Vector3.by_value, Color.by_value],
|
|
1579
|
-
:DrawCubeTexture => [Texture2D.by_value, Vector3.by_value, :float, :float, :float, Color.by_value],
|
|
1580
|
-
:DrawCubeTextureRec => [Texture2D.by_value, Rectangle.by_value, Vector3.by_value, :float, :float, :float, Color.by_value],
|
|
1581
1581
|
:DrawSphere => [Vector3.by_value, :float, Color.by_value],
|
|
1582
1582
|
:DrawSphereEx => [Vector3.by_value, :float, :int, :int, Color.by_value],
|
|
1583
1583
|
:DrawSphereWires => [Vector3.by_value, :float, :int, :int, Color.by_value],
|
|
@@ -1585,6 +1585,8 @@ module Raylib
|
|
|
1585
1585
|
:DrawCylinderEx => [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value],
|
|
1586
1586
|
:DrawCylinderWires => [Vector3.by_value, :float, :float, :float, :int, Color.by_value],
|
|
1587
1587
|
:DrawCylinderWiresEx => [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value],
|
|
1588
|
+
:DrawCapsule => [Vector3.by_value, Vector3.by_value, :float, :int, :int, Color.by_value],
|
|
1589
|
+
:DrawCapsuleWires => [Vector3.by_value, Vector3.by_value, :float, :int, :int, Color.by_value],
|
|
1588
1590
|
:DrawPlane => [Vector3.by_value, Vector2.by_value, Color.by_value],
|
|
1589
1591
|
:DrawRay => [Ray.by_value, Color.by_value],
|
|
1590
1592
|
:DrawGrid => [:int, :float],
|
|
@@ -1965,6 +1967,7 @@ module Raylib
|
|
|
1965
1967
|
:ImageAlphaClear => :void,
|
|
1966
1968
|
:ImageAlphaMask => :void,
|
|
1967
1969
|
:ImageAlphaPremultiply => :void,
|
|
1970
|
+
:ImageBlurGaussian => :void,
|
|
1968
1971
|
:ImageResize => :void,
|
|
1969
1972
|
:ImageResizeNN => :void,
|
|
1970
1973
|
:ImageResizeCanvas => :void,
|
|
@@ -2017,17 +2020,17 @@ module Raylib
|
|
|
2017
2020
|
:DrawTextureV => :void,
|
|
2018
2021
|
:DrawTextureEx => :void,
|
|
2019
2022
|
:DrawTextureRec => :void,
|
|
2020
|
-
:DrawTextureQuad => :void,
|
|
2021
|
-
:DrawTextureTiled => :void,
|
|
2022
2023
|
:DrawTexturePro => :void,
|
|
2023
2024
|
:DrawTextureNPatch => :void,
|
|
2024
|
-
:DrawTexturePoly => :void,
|
|
2025
2025
|
:Fade => Color.by_value,
|
|
2026
2026
|
:ColorToInt => :int,
|
|
2027
2027
|
:ColorNormalize => Vector4.by_value,
|
|
2028
2028
|
:ColorFromNormalized => Color.by_value,
|
|
2029
2029
|
:ColorToHSV => Vector3.by_value,
|
|
2030
2030
|
:ColorFromHSV => Color.by_value,
|
|
2031
|
+
:ColorTint => Color.by_value,
|
|
2032
|
+
:ColorBrightness => Color.by_value,
|
|
2033
|
+
:ColorContrast => Color.by_value,
|
|
2031
2034
|
:ColorAlpha => Color.by_value,
|
|
2032
2035
|
:ColorAlphaBlend => Color.by_value,
|
|
2033
2036
|
:GetColor => Color.by_value,
|
|
@@ -2088,8 +2091,6 @@ module Raylib
|
|
|
2088
2091
|
:DrawCubeV => :void,
|
|
2089
2092
|
:DrawCubeWires => :void,
|
|
2090
2093
|
:DrawCubeWiresV => :void,
|
|
2091
|
-
:DrawCubeTexture => :void,
|
|
2092
|
-
:DrawCubeTextureRec => :void,
|
|
2093
2094
|
:DrawSphere => :void,
|
|
2094
2095
|
:DrawSphereEx => :void,
|
|
2095
2096
|
:DrawSphereWires => :void,
|
|
@@ -2097,6 +2098,8 @@ module Raylib
|
|
|
2097
2098
|
:DrawCylinderEx => :void,
|
|
2098
2099
|
:DrawCylinderWires => :void,
|
|
2099
2100
|
:DrawCylinderWiresEx => :void,
|
|
2101
|
+
:DrawCapsule => :void,
|
|
2102
|
+
:DrawCapsuleWires => :void,
|
|
2100
2103
|
:DrawPlane => :void,
|
|
2101
2104
|
:DrawRay => :void,
|
|
2102
2105
|
:DrawGrid => :void,
|
data/lib/rlgl.rb
CHANGED
|
@@ -55,6 +55,32 @@ module Raylib
|
|
|
55
55
|
RL_FRAGMENT_SHADER = 0x8B30
|
|
56
56
|
RL_VERTEX_SHADER = 0x8B31
|
|
57
57
|
RL_COMPUTE_SHADER = 0x91B9
|
|
58
|
+
RL_ZERO = 0
|
|
59
|
+
RL_ONE = 1
|
|
60
|
+
RL_SRC_COLOR = 0x0300
|
|
61
|
+
RL_ONE_MINUS_SRC_COLOR = 0x0301
|
|
62
|
+
RL_SRC_ALPHA = 0x0302
|
|
63
|
+
RL_ONE_MINUS_SRC_ALPHA = 0x0303
|
|
64
|
+
RL_DST_ALPHA = 0x0304
|
|
65
|
+
RL_ONE_MINUS_DST_ALPHA = 0x0305
|
|
66
|
+
RL_DST_COLOR = 0x0306
|
|
67
|
+
RL_ONE_MINUS_DST_COLOR = 0x0307
|
|
68
|
+
RL_SRC_ALPHA_SATURATE = 0x0308
|
|
69
|
+
RL_CONSTANT_COLOR = 0x8001
|
|
70
|
+
RL_ONE_MINUS_CONSTANT_COLOR = 0x8002
|
|
71
|
+
RL_CONSTANT_ALPHA = 0x8003
|
|
72
|
+
RL_ONE_MINUS_CONSTANT_ALPHA = 0x8004
|
|
73
|
+
RL_FUNC_ADD = 0x8006
|
|
74
|
+
RL_FUNC_SUBTRACT = 0x800A
|
|
75
|
+
RL_FUNC_REVERSE_SUBTRACT = 0x800B
|
|
76
|
+
RL_BLEND_EQUATION = 0x8009
|
|
77
|
+
RL_BLEND_EQUATION_RGB = 0x8009
|
|
78
|
+
RL_BLEND_EQUATION_ALPHA = 0x883D
|
|
79
|
+
RL_BLEND_DST_RGB = 0x80C8
|
|
80
|
+
RL_BLEND_SRC_RGB = 0x80C9
|
|
81
|
+
RL_BLEND_DST_ALPHA = 0x80CA
|
|
82
|
+
RL_BLEND_SRC_ALPHA = 0x80CB
|
|
83
|
+
RL_BLEND_COLOR = 0x8005
|
|
58
84
|
|
|
59
85
|
# Enum
|
|
60
86
|
|
|
@@ -163,6 +189,8 @@ module Raylib
|
|
|
163
189
|
RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z = 5
|
|
164
190
|
RL_ATTACHMENT_TEXTURE2D = 100
|
|
165
191
|
RL_ATTACHMENT_RENDERBUFFER = 200
|
|
192
|
+
RL_CULL_FACE_FRONT = 0
|
|
193
|
+
RL_CULL_FACE_BACK = 1
|
|
166
194
|
|
|
167
195
|
# Typedef
|
|
168
196
|
|
|
@@ -176,6 +204,7 @@ module Raylib
|
|
|
176
204
|
typedef :int, :rlShaderAttributeDataType
|
|
177
205
|
typedef :int, :rlFramebufferAttachType
|
|
178
206
|
typedef :int, :rlFramebufferAttachTextureType
|
|
207
|
+
typedef :int, :rlCullMode
|
|
179
208
|
|
|
180
209
|
# Struct
|
|
181
210
|
|
|
@@ -264,6 +293,7 @@ module Raylib
|
|
|
264
293
|
:rlDisableDepthMask,
|
|
265
294
|
:rlEnableBackfaceCulling,
|
|
266
295
|
:rlDisableBackfaceCulling,
|
|
296
|
+
:rlSetCullFace,
|
|
267
297
|
:rlEnableScissorTest,
|
|
268
298
|
:rlDisableScissorTest,
|
|
269
299
|
:rlScissor,
|
|
@@ -409,6 +439,7 @@ module Raylib
|
|
|
409
439
|
:rlDisableDepthMask => [],
|
|
410
440
|
:rlEnableBackfaceCulling => [],
|
|
411
441
|
:rlDisableBackfaceCulling => [],
|
|
442
|
+
:rlSetCullFace => [:int],
|
|
412
443
|
:rlEnableScissorTest => [],
|
|
413
444
|
:rlDisableScissorTest => [],
|
|
414
445
|
:rlScissor => [:int, :int, :int, :int],
|
|
@@ -492,7 +523,7 @@ module Raylib
|
|
|
492
523
|
:rlReadShaderBuffer => [:uint, :pointer, :uint, :uint],
|
|
493
524
|
:rlCopyShaderBuffer => [:uint, :uint, :uint, :uint, :uint],
|
|
494
525
|
:rlGetShaderBufferSize => [:uint],
|
|
495
|
-
:rlBindImageTexture => [:uint, :uint, :
|
|
526
|
+
:rlBindImageTexture => [:uint, :uint, :int, :bool],
|
|
496
527
|
:rlGetMatrixModelview => [],
|
|
497
528
|
:rlGetMatrixProjection => [],
|
|
498
529
|
:rlGetMatrixTransform => [],
|
|
@@ -554,6 +585,7 @@ module Raylib
|
|
|
554
585
|
:rlDisableDepthMask => :void,
|
|
555
586
|
:rlEnableBackfaceCulling => :void,
|
|
556
587
|
:rlDisableBackfaceCulling => :void,
|
|
588
|
+
:rlSetCullFace => :void,
|
|
557
589
|
:rlEnableScissorTest => :void,
|
|
558
590
|
:rlDisableScissorTest => :void,
|
|
559
591
|
:rlScissor => :void,
|
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.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- vaiorabbit
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-10
|
|
11
|
+
date: 2022-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|