raylib-bindings 0.1.2 → 0.1.3

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: c5c8bede73961fe6aaedfeb18db2eea3c34d8c3728eae57fdabf762fe300aafe
4
- data.tar.gz: a818ec378250b6791e715b7aeee9f9bb1c65a55417d1ef5ce68e61228c05f7b5
3
+ metadata.gz: a24ae09d1d8e13d58febdd5d222b7c219291c49531939bddccdcd89079bb4943
4
+ data.tar.gz: 536927a5880fa2ed1a7007951fd505bbe81cb0263011c9ead49912e484938d2d
5
5
  SHA512:
6
- metadata.gz: bd713d0c28312cdaf0ebafb49827361ebffe3dc5d41babebd28aba273f6cb7a514a202f2c132c30a16278ee3eea1d0393a8328772e86f9c2f9397390c9ba616d
7
- data.tar.gz: 1feb2faf51280803b259d349b939413ff904afb17f7105acec652645bb0e865b7141351d08bd73c63705175332cfe0c35f5121299e16313c410c7024bcce6280
6
+ metadata.gz: 3b38f484780698c0ae0ceb9a9f79ae31d5eb86a883df27434f61e96b3e75b50e6d5c285e9e83196852c5b4ca9597a355b7bf1627c66a8d07ddbff3cd44b15328
7
+ data.tar.gz: 29fb98821c8a10b45ae37b81aadd1ccba54864ed962990e0ebd424dd6f0d100b06e32057de13775155c3be0607e81f34f620ea71174140bf74d99f8f87ba489b
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
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
+
1
7
  2022-10-23 vaiorabbit <http://twitter.com/vaiorabbit>
2
8
 
3
9
  * Pulled latest raylib ( https://github.com/raysan5/raylib/commit/483f10397ee37ba551e57bad563a846f2dc5bb5b ) / and raygui ( https://github.com/raysan5/raygui/commit/d981abebd8f36dea9a297b2158b529ad8bf76a69a )
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  # Yet another raylib wrapper for Ruby #
4
4
 
5
5
  * Created : 2021-10-17
6
- * Last modified : 2022-10-23
6
+ * Last modified : 2022-12-10
7
7
 
8
8
  Provides Ruby bindings for raylib-related libraries including:
9
9
 
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
- ICON_217 = 217
308
- ICON_218 = 218
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,
@@ -1455,6 +1454,7 @@ module Raylib
1455
1454
  :ImageAlphaClear => [:pointer, Color.by_value, :float],
1456
1455
  :ImageAlphaMask => [:pointer, Image.by_value],
1457
1456
  :ImageAlphaPremultiply => [:pointer],
1457
+ :ImageBlurGaussian => [:pointer, :int],
1458
1458
  :ImageResize => [:pointer, :int, :int],
1459
1459
  :ImageResizeNN => [:pointer, :int, :int],
1460
1460
  :ImageResizeCanvas => [:pointer, :int, :int, :int, :int, Color.by_value],
@@ -1507,17 +1507,17 @@ module Raylib
1507
1507
  :DrawTextureV => [Texture2D.by_value, Vector2.by_value, Color.by_value],
1508
1508
  :DrawTextureEx => [Texture2D.by_value, Vector2.by_value, :float, :float, Color.by_value],
1509
1509
  :DrawTextureRec => [Texture2D.by_value, Rectangle.by_value, Vector2.by_value, Color.by_value],
1510
- :DrawTextureQuad => [Texture2D.by_value, Vector2.by_value, Vector2.by_value, Rectangle.by_value, Color.by_value],
1511
- :DrawTextureTiled => [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, :float, Color.by_value],
1512
1510
  :DrawTexturePro => [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
1513
1511
  :DrawTextureNPatch => [Texture2D.by_value, NPatchInfo.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value],
1514
- :DrawTexturePoly => [Texture2D.by_value, Vector2.by_value, :pointer, :pointer, :int, Color.by_value],
1515
1512
  :Fade => [Color.by_value, :float],
1516
1513
  :ColorToInt => [Color.by_value],
1517
1514
  :ColorNormalize => [Color.by_value],
1518
1515
  :ColorFromNormalized => [Vector4.by_value],
1519
1516
  :ColorToHSV => [Color.by_value],
1520
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],
1521
1521
  :ColorAlpha => [Color.by_value, :float],
1522
1522
  :ColorAlphaBlend => [Color.by_value, Color.by_value, Color.by_value],
1523
1523
  :GetColor => [:uint],
@@ -1578,8 +1578,6 @@ module Raylib
1578
1578
  :DrawCubeV => [Vector3.by_value, Vector3.by_value, Color.by_value],
1579
1579
  :DrawCubeWires => [Vector3.by_value, :float, :float, :float, Color.by_value],
1580
1580
  :DrawCubeWiresV => [Vector3.by_value, Vector3.by_value, Color.by_value],
1581
- :DrawCubeTexture => [Texture2D.by_value, Vector3.by_value, :float, :float, :float, Color.by_value],
1582
- :DrawCubeTextureRec => [Texture2D.by_value, Rectangle.by_value, Vector3.by_value, :float, :float, :float, Color.by_value],
1583
1581
  :DrawSphere => [Vector3.by_value, :float, Color.by_value],
1584
1582
  :DrawSphereEx => [Vector3.by_value, :float, :int, :int, Color.by_value],
1585
1583
  :DrawSphereWires => [Vector3.by_value, :float, :int, :int, Color.by_value],
@@ -1969,6 +1967,7 @@ module Raylib
1969
1967
  :ImageAlphaClear => :void,
1970
1968
  :ImageAlphaMask => :void,
1971
1969
  :ImageAlphaPremultiply => :void,
1970
+ :ImageBlurGaussian => :void,
1972
1971
  :ImageResize => :void,
1973
1972
  :ImageResizeNN => :void,
1974
1973
  :ImageResizeCanvas => :void,
@@ -2021,17 +2020,17 @@ module Raylib
2021
2020
  :DrawTextureV => :void,
2022
2021
  :DrawTextureEx => :void,
2023
2022
  :DrawTextureRec => :void,
2024
- :DrawTextureQuad => :void,
2025
- :DrawTextureTiled => :void,
2026
2023
  :DrawTexturePro => :void,
2027
2024
  :DrawTextureNPatch => :void,
2028
- :DrawTexturePoly => :void,
2029
2025
  :Fade => Color.by_value,
2030
2026
  :ColorToInt => :int,
2031
2027
  :ColorNormalize => Vector4.by_value,
2032
2028
  :ColorFromNormalized => Color.by_value,
2033
2029
  :ColorToHSV => Vector3.by_value,
2034
2030
  :ColorFromHSV => Color.by_value,
2031
+ :ColorTint => Color.by_value,
2032
+ :ColorBrightness => Color.by_value,
2033
+ :ColorContrast => Color.by_value,
2035
2034
  :ColorAlpha => Color.by_value,
2036
2035
  :ColorAlphaBlend => Color.by_value,
2037
2036
  :GetColor => Color.by_value,
@@ -2092,8 +2091,6 @@ module Raylib
2092
2091
  :DrawCubeV => :void,
2093
2092
  :DrawCubeWires => :void,
2094
2093
  :DrawCubeWiresV => :void,
2095
- :DrawCubeTexture => :void,
2096
- :DrawCubeTextureRec => :void,
2097
2094
  :DrawSphere => :void,
2098
2095
  :DrawSphereEx => :void,
2099
2096
  :DrawSphereWires => :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, :uint, :int],
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.2
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-23 00:00:00.000000000 Z
11
+ date: 2022-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi