raylib-bindings 0.5.4 → 0.5.6
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 +25 -0
- data/README.md +1 -1
- data/examples/template.rb +14 -20
- data/lib/config.rb +1 -1
- data/lib/libraylib.aarch64.so +0 -0
- data/lib/libraylib.dll +0 -0
- data/lib/libraylib.dylib +0 -0
- data/lib/libraylib.x86_64.so +0 -0
- data/lib/physac.aarch64.so +0 -0
- data/lib/physac.dll +0 -0
- data/lib/physac.x86_64.so +0 -0
- data/lib/raygui.aarch64.so +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raygui.dylib +0 -0
- data/lib/raygui.x86_64.so +0 -0
- data/lib/raygui_main.rb +60 -41
- data/lib/raylib_helper.rb +79 -14
- data/lib/raylib_main.rb +109 -45
- data/lib/raymath.rb +21 -7
- data/lib/rcamera.rb +2 -2
- data/lib/rlgl.rb +14 -11
- metadata +2 -3
- data/lib/raygui.rb +0 -854
data/lib/raylib_main.rb
CHANGED
|
@@ -35,6 +35,7 @@ module Raylib
|
|
|
35
35
|
FLAG_WINDOW_TRANSPARENT = 16 # Set to allow transparent framebuffer
|
|
36
36
|
FLAG_WINDOW_HIGHDPI = 8192 # Set to support HighDPI
|
|
37
37
|
FLAG_WINDOW_MOUSE_PASSTHROUGH = 16384 # Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED
|
|
38
|
+
FLAG_BORDERLESS_WINDOWED_MODE = 32768 # Set to run program in borderless windowed mode
|
|
38
39
|
FLAG_MSAA_4X_HINT = 32 # Set to try enabling MSAA 4X
|
|
39
40
|
FLAG_INTERLACED_HINT = 65536 # Set to try enabling interlaced video format (for V3D)
|
|
40
41
|
|
|
@@ -290,17 +291,20 @@ module Raylib
|
|
|
290
291
|
PIXELFORMAT_UNCOMPRESSED_R32 = 8 # 32 bpp (1 channel - float)
|
|
291
292
|
PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9 # 32*3 bpp (3 channels - float)
|
|
292
293
|
PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10 # 32*4 bpp (4 channels - float)
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
294
|
+
PIXELFORMAT_UNCOMPRESSED_R16 = 11 # 16 bpp (1 channel - half float)
|
|
295
|
+
PIXELFORMAT_UNCOMPRESSED_R16G16B16 = 12 # 16*3 bpp (3 channels - half float)
|
|
296
|
+
PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = 13 # 16*4 bpp (4 channels - half float)
|
|
297
|
+
PIXELFORMAT_COMPRESSED_DXT1_RGB = 14 # 4 bpp (no alpha)
|
|
298
|
+
PIXELFORMAT_COMPRESSED_DXT1_RGBA = 15 # 4 bpp (1 bit alpha)
|
|
299
|
+
PIXELFORMAT_COMPRESSED_DXT3_RGBA = 16 # 8 bpp
|
|
300
|
+
PIXELFORMAT_COMPRESSED_DXT5_RGBA = 17 # 8 bpp
|
|
301
|
+
PIXELFORMAT_COMPRESSED_ETC1_RGB = 18 # 4 bpp
|
|
302
|
+
PIXELFORMAT_COMPRESSED_ETC2_RGB = 19 # 4 bpp
|
|
303
|
+
PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 20 # 8 bpp
|
|
304
|
+
PIXELFORMAT_COMPRESSED_PVRT_RGB = 21 # 4 bpp
|
|
305
|
+
PIXELFORMAT_COMPRESSED_PVRT_RGBA = 22 # 4 bpp
|
|
306
|
+
PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 23 # 8 bpp
|
|
307
|
+
PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24 # 2 bpp
|
|
304
308
|
|
|
305
309
|
# enum TextureFilter
|
|
306
310
|
# Texture parameters: filter mode
|
|
@@ -1173,6 +1177,11 @@ module Raylib
|
|
|
1173
1177
|
# @return [void]
|
|
1174
1178
|
[:ToggleFullscreen, :ToggleFullscreen, [], :void],
|
|
1175
1179
|
|
|
1180
|
+
# @!method ToggleBorderlessWindowed()
|
|
1181
|
+
# ToggleBorderlessWindowed : Toggle window state: borderless windowed (only PLATFORM_DESKTOP)
|
|
1182
|
+
# @return [void]
|
|
1183
|
+
[:ToggleBorderlessWindowed, :ToggleBorderlessWindowed, [], :void],
|
|
1184
|
+
|
|
1176
1185
|
# @!method MaximizeWindow()
|
|
1177
1186
|
# MaximizeWindow : Set window state: maximized, if resizable (only PLATFORM_DESKTOP)
|
|
1178
1187
|
# @return [void]
|
|
@@ -1202,7 +1211,7 @@ module Raylib
|
|
|
1202
1211
|
[:SetWindowIcons, :SetWindowIcons, [:pointer, :int], :void],
|
|
1203
1212
|
|
|
1204
1213
|
# @!method SetWindowTitle(title)
|
|
1205
|
-
# SetWindowTitle : Set title for window (only PLATFORM_DESKTOP)
|
|
1214
|
+
# SetWindowTitle : Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB)
|
|
1206
1215
|
# @param title [const char *]
|
|
1207
1216
|
# @return [void]
|
|
1208
1217
|
[:SetWindowTitle, :SetWindowTitle, [:pointer], :void],
|
|
@@ -1215,7 +1224,7 @@ module Raylib
|
|
|
1215
1224
|
[:SetWindowPosition, :SetWindowPosition, [:int, :int], :void],
|
|
1216
1225
|
|
|
1217
1226
|
# @!method SetWindowMonitor(monitor)
|
|
1218
|
-
# SetWindowMonitor : Set monitor for the current window
|
|
1227
|
+
# SetWindowMonitor : Set monitor for the current window
|
|
1219
1228
|
# @param monitor [int]
|
|
1220
1229
|
# @return [void]
|
|
1221
1230
|
[:SetWindowMonitor, :SetWindowMonitor, [:int], :void],
|
|
@@ -1240,6 +1249,11 @@ module Raylib
|
|
|
1240
1249
|
# @return [void]
|
|
1241
1250
|
[:SetWindowOpacity, :SetWindowOpacity, [:float], :void],
|
|
1242
1251
|
|
|
1252
|
+
# @!method SetWindowFocused()
|
|
1253
|
+
# SetWindowFocused : Set window focused (only PLATFORM_DESKTOP)
|
|
1254
|
+
# @return [void]
|
|
1255
|
+
[:SetWindowFocused, :SetWindowFocused, [], :void],
|
|
1256
|
+
|
|
1243
1257
|
# @!method GetWindowHandle()
|
|
1244
1258
|
# GetWindowHandle : Get native window handle
|
|
1245
1259
|
# @return [void *]
|
|
@@ -1322,7 +1336,7 @@ module Raylib
|
|
|
1322
1336
|
[:GetWindowScaleDPI, :GetWindowScaleDPI, [], Vector2.by_value],
|
|
1323
1337
|
|
|
1324
1338
|
# @!method GetMonitorName(monitor)
|
|
1325
|
-
# GetMonitorName : Get the human-readable, UTF-8 encoded name of the
|
|
1339
|
+
# GetMonitorName : Get the human-readable, UTF-8 encoded name of the specified monitor
|
|
1326
1340
|
# @param monitor [int]
|
|
1327
1341
|
# @return [const char *]
|
|
1328
1342
|
[:GetMonitorName, :GetMonitorName, [:int], :pointer],
|
|
@@ -1741,10 +1755,10 @@ module Raylib
|
|
|
1741
1755
|
# @return [void]
|
|
1742
1756
|
[:SetSaveFileTextCallback, :SetSaveFileTextCallback, [:SaveFileTextCallback], :void],
|
|
1743
1757
|
|
|
1744
|
-
# @!method LoadFileData(fileName,
|
|
1758
|
+
# @!method LoadFileData(fileName, dataSize)
|
|
1745
1759
|
# LoadFileData : Load file data as byte array (read)
|
|
1746
1760
|
# @param fileName [const char *]
|
|
1747
|
-
# @param
|
|
1761
|
+
# @param dataSize [int *]
|
|
1748
1762
|
# @return [unsigned char *]
|
|
1749
1763
|
[:LoadFileData, :LoadFileData, [:pointer, :pointer], :pointer],
|
|
1750
1764
|
|
|
@@ -1754,21 +1768,21 @@ module Raylib
|
|
|
1754
1768
|
# @return [void]
|
|
1755
1769
|
[:UnloadFileData, :UnloadFileData, [:pointer], :void],
|
|
1756
1770
|
|
|
1757
|
-
# @!method SaveFileData(fileName, data,
|
|
1771
|
+
# @!method SaveFileData(fileName, data, dataSize)
|
|
1758
1772
|
# SaveFileData : Save data to file from byte array (write), returns true on success
|
|
1759
1773
|
# @param fileName [const char *]
|
|
1760
1774
|
# @param data [void *]
|
|
1761
|
-
# @param
|
|
1775
|
+
# @param dataSize [int]
|
|
1762
1776
|
# @return [bool]
|
|
1763
|
-
[:SaveFileData, :SaveFileData, [:pointer, :pointer, :
|
|
1777
|
+
[:SaveFileData, :SaveFileData, [:pointer, :pointer, :int], :bool],
|
|
1764
1778
|
|
|
1765
|
-
# @!method ExportDataAsCode(data,
|
|
1779
|
+
# @!method ExportDataAsCode(data, dataSize, fileName)
|
|
1766
1780
|
# ExportDataAsCode : Export data to code (.h), returns true on success
|
|
1767
1781
|
# @param data [const unsigned char *]
|
|
1768
|
-
# @param
|
|
1782
|
+
# @param dataSize [int]
|
|
1769
1783
|
# @param fileName [const char *]
|
|
1770
1784
|
# @return [bool]
|
|
1771
|
-
[:ExportDataAsCode, :ExportDataAsCode, [:pointer, :
|
|
1785
|
+
[:ExportDataAsCode, :ExportDataAsCode, [:pointer, :int, :pointer], :bool],
|
|
1772
1786
|
|
|
1773
1787
|
# @!method LoadFileText(fileName)
|
|
1774
1788
|
# LoadFileText : Load text data from file (read), returns a '\0' terminated string
|
|
@@ -1945,6 +1959,12 @@ module Raylib
|
|
|
1945
1959
|
# @return [bool]
|
|
1946
1960
|
[:IsKeyPressed, :IsKeyPressed, [:int], :bool],
|
|
1947
1961
|
|
|
1962
|
+
# @!method IsKeyPressedRepeat(key)
|
|
1963
|
+
# IsKeyPressedRepeat : Check if a key has been pressed again (Only PLATFORM_DESKTOP)
|
|
1964
|
+
# @param key [int]
|
|
1965
|
+
# @return [bool]
|
|
1966
|
+
[:IsKeyPressedRepeat, :IsKeyPressedRepeat, [:int], :bool],
|
|
1967
|
+
|
|
1948
1968
|
# @!method IsKeyDown(key)
|
|
1949
1969
|
# IsKeyDown : Check if a key is being pressed
|
|
1950
1970
|
# @param key [int]
|
|
@@ -2288,6 +2308,24 @@ module Raylib
|
|
|
2288
2308
|
# @return [void]
|
|
2289
2309
|
[:DrawLineBezierCubic, :DrawLineBezierCubic, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value], :void],
|
|
2290
2310
|
|
|
2311
|
+
# @!method DrawLineBSpline(points, pointCount, thick, color)
|
|
2312
|
+
# DrawLineBSpline : Draw a B-Spline line, minimum 4 points
|
|
2313
|
+
# @param points [Vector2 *]
|
|
2314
|
+
# @param pointCount [int]
|
|
2315
|
+
# @param thick [float]
|
|
2316
|
+
# @param color [Color]
|
|
2317
|
+
# @return [void]
|
|
2318
|
+
[:DrawLineBSpline, :DrawLineBSpline, [:pointer, :int, :float, Color.by_value], :void],
|
|
2319
|
+
|
|
2320
|
+
# @!method DrawLineCatmullRom(points, pointCount, thick, color)
|
|
2321
|
+
# DrawLineCatmullRom : Draw a Catmull Rom spline line, minimum 4 points
|
|
2322
|
+
# @param points [Vector2 *]
|
|
2323
|
+
# @param pointCount [int]
|
|
2324
|
+
# @param thick [float]
|
|
2325
|
+
# @param color [Color]
|
|
2326
|
+
# @return [void]
|
|
2327
|
+
[:DrawLineCatmullRom, :DrawLineCatmullRom, [:pointer, :int, :float, Color.by_value], :void],
|
|
2328
|
+
|
|
2291
2329
|
# @!method DrawLineStrip(points, pointCount, color)
|
|
2292
2330
|
# DrawLineStrip : Draw lines sequence
|
|
2293
2331
|
# @param points [Vector2 *]
|
|
@@ -2664,6 +2702,14 @@ module Raylib
|
|
|
2664
2702
|
# @return [Image]
|
|
2665
2703
|
[:LoadImageRaw, :LoadImageRaw, [:pointer, :int, :int, :int, :int], Image.by_value],
|
|
2666
2704
|
|
|
2705
|
+
# @!method LoadImageSvg(fileNameOrString, width, height)
|
|
2706
|
+
# LoadImageSvg : Load image from SVG file data or string with specified size
|
|
2707
|
+
# @param fileNameOrString [const char *]
|
|
2708
|
+
# @param width [int]
|
|
2709
|
+
# @param height [int]
|
|
2710
|
+
# @return [Image]
|
|
2711
|
+
[:LoadImageSvg, :LoadImageSvg, [:pointer, :int, :int], Image.by_value],
|
|
2712
|
+
|
|
2667
2713
|
# @!method LoadImageAnim(fileName, frames)
|
|
2668
2714
|
# LoadImageAnim : Load image sequence from file (frames appended to image.data)
|
|
2669
2715
|
# @param fileName [const char *]
|
|
@@ -3460,12 +3506,12 @@ module Raylib
|
|
|
3460
3506
|
# @return [Font]
|
|
3461
3507
|
[:LoadFont, :LoadFont, [:pointer], Font.by_value],
|
|
3462
3508
|
|
|
3463
|
-
# @!method LoadFontEx(fileName, fontSize,
|
|
3464
|
-
# LoadFontEx : Load font from file with extended parameters, use NULL for
|
|
3509
|
+
# @!method LoadFontEx(fileName, fontSize, codepoints, codepointCount)
|
|
3510
|
+
# LoadFontEx : Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont
|
|
3465
3511
|
# @param fileName [const char *]
|
|
3466
3512
|
# @param fontSize [int]
|
|
3467
|
-
# @param
|
|
3468
|
-
# @param
|
|
3513
|
+
# @param codepoints [int *]
|
|
3514
|
+
# @param codepointCount [int]
|
|
3469
3515
|
# @return [Font]
|
|
3470
3516
|
[:LoadFontEx, :LoadFontEx, [:pointer, :int, :pointer, :int], Font.by_value],
|
|
3471
3517
|
|
|
@@ -3477,14 +3523,14 @@ module Raylib
|
|
|
3477
3523
|
# @return [Font]
|
|
3478
3524
|
[:LoadFontFromImage, :LoadFontFromImage, [Image.by_value, Color.by_value, :int], Font.by_value],
|
|
3479
3525
|
|
|
3480
|
-
# @!method LoadFontFromMemory(fileType, fileData, dataSize, fontSize,
|
|
3526
|
+
# @!method LoadFontFromMemory(fileType, fileData, dataSize, fontSize, codepoints, codepointCount)
|
|
3481
3527
|
# LoadFontFromMemory : Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
|
|
3482
3528
|
# @param fileType [const char *]
|
|
3483
3529
|
# @param fileData [const unsigned char *]
|
|
3484
3530
|
# @param dataSize [int]
|
|
3485
3531
|
# @param fontSize [int]
|
|
3486
|
-
# @param
|
|
3487
|
-
# @param
|
|
3532
|
+
# @param codepoints [int *]
|
|
3533
|
+
# @param codepointCount [int]
|
|
3488
3534
|
# @return [Font]
|
|
3489
3535
|
[:LoadFontFromMemory, :LoadFontFromMemory, [:pointer, :pointer, :int, :int, :pointer, :int], Font.by_value],
|
|
3490
3536
|
|
|
@@ -3494,21 +3540,21 @@ module Raylib
|
|
|
3494
3540
|
# @return [bool]
|
|
3495
3541
|
[:IsFontReady, :IsFontReady, [Font.by_value], :bool],
|
|
3496
3542
|
|
|
3497
|
-
# @!method LoadFontData(fileData, dataSize, fontSize,
|
|
3543
|
+
# @!method LoadFontData(fileData, dataSize, fontSize, codepoints, codepointCount, type)
|
|
3498
3544
|
# LoadFontData : Load font data for further use
|
|
3499
3545
|
# @param fileData [const unsigned char *]
|
|
3500
3546
|
# @param dataSize [int]
|
|
3501
3547
|
# @param fontSize [int]
|
|
3502
|
-
# @param
|
|
3503
|
-
# @param
|
|
3548
|
+
# @param codepoints [int *]
|
|
3549
|
+
# @param codepointCount [int]
|
|
3504
3550
|
# @param type [int]
|
|
3505
3551
|
# @return [GlyphInfo *]
|
|
3506
3552
|
[:LoadFontData, :LoadFontData, [:pointer, :int, :int, :pointer, :int, :int], :pointer],
|
|
3507
3553
|
|
|
3508
|
-
# @!method GenImageFontAtlas(
|
|
3554
|
+
# @!method GenImageFontAtlas(glyphs, glyphRecs, glyphCount, fontSize, padding, packMethod)
|
|
3509
3555
|
# GenImageFontAtlas : Generate image font atlas using chars info
|
|
3510
|
-
# @param
|
|
3511
|
-
# @param
|
|
3556
|
+
# @param glyphs [const GlyphInfo *]
|
|
3557
|
+
# @param glyphRecs [Rectangle **]
|
|
3512
3558
|
# @param glyphCount [int]
|
|
3513
3559
|
# @param fontSize [int]
|
|
3514
3560
|
# @param padding [int]
|
|
@@ -3516,9 +3562,9 @@ module Raylib
|
|
|
3516
3562
|
# @return [Image]
|
|
3517
3563
|
[:GenImageFontAtlas, :GenImageFontAtlas, [:pointer, :pointer, :int, :int, :int, :int], Image.by_value],
|
|
3518
3564
|
|
|
3519
|
-
# @!method UnloadFontData(
|
|
3565
|
+
# @!method UnloadFontData(glyphs, glyphCount)
|
|
3520
3566
|
# UnloadFontData : Unload font chars info data (RAM)
|
|
3521
|
-
# @param
|
|
3567
|
+
# @param glyphs [GlyphInfo *]
|
|
3522
3568
|
# @param glyphCount [int]
|
|
3523
3569
|
# @return [void]
|
|
3524
3570
|
[:UnloadFontData, :UnloadFontData, [:pointer, :int], :void],
|
|
@@ -3587,11 +3633,11 @@ module Raylib
|
|
|
3587
3633
|
# @return [void]
|
|
3588
3634
|
[:DrawTextCodepoint, :DrawTextCodepoint, [Font.by_value, :int, Vector2.by_value, :float, Color.by_value], :void],
|
|
3589
3635
|
|
|
3590
|
-
# @!method DrawTextCodepoints(font, codepoints,
|
|
3636
|
+
# @!method DrawTextCodepoints(font, codepoints, codepointCount, position, fontSize, spacing, tint)
|
|
3591
3637
|
# DrawTextCodepoints : Draw multiple character (codepoint)
|
|
3592
3638
|
# @param font [Font]
|
|
3593
3639
|
# @param codepoints [const int *]
|
|
3594
|
-
# @param
|
|
3640
|
+
# @param codepointCount [int]
|
|
3595
3641
|
# @param position [Vector2]
|
|
3596
3642
|
# @param fontSize [float]
|
|
3597
3643
|
# @param spacing [float]
|
|
@@ -3599,6 +3645,12 @@ module Raylib
|
|
|
3599
3645
|
# @return [void]
|
|
3600
3646
|
[:DrawTextCodepoints, :DrawTextCodepoints, [Font.by_value, :pointer, :int, Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
3601
3647
|
|
|
3648
|
+
# @!method SetTextLineSpacing(spacing)
|
|
3649
|
+
# SetTextLineSpacing : Set vertical line spacing when drawing with line-breaks
|
|
3650
|
+
# @param spacing [int]
|
|
3651
|
+
# @return [void]
|
|
3652
|
+
[:SetTextLineSpacing, :SetTextLineSpacing, [:int], :void],
|
|
3653
|
+
|
|
3602
3654
|
# @!method MeasureText(text, fontSize)
|
|
3603
3655
|
# MeasureText : Measure string width for default font
|
|
3604
3656
|
# @param text [const char *]
|
|
@@ -4298,7 +4350,7 @@ module Raylib
|
|
|
4298
4350
|
# @!method LoadModelAnimations(fileName, animCount)
|
|
4299
4351
|
# LoadModelAnimations : Load model animations from file
|
|
4300
4352
|
# @param fileName [const char *]
|
|
4301
|
-
# @param animCount [
|
|
4353
|
+
# @param animCount [int *]
|
|
4302
4354
|
# @return [ModelAnimation *]
|
|
4303
4355
|
[:LoadModelAnimations, :LoadModelAnimations, [:pointer, :pointer], :pointer],
|
|
4304
4356
|
|
|
@@ -4316,12 +4368,12 @@ module Raylib
|
|
|
4316
4368
|
# @return [void]
|
|
4317
4369
|
[:UnloadModelAnimation, :UnloadModelAnimation, [ModelAnimation.by_value], :void],
|
|
4318
4370
|
|
|
4319
|
-
# @!method UnloadModelAnimations(animations,
|
|
4371
|
+
# @!method UnloadModelAnimations(animations, animCount)
|
|
4320
4372
|
# UnloadModelAnimations : Unload animation array data
|
|
4321
4373
|
# @param animations [ModelAnimation *]
|
|
4322
|
-
# @param
|
|
4374
|
+
# @param animCount [int]
|
|
4323
4375
|
# @return [void]
|
|
4324
|
-
[:UnloadModelAnimations, :UnloadModelAnimations, [:pointer, :
|
|
4376
|
+
[:UnloadModelAnimations, :UnloadModelAnimations, [:pointer, :int], :void],
|
|
4325
4377
|
|
|
4326
4378
|
# @!method IsModelAnimationValid(model, anim)
|
|
4327
4379
|
# IsModelAnimationValid : Check model animation skeleton match
|
|
@@ -4449,6 +4501,12 @@ module Raylib
|
|
|
4449
4501
|
# @return [Sound]
|
|
4450
4502
|
[:LoadSoundFromWave, :LoadSoundFromWave, [Wave.by_value], Sound.by_value],
|
|
4451
4503
|
|
|
4504
|
+
# @!method LoadSoundAlias(source)
|
|
4505
|
+
# LoadSoundAlias : Create a new sound that shares the same sample data as the source sound, does not own the sound data
|
|
4506
|
+
# @param source [Sound]
|
|
4507
|
+
# @return [Sound]
|
|
4508
|
+
[:LoadSoundAlias, :LoadSoundAlias, [Sound.by_value], Sound.by_value],
|
|
4509
|
+
|
|
4452
4510
|
# @!method IsSoundReady(sound)
|
|
4453
4511
|
# IsSoundReady : Checks if a sound is ready
|
|
4454
4512
|
# @param sound [Sound]
|
|
@@ -4475,6 +4533,12 @@ module Raylib
|
|
|
4475
4533
|
# @return [void]
|
|
4476
4534
|
[:UnloadSound, :UnloadSound, [Sound.by_value], :void],
|
|
4477
4535
|
|
|
4536
|
+
# @!method UnloadSoundAlias(alias)
|
|
4537
|
+
# UnloadSoundAlias : Unload a sound alias (does not deallocate sample data)
|
|
4538
|
+
# @param alias [Sound]
|
|
4539
|
+
# @return [void]
|
|
4540
|
+
[:UnloadSoundAlias, :UnloadSoundAlias, [Sound.by_value], :void],
|
|
4541
|
+
|
|
4478
4542
|
# @!method ExportWave(wave, fileName)
|
|
4479
4543
|
# ExportWave : Export wave data to file, returns true on success
|
|
4480
4544
|
# @param wave [Wave]
|
|
@@ -4776,7 +4840,7 @@ module Raylib
|
|
|
4776
4840
|
[:SetAudioStreamCallback, :SetAudioStreamCallback, [AudioStream.by_value, :AudioCallback], :void],
|
|
4777
4841
|
|
|
4778
4842
|
# @!method AttachAudioStreamProcessor(stream, processor)
|
|
4779
|
-
# AttachAudioStreamProcessor : Attach audio stream processor to stream
|
|
4843
|
+
# AttachAudioStreamProcessor : Attach audio stream processor to stream, receives the samples as <float>s
|
|
4780
4844
|
# @param stream [AudioStream]
|
|
4781
4845
|
# @param processor [AudioCallback]
|
|
4782
4846
|
# @return [void]
|
|
@@ -4790,7 +4854,7 @@ module Raylib
|
|
|
4790
4854
|
[:DetachAudioStreamProcessor, :DetachAudioStreamProcessor, [AudioStream.by_value, :AudioCallback], :void],
|
|
4791
4855
|
|
|
4792
4856
|
# @!method AttachAudioMixedProcessor(processor)
|
|
4793
|
-
# AttachAudioMixedProcessor : Attach audio stream processor to the entire audio pipeline
|
|
4857
|
+
# AttachAudioMixedProcessor : Attach audio stream processor to the entire audio pipeline, receives the samples as <float>s
|
|
4794
4858
|
# @param processor [AudioCallback]
|
|
4795
4859
|
# @return [void]
|
|
4796
4860
|
[:AttachAudioMixedProcessor, :AttachAudioMixedProcessor, [:AudioCallback], :void],
|
data/lib/raymath.rb
CHANGED
|
@@ -398,6 +398,20 @@ module Raylib
|
|
|
398
398
|
# @return [Vector3]
|
|
399
399
|
[:Vector3Normalize, :Vector3Normalize, [Vector3.by_value], Vector3.by_value],
|
|
400
400
|
|
|
401
|
+
# @!method Vector3Project(v1, v2)
|
|
402
|
+
# Vector3Project
|
|
403
|
+
# @param v1 [Vector3]
|
|
404
|
+
# @param v2 [Vector3]
|
|
405
|
+
# @return [Vector3]
|
|
406
|
+
[:Vector3Project, :Vector3Project, [Vector3.by_value, Vector3.by_value], Vector3.by_value],
|
|
407
|
+
|
|
408
|
+
# @!method Vector3Reject(v1, v2)
|
|
409
|
+
# Vector3Reject
|
|
410
|
+
# @param v1 [Vector3]
|
|
411
|
+
# @param v2 [Vector3]
|
|
412
|
+
# @return [Vector3]
|
|
413
|
+
[:Vector3Reject, :Vector3Reject, [Vector3.by_value, Vector3.by_value], Vector3.by_value],
|
|
414
|
+
|
|
401
415
|
# @!method Vector3OrthoNormalize(v1, v2)
|
|
402
416
|
# Vector3OrthoNormalize
|
|
403
417
|
# @param v1 [Vector3 *]
|
|
@@ -630,23 +644,23 @@ module Raylib
|
|
|
630
644
|
# @return [Matrix]
|
|
631
645
|
[:MatrixFrustum, :MatrixFrustum, [:double, :double, :double, :double, :double, :double], Matrix.by_value],
|
|
632
646
|
|
|
633
|
-
# @!method MatrixPerspective(
|
|
647
|
+
# @!method MatrixPerspective(fovY, aspect, nearPlane, farPlane)
|
|
634
648
|
# MatrixPerspective
|
|
635
|
-
# @param
|
|
649
|
+
# @param fovY [double]
|
|
636
650
|
# @param aspect [double]
|
|
637
|
-
# @param
|
|
638
|
-
# @param
|
|
651
|
+
# @param nearPlane [double]
|
|
652
|
+
# @param farPlane [double]
|
|
639
653
|
# @return [Matrix]
|
|
640
654
|
[:MatrixPerspective, :MatrixPerspective, [:double, :double, :double, :double], Matrix.by_value],
|
|
641
655
|
|
|
642
|
-
# @!method MatrixOrtho(left, right, bottom, top,
|
|
656
|
+
# @!method MatrixOrtho(left, right, bottom, top, nearPlane, farPlane)
|
|
643
657
|
# MatrixOrtho
|
|
644
658
|
# @param left [double]
|
|
645
659
|
# @param right [double]
|
|
646
660
|
# @param bottom [double]
|
|
647
661
|
# @param top [double]
|
|
648
|
-
# @param
|
|
649
|
-
# @param
|
|
662
|
+
# @param nearPlane [double]
|
|
663
|
+
# @param farPlane [double]
|
|
650
664
|
# @return [Matrix]
|
|
651
665
|
[:MatrixOrtho, :MatrixOrtho, [:double, :double, :double, :double, :double, :double], Matrix.by_value],
|
|
652
666
|
|
data/lib/rcamera.rb
CHANGED
|
@@ -99,14 +99,14 @@ module Raylib
|
|
|
99
99
|
# GetCameraViewMatrix
|
|
100
100
|
# @param camera [Camera *]
|
|
101
101
|
# @return [Matrix]
|
|
102
|
-
[:GetCameraViewMatrix, :GetCameraViewMatrix, [:pointer],
|
|
102
|
+
[:GetCameraViewMatrix, :GetCameraViewMatrix, [:pointer], Matrix.by_value],
|
|
103
103
|
|
|
104
104
|
# @!method GetCameraProjectionMatrix(camera, aspect)
|
|
105
105
|
# GetCameraProjectionMatrix
|
|
106
106
|
# @param camera [Camera*]
|
|
107
107
|
# @param aspect [float]
|
|
108
108
|
# @return [Matrix]
|
|
109
|
-
[:GetCameraProjectionMatrix, :GetCameraProjectionMatrix, [:pointer, :float],
|
|
109
|
+
[:GetCameraProjectionMatrix, :GetCameraProjectionMatrix, [:pointer, :float], Matrix.by_value],
|
|
110
110
|
]
|
|
111
111
|
entries.each do |entry|
|
|
112
112
|
attach_function entry[0], entry[1], entry[2], entry[3]
|
data/lib/rlgl.rb
CHANGED
|
@@ -112,17 +112,20 @@ module Raylib
|
|
|
112
112
|
RL_PIXELFORMAT_UNCOMPRESSED_R32 = 8 # 32 bpp (1 channel - float)
|
|
113
113
|
RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9 # 32*3 bpp (3 channels - float)
|
|
114
114
|
RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10 # 32*4 bpp (4 channels - float)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R16 = 11 # 16 bpp (1 channel - half float)
|
|
116
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16 = 12 # 16*3 bpp (3 channels - half float)
|
|
117
|
+
RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = 13 # 16*4 bpp (4 channels - half float)
|
|
118
|
+
RL_PIXELFORMAT_COMPRESSED_DXT1_RGB = 14 # 4 bpp (no alpha)
|
|
119
|
+
RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA = 15 # 4 bpp (1 bit alpha)
|
|
120
|
+
RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA = 16 # 8 bpp
|
|
121
|
+
RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA = 17 # 8 bpp
|
|
122
|
+
RL_PIXELFORMAT_COMPRESSED_ETC1_RGB = 18 # 4 bpp
|
|
123
|
+
RL_PIXELFORMAT_COMPRESSED_ETC2_RGB = 19 # 4 bpp
|
|
124
|
+
RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 20 # 8 bpp
|
|
125
|
+
RL_PIXELFORMAT_COMPRESSED_PVRT_RGB = 21 # 4 bpp
|
|
126
|
+
RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA = 22 # 4 bpp
|
|
127
|
+
RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 23 # 8 bpp
|
|
128
|
+
RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24 # 2 bpp
|
|
126
129
|
|
|
127
130
|
# enum rlTextureFilter
|
|
128
131
|
# Texture parameters: filter mode
|
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.5.
|
|
4
|
+
version: 0.5.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- vaiorabbit
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-09-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|
|
@@ -64,7 +64,6 @@ files:
|
|
|
64
64
|
- lib/raygui.aarch64.so
|
|
65
65
|
- lib/raygui.dll
|
|
66
66
|
- lib/raygui.dylib
|
|
67
|
-
- lib/raygui.rb
|
|
68
67
|
- lib/raygui.x86_64.so
|
|
69
68
|
- lib/raygui_helper.rb
|
|
70
69
|
- lib/raygui_main.rb
|