raylib-bindings 0.5.5 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +38 -0
- data/README.md +1 -1
- data/examples/template.rb +14 -20
- data/lib/config.rb +0 -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_helper.rb +108 -9
- data/lib/raygui_main.rb +58 -40
- data/lib/raylib_helper.rb +87 -14
- data/lib/raylib_main.rb +105 -45
- data/lib/raymath.rb +14 -0
- data/lib/rlgl.rb +14 -11
- metadata +5 -6
- 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
|
@@ -403,7 +407,7 @@ module Raylib
|
|
403
407
|
typedef :int, :NPatchLayout
|
404
408
|
callback :TraceLogCallback, [:int, :pointer, :int], :void
|
405
409
|
callback :LoadFileDataCallback, [:pointer, :pointer], :pointer
|
406
|
-
callback :SaveFileDataCallback, [:pointer, :pointer, :
|
410
|
+
callback :SaveFileDataCallback, [:pointer, :pointer, :int], :bool
|
407
411
|
callback :LoadFileTextCallback, [:pointer], :pointer
|
408
412
|
callback :SaveFileTextCallback, [:pointer, :pointer], :bool
|
409
413
|
callback :AudioCallback, [:pointer, :uint], :void
|
@@ -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],
|
@@ -1227,6 +1236,13 @@ module Raylib
|
|
1227
1236
|
# @return [void]
|
1228
1237
|
[:SetWindowMinSize, :SetWindowMinSize, [:int, :int], :void],
|
1229
1238
|
|
1239
|
+
# @!method SetWindowMaxSize(width, height)
|
1240
|
+
# SetWindowMaxSize : Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)
|
1241
|
+
# @param width [int]
|
1242
|
+
# @param height [int]
|
1243
|
+
# @return [void]
|
1244
|
+
[:SetWindowMaxSize, :SetWindowMaxSize, [:int, :int], :void],
|
1245
|
+
|
1230
1246
|
# @!method SetWindowSize(width, height)
|
1231
1247
|
# SetWindowSize : Set window dimensions
|
1232
1248
|
# @param width [int]
|
@@ -1746,10 +1762,10 @@ module Raylib
|
|
1746
1762
|
# @return [void]
|
1747
1763
|
[:SetSaveFileTextCallback, :SetSaveFileTextCallback, [:SaveFileTextCallback], :void],
|
1748
1764
|
|
1749
|
-
# @!method LoadFileData(fileName,
|
1765
|
+
# @!method LoadFileData(fileName, dataSize)
|
1750
1766
|
# LoadFileData : Load file data as byte array (read)
|
1751
1767
|
# @param fileName [const char *]
|
1752
|
-
# @param
|
1768
|
+
# @param dataSize [int *]
|
1753
1769
|
# @return [unsigned char *]
|
1754
1770
|
[:LoadFileData, :LoadFileData, [:pointer, :pointer], :pointer],
|
1755
1771
|
|
@@ -1759,21 +1775,21 @@ module Raylib
|
|
1759
1775
|
# @return [void]
|
1760
1776
|
[:UnloadFileData, :UnloadFileData, [:pointer], :void],
|
1761
1777
|
|
1762
|
-
# @!method SaveFileData(fileName, data,
|
1778
|
+
# @!method SaveFileData(fileName, data, dataSize)
|
1763
1779
|
# SaveFileData : Save data to file from byte array (write), returns true on success
|
1764
1780
|
# @param fileName [const char *]
|
1765
1781
|
# @param data [void *]
|
1766
|
-
# @param
|
1782
|
+
# @param dataSize [int]
|
1767
1783
|
# @return [bool]
|
1768
|
-
[:SaveFileData, :SaveFileData, [:pointer, :pointer, :
|
1784
|
+
[:SaveFileData, :SaveFileData, [:pointer, :pointer, :int], :bool],
|
1769
1785
|
|
1770
|
-
# @!method ExportDataAsCode(data,
|
1786
|
+
# @!method ExportDataAsCode(data, dataSize, fileName)
|
1771
1787
|
# ExportDataAsCode : Export data to code (.h), returns true on success
|
1772
1788
|
# @param data [const unsigned char *]
|
1773
|
-
# @param
|
1789
|
+
# @param dataSize [int]
|
1774
1790
|
# @param fileName [const char *]
|
1775
1791
|
# @return [bool]
|
1776
|
-
[:ExportDataAsCode, :ExportDataAsCode, [:pointer, :
|
1792
|
+
[:ExportDataAsCode, :ExportDataAsCode, [:pointer, :int, :pointer], :bool],
|
1777
1793
|
|
1778
1794
|
# @!method LoadFileText(fileName)
|
1779
1795
|
# LoadFileText : Load text data from file (read), returns a '\0' terminated string
|
@@ -1855,7 +1871,7 @@ module Raylib
|
|
1855
1871
|
[:GetWorkingDirectory, :GetWorkingDirectory, [], :pointer],
|
1856
1872
|
|
1857
1873
|
# @!method GetApplicationDirectory()
|
1858
|
-
# GetApplicationDirectory : Get the directory
|
1874
|
+
# GetApplicationDirectory : Get the directory of the running application (uses static string)
|
1859
1875
|
# @return [const char *]
|
1860
1876
|
[:GetApplicationDirectory, :GetApplicationDirectory, [], :pointer],
|
1861
1877
|
|
@@ -1950,6 +1966,12 @@ module Raylib
|
|
1950
1966
|
# @return [bool]
|
1951
1967
|
[:IsKeyPressed, :IsKeyPressed, [:int], :bool],
|
1952
1968
|
|
1969
|
+
# @!method IsKeyPressedRepeat(key)
|
1970
|
+
# IsKeyPressedRepeat : Check if a key has been pressed again (Only PLATFORM_DESKTOP)
|
1971
|
+
# @param key [int]
|
1972
|
+
# @return [bool]
|
1973
|
+
[:IsKeyPressedRepeat, :IsKeyPressedRepeat, [:int], :bool],
|
1974
|
+
|
1953
1975
|
# @!method IsKeyDown(key)
|
1954
1976
|
# IsKeyDown : Check if a key is being pressed
|
1955
1977
|
# @param key [int]
|
@@ -2164,9 +2186,9 @@ module Raylib
|
|
2164
2186
|
|
2165
2187
|
# @!method IsGestureDetected(gesture)
|
2166
2188
|
# IsGestureDetected : Check if a gesture have been detected
|
2167
|
-
# @param gesture [int]
|
2189
|
+
# @param gesture [unsigned int]
|
2168
2190
|
# @return [bool]
|
2169
|
-
[:IsGestureDetected, :IsGestureDetected, [:
|
2191
|
+
[:IsGestureDetected, :IsGestureDetected, [:uint], :bool],
|
2170
2192
|
|
2171
2193
|
# @!method GetGestureDetected()
|
2172
2194
|
# GetGestureDetected : Get latest detected gesture
|
@@ -2293,6 +2315,24 @@ module Raylib
|
|
2293
2315
|
# @return [void]
|
2294
2316
|
[:DrawLineBezierCubic, :DrawLineBezierCubic, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value], :void],
|
2295
2317
|
|
2318
|
+
# @!method DrawLineBSpline(points, pointCount, thick, color)
|
2319
|
+
# DrawLineBSpline : Draw a B-Spline line, minimum 4 points
|
2320
|
+
# @param points [Vector2 *]
|
2321
|
+
# @param pointCount [int]
|
2322
|
+
# @param thick [float]
|
2323
|
+
# @param color [Color]
|
2324
|
+
# @return [void]
|
2325
|
+
[:DrawLineBSpline, :DrawLineBSpline, [:pointer, :int, :float, Color.by_value], :void],
|
2326
|
+
|
2327
|
+
# @!method DrawLineCatmullRom(points, pointCount, thick, color)
|
2328
|
+
# DrawLineCatmullRom : Draw a Catmull Rom spline line, minimum 4 points
|
2329
|
+
# @param points [Vector2 *]
|
2330
|
+
# @param pointCount [int]
|
2331
|
+
# @param thick [float]
|
2332
|
+
# @param color [Color]
|
2333
|
+
# @return [void]
|
2334
|
+
[:DrawLineCatmullRom, :DrawLineCatmullRom, [:pointer, :int, :float, Color.by_value], :void],
|
2335
|
+
|
2296
2336
|
# @!method DrawLineStrip(points, pointCount, color)
|
2297
2337
|
# DrawLineStrip : Draw lines sequence
|
2298
2338
|
# @param points [Vector2 *]
|
@@ -2669,6 +2709,14 @@ module Raylib
|
|
2669
2709
|
# @return [Image]
|
2670
2710
|
[:LoadImageRaw, :LoadImageRaw, [:pointer, :int, :int, :int, :int], Image.by_value],
|
2671
2711
|
|
2712
|
+
# @!method LoadImageSvg(fileNameOrString, width, height)
|
2713
|
+
# LoadImageSvg : Load image from SVG file data or string with specified size
|
2714
|
+
# @param fileNameOrString [const char *]
|
2715
|
+
# @param width [int]
|
2716
|
+
# @param height [int]
|
2717
|
+
# @return [Image]
|
2718
|
+
[:LoadImageSvg, :LoadImageSvg, [:pointer, :int, :int], Image.by_value],
|
2719
|
+
|
2672
2720
|
# @!method LoadImageAnim(fileName, frames)
|
2673
2721
|
# LoadImageAnim : Load image sequence from file (frames appended to image.data)
|
2674
2722
|
# @param fileName [const char *]
|
@@ -3465,12 +3513,12 @@ module Raylib
|
|
3465
3513
|
# @return [Font]
|
3466
3514
|
[:LoadFont, :LoadFont, [:pointer], Font.by_value],
|
3467
3515
|
|
3468
|
-
# @!method LoadFontEx(fileName, fontSize,
|
3469
|
-
# LoadFontEx : Load font from file with extended parameters, use NULL for
|
3516
|
+
# @!method LoadFontEx(fileName, fontSize, codepoints, codepointCount)
|
3517
|
+
# LoadFontEx : Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont
|
3470
3518
|
# @param fileName [const char *]
|
3471
3519
|
# @param fontSize [int]
|
3472
|
-
# @param
|
3473
|
-
# @param
|
3520
|
+
# @param codepoints [int *]
|
3521
|
+
# @param codepointCount [int]
|
3474
3522
|
# @return [Font]
|
3475
3523
|
[:LoadFontEx, :LoadFontEx, [:pointer, :int, :pointer, :int], Font.by_value],
|
3476
3524
|
|
@@ -3482,14 +3530,14 @@ module Raylib
|
|
3482
3530
|
# @return [Font]
|
3483
3531
|
[:LoadFontFromImage, :LoadFontFromImage, [Image.by_value, Color.by_value, :int], Font.by_value],
|
3484
3532
|
|
3485
|
-
# @!method LoadFontFromMemory(fileType, fileData, dataSize, fontSize,
|
3533
|
+
# @!method LoadFontFromMemory(fileType, fileData, dataSize, fontSize, codepoints, codepointCount)
|
3486
3534
|
# LoadFontFromMemory : Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
|
3487
3535
|
# @param fileType [const char *]
|
3488
3536
|
# @param fileData [const unsigned char *]
|
3489
3537
|
# @param dataSize [int]
|
3490
3538
|
# @param fontSize [int]
|
3491
|
-
# @param
|
3492
|
-
# @param
|
3539
|
+
# @param codepoints [int *]
|
3540
|
+
# @param codepointCount [int]
|
3493
3541
|
# @return [Font]
|
3494
3542
|
[:LoadFontFromMemory, :LoadFontFromMemory, [:pointer, :pointer, :int, :int, :pointer, :int], Font.by_value],
|
3495
3543
|
|
@@ -3499,21 +3547,21 @@ module Raylib
|
|
3499
3547
|
# @return [bool]
|
3500
3548
|
[:IsFontReady, :IsFontReady, [Font.by_value], :bool],
|
3501
3549
|
|
3502
|
-
# @!method LoadFontData(fileData, dataSize, fontSize,
|
3550
|
+
# @!method LoadFontData(fileData, dataSize, fontSize, codepoints, codepointCount, type)
|
3503
3551
|
# LoadFontData : Load font data for further use
|
3504
3552
|
# @param fileData [const unsigned char *]
|
3505
3553
|
# @param dataSize [int]
|
3506
3554
|
# @param fontSize [int]
|
3507
|
-
# @param
|
3508
|
-
# @param
|
3555
|
+
# @param codepoints [int *]
|
3556
|
+
# @param codepointCount [int]
|
3509
3557
|
# @param type [int]
|
3510
3558
|
# @return [GlyphInfo *]
|
3511
3559
|
[:LoadFontData, :LoadFontData, [:pointer, :int, :int, :pointer, :int, :int], :pointer],
|
3512
3560
|
|
3513
|
-
# @!method GenImageFontAtlas(
|
3561
|
+
# @!method GenImageFontAtlas(glyphs, glyphRecs, glyphCount, fontSize, padding, packMethod)
|
3514
3562
|
# GenImageFontAtlas : Generate image font atlas using chars info
|
3515
|
-
# @param
|
3516
|
-
# @param
|
3563
|
+
# @param glyphs [const GlyphInfo *]
|
3564
|
+
# @param glyphRecs [Rectangle **]
|
3517
3565
|
# @param glyphCount [int]
|
3518
3566
|
# @param fontSize [int]
|
3519
3567
|
# @param padding [int]
|
@@ -3521,9 +3569,9 @@ module Raylib
|
|
3521
3569
|
# @return [Image]
|
3522
3570
|
[:GenImageFontAtlas, :GenImageFontAtlas, [:pointer, :pointer, :int, :int, :int, :int], Image.by_value],
|
3523
3571
|
|
3524
|
-
# @!method UnloadFontData(
|
3572
|
+
# @!method UnloadFontData(glyphs, glyphCount)
|
3525
3573
|
# UnloadFontData : Unload font chars info data (RAM)
|
3526
|
-
# @param
|
3574
|
+
# @param glyphs [GlyphInfo *]
|
3527
3575
|
# @param glyphCount [int]
|
3528
3576
|
# @return [void]
|
3529
3577
|
[:UnloadFontData, :UnloadFontData, [:pointer, :int], :void],
|
@@ -3592,11 +3640,11 @@ module Raylib
|
|
3592
3640
|
# @return [void]
|
3593
3641
|
[:DrawTextCodepoint, :DrawTextCodepoint, [Font.by_value, :int, Vector2.by_value, :float, Color.by_value], :void],
|
3594
3642
|
|
3595
|
-
# @!method DrawTextCodepoints(font, codepoints,
|
3643
|
+
# @!method DrawTextCodepoints(font, codepoints, codepointCount, position, fontSize, spacing, tint)
|
3596
3644
|
# DrawTextCodepoints : Draw multiple character (codepoint)
|
3597
3645
|
# @param font [Font]
|
3598
3646
|
# @param codepoints [const int *]
|
3599
|
-
# @param
|
3647
|
+
# @param codepointCount [int]
|
3600
3648
|
# @param position [Vector2]
|
3601
3649
|
# @param fontSize [float]
|
3602
3650
|
# @param spacing [float]
|
@@ -4309,7 +4357,7 @@ module Raylib
|
|
4309
4357
|
# @!method LoadModelAnimations(fileName, animCount)
|
4310
4358
|
# LoadModelAnimations : Load model animations from file
|
4311
4359
|
# @param fileName [const char *]
|
4312
|
-
# @param animCount [
|
4360
|
+
# @param animCount [int *]
|
4313
4361
|
# @return [ModelAnimation *]
|
4314
4362
|
[:LoadModelAnimations, :LoadModelAnimations, [:pointer, :pointer], :pointer],
|
4315
4363
|
|
@@ -4327,12 +4375,12 @@ module Raylib
|
|
4327
4375
|
# @return [void]
|
4328
4376
|
[:UnloadModelAnimation, :UnloadModelAnimation, [ModelAnimation.by_value], :void],
|
4329
4377
|
|
4330
|
-
# @!method UnloadModelAnimations(animations,
|
4378
|
+
# @!method UnloadModelAnimations(animations, animCount)
|
4331
4379
|
# UnloadModelAnimations : Unload animation array data
|
4332
4380
|
# @param animations [ModelAnimation *]
|
4333
|
-
# @param
|
4381
|
+
# @param animCount [int]
|
4334
4382
|
# @return [void]
|
4335
|
-
[:UnloadModelAnimations, :UnloadModelAnimations, [:pointer, :
|
4383
|
+
[:UnloadModelAnimations, :UnloadModelAnimations, [:pointer, :int], :void],
|
4336
4384
|
|
4337
4385
|
# @!method IsModelAnimationValid(model, anim)
|
4338
4386
|
# IsModelAnimationValid : Check model animation skeleton match
|
@@ -4460,6 +4508,12 @@ module Raylib
|
|
4460
4508
|
# @return [Sound]
|
4461
4509
|
[:LoadSoundFromWave, :LoadSoundFromWave, [Wave.by_value], Sound.by_value],
|
4462
4510
|
|
4511
|
+
# @!method LoadSoundAlias(source)
|
4512
|
+
# LoadSoundAlias : Create a new sound that shares the same sample data as the source sound, does not own the sound data
|
4513
|
+
# @param source [Sound]
|
4514
|
+
# @return [Sound]
|
4515
|
+
[:LoadSoundAlias, :LoadSoundAlias, [Sound.by_value], Sound.by_value],
|
4516
|
+
|
4463
4517
|
# @!method IsSoundReady(sound)
|
4464
4518
|
# IsSoundReady : Checks if a sound is ready
|
4465
4519
|
# @param sound [Sound]
|
@@ -4486,6 +4540,12 @@ module Raylib
|
|
4486
4540
|
# @return [void]
|
4487
4541
|
[:UnloadSound, :UnloadSound, [Sound.by_value], :void],
|
4488
4542
|
|
4543
|
+
# @!method UnloadSoundAlias(alias)
|
4544
|
+
# UnloadSoundAlias : Unload a sound alias (does not deallocate sample data)
|
4545
|
+
# @param alias [Sound]
|
4546
|
+
# @return [void]
|
4547
|
+
[:UnloadSoundAlias, :UnloadSoundAlias, [Sound.by_value], :void],
|
4548
|
+
|
4489
4549
|
# @!method ExportWave(wave, fileName)
|
4490
4550
|
# ExportWave : Export wave data to file, returns true on success
|
4491
4551
|
# @param wave [Wave]
|
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 *]
|
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.7
|
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-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.16'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.16'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: opengl-bindings2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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
|
@@ -93,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
92
|
- !ruby/object:Gem::Version
|
94
93
|
version: '0'
|
95
94
|
requirements: []
|
96
|
-
rubygems_version: 3.4.
|
95
|
+
rubygems_version: 3.4.20
|
97
96
|
signing_key:
|
98
97
|
specification_version: 4
|
99
98
|
summary: Provides latest raylib API for Ruby
|