raylib-bindings 0.8.0-x86_64-linux → 0.8.2-x86_64-linux
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 +16 -0
- data/README.md +13 -5
- data/lib/config.rb +1 -0
- data/lib/libraylib.x86_64.so +0 -0
- data/lib/raygui.x86_64.so +0 -0
- data/lib/raygui_main.rb +70 -33
- data/lib/raylib_helper.rb +6 -6
- data/lib/raylib_main.rb +456 -332
- metadata +2 -2
data/lib/raylib_main.rb
CHANGED
|
@@ -12,9 +12,9 @@ module Raylib
|
|
|
12
12
|
# Define/Macro
|
|
13
13
|
|
|
14
14
|
RAYLIB_VERSION_MAJOR = 6
|
|
15
|
-
RAYLIB_VERSION_MINOR =
|
|
15
|
+
RAYLIB_VERSION_MINOR = 1
|
|
16
16
|
RAYLIB_VERSION_PATCH = 0
|
|
17
|
-
RAYLIB_VERSION = "6.
|
|
17
|
+
RAYLIB_VERSION = "6.1-dev"
|
|
18
18
|
|
|
19
19
|
# Enum
|
|
20
20
|
|
|
@@ -1420,12 +1420,12 @@ module Raylib
|
|
|
1420
1420
|
[:DisableEventWaiting, :DisableEventWaiting, [], :void],
|
|
1421
1421
|
|
|
1422
1422
|
# @!method ShowCursor()
|
|
1423
|
-
# ShowCursor :
|
|
1423
|
+
# ShowCursor : Show cursor
|
|
1424
1424
|
# @return [void]
|
|
1425
1425
|
[:ShowCursor, :ShowCursor, [], :void],
|
|
1426
1426
|
|
|
1427
1427
|
# @!method HideCursor()
|
|
1428
|
-
# HideCursor :
|
|
1428
|
+
# HideCursor : Hide cursor
|
|
1429
1429
|
# @return [void]
|
|
1430
1430
|
[:HideCursor, :HideCursor, [], :void],
|
|
1431
1431
|
|
|
@@ -1435,12 +1435,12 @@ module Raylib
|
|
|
1435
1435
|
[:IsCursorHidden, :IsCursorHidden, [], :bool],
|
|
1436
1436
|
|
|
1437
1437
|
# @!method EnableCursor()
|
|
1438
|
-
# EnableCursor :
|
|
1438
|
+
# EnableCursor : Enable cursor (unlock cursor)
|
|
1439
1439
|
# @return [void]
|
|
1440
1440
|
[:EnableCursor, :EnableCursor, [], :void],
|
|
1441
1441
|
|
|
1442
1442
|
# @!method DisableCursor()
|
|
1443
|
-
# DisableCursor :
|
|
1443
|
+
# DisableCursor : Disable cursor (lock cursor)
|
|
1444
1444
|
# @return [void]
|
|
1445
1445
|
[:DisableCursor, :DisableCursor, [], :void],
|
|
1446
1446
|
|
|
@@ -1450,18 +1450,18 @@ module Raylib
|
|
|
1450
1450
|
[:IsCursorOnScreen, :IsCursorOnScreen, [], :bool],
|
|
1451
1451
|
|
|
1452
1452
|
# @!method ClearBackground(color)
|
|
1453
|
-
# ClearBackground :
|
|
1453
|
+
# ClearBackground : Clear background (framebuffer) to color
|
|
1454
1454
|
# @param color [Color]
|
|
1455
1455
|
# @return [void]
|
|
1456
1456
|
[:ClearBackground, :ClearBackground, [Color.by_value], :void],
|
|
1457
1457
|
|
|
1458
1458
|
# @!method BeginDrawing()
|
|
1459
|
-
# BeginDrawing :
|
|
1459
|
+
# BeginDrawing : Begin canvas (framebuffer) drawing
|
|
1460
1460
|
# @return [void]
|
|
1461
1461
|
[:BeginDrawing, :BeginDrawing, [], :void],
|
|
1462
1462
|
|
|
1463
1463
|
# @!method EndDrawing()
|
|
1464
|
-
# EndDrawing : End canvas drawing and swap buffers (double buffering)
|
|
1464
|
+
# EndDrawing : End canvas (framebuffer) drawing and swap buffers (double buffering)
|
|
1465
1465
|
# @return [void]
|
|
1466
1466
|
[:EndDrawing, :EndDrawing, [], :void],
|
|
1467
1467
|
|
|
@@ -1472,7 +1472,7 @@ module Raylib
|
|
|
1472
1472
|
[:BeginMode2D, :BeginMode2D, [Camera2D.by_value], :void],
|
|
1473
1473
|
|
|
1474
1474
|
# @!method EndMode2D()
|
|
1475
|
-
# EndMode2D :
|
|
1475
|
+
# EndMode2D : End 2D mode with custom camera
|
|
1476
1476
|
# @return [void]
|
|
1477
1477
|
[:EndMode2D, :EndMode2D, [], :void],
|
|
1478
1478
|
|
|
@@ -1483,7 +1483,7 @@ module Raylib
|
|
|
1483
1483
|
[:BeginMode3D, :BeginMode3D, [Camera3D.by_value], :void],
|
|
1484
1484
|
|
|
1485
1485
|
# @!method EndMode3D()
|
|
1486
|
-
# EndMode3D :
|
|
1486
|
+
# EndMode3D : End 3D mode and returns to default 2D orthographic mode
|
|
1487
1487
|
# @return [void]
|
|
1488
1488
|
[:EndMode3D, :EndMode3D, [], :void],
|
|
1489
1489
|
|
|
@@ -1494,7 +1494,7 @@ module Raylib
|
|
|
1494
1494
|
[:BeginTextureMode, :BeginTextureMode, [RenderTexture2D.by_value], :void],
|
|
1495
1495
|
|
|
1496
1496
|
# @!method EndTextureMode()
|
|
1497
|
-
# EndTextureMode :
|
|
1497
|
+
# EndTextureMode : End drawing to render texture
|
|
1498
1498
|
# @return [void]
|
|
1499
1499
|
[:EndTextureMode, :EndTextureMode, [], :void],
|
|
1500
1500
|
|
|
@@ -1572,7 +1572,7 @@ module Raylib
|
|
|
1572
1572
|
[:LoadShaderFromMemory, :LoadShaderFromMemory, [:pointer, :pointer], Shader.by_value],
|
|
1573
1573
|
|
|
1574
1574
|
# @!method IsShaderValid(shader)
|
|
1575
|
-
# IsShaderValid : Check if
|
|
1575
|
+
# IsShaderValid : Check if shader is valid (loaded on GPU)
|
|
1576
1576
|
# @param shader [Shader]
|
|
1577
1577
|
# @return [bool]
|
|
1578
1578
|
[:IsShaderValid, :IsShaderValid, [Shader.by_value], :bool],
|
|
@@ -1649,14 +1649,14 @@ module Raylib
|
|
|
1649
1649
|
[:GetScreenToWorldRayEx, :GetScreenToWorldRayEx, [Vector2.by_value, Camera.by_value, :int, :int], Ray.by_value],
|
|
1650
1650
|
|
|
1651
1651
|
# @!method GetWorldToScreen(position, camera)
|
|
1652
|
-
# GetWorldToScreen : Get
|
|
1652
|
+
# GetWorldToScreen : Get screen space position for a 3d world space position
|
|
1653
1653
|
# @param position [Vector3]
|
|
1654
1654
|
# @param camera [Camera]
|
|
1655
1655
|
# @return [Vector2]
|
|
1656
1656
|
[:GetWorldToScreen, :GetWorldToScreen, [Vector3.by_value, Camera.by_value], Vector2.by_value],
|
|
1657
1657
|
|
|
1658
1658
|
# @!method GetWorldToScreenEx(position, camera, width, height)
|
|
1659
|
-
# GetWorldToScreenEx : Get
|
|
1659
|
+
# GetWorldToScreenEx : Get sized screen space position for a 3d world space position
|
|
1660
1660
|
# @param position [Vector3]
|
|
1661
1661
|
# @param camera [Camera]
|
|
1662
1662
|
# @param width [int]
|
|
@@ -1665,14 +1665,14 @@ module Raylib
|
|
|
1665
1665
|
[:GetWorldToScreenEx, :GetWorldToScreenEx, [Vector3.by_value, Camera.by_value, :int, :int], Vector2.by_value],
|
|
1666
1666
|
|
|
1667
1667
|
# @!method GetWorldToScreen2D(position, camera)
|
|
1668
|
-
# GetWorldToScreen2D : Get
|
|
1668
|
+
# GetWorldToScreen2D : Get screen space position for a 2d camera world space position
|
|
1669
1669
|
# @param position [Vector2]
|
|
1670
1670
|
# @param camera [Camera2D]
|
|
1671
1671
|
# @return [Vector2]
|
|
1672
1672
|
[:GetWorldToScreen2D, :GetWorldToScreen2D, [Vector2.by_value, Camera2D.by_value], Vector2.by_value],
|
|
1673
1673
|
|
|
1674
1674
|
# @!method GetScreenToWorld2D(position, camera)
|
|
1675
|
-
# GetScreenToWorld2D : Get
|
|
1675
|
+
# GetScreenToWorld2D : Get world space position for a 2d camera screen space position
|
|
1676
1676
|
# @param position [Vector2]
|
|
1677
1677
|
# @param camera [Camera2D]
|
|
1678
1678
|
# @return [Vector2]
|
|
@@ -1761,7 +1761,7 @@ module Raylib
|
|
|
1761
1761
|
[:TakeScreenshot, :TakeScreenshot, [:pointer], :void],
|
|
1762
1762
|
|
|
1763
1763
|
# @!method SetConfigFlags(flags)
|
|
1764
|
-
# SetConfigFlags :
|
|
1764
|
+
# SetConfigFlags : Set up init configuration flags (view FLAGS)
|
|
1765
1765
|
# @param flags [unsigned int]
|
|
1766
1766
|
# @return [void]
|
|
1767
1767
|
[:SetConfigFlags, :SetConfigFlags, [:uint], :void],
|
|
@@ -1827,7 +1827,7 @@ module Raylib
|
|
|
1827
1827
|
# @!method SaveFileData(fileName, data, dataSize)
|
|
1828
1828
|
# SaveFileData : Save data to file from byte array (write), returns true on success
|
|
1829
1829
|
# @param fileName [const char *]
|
|
1830
|
-
# @param data [void *]
|
|
1830
|
+
# @param data [const void *]
|
|
1831
1831
|
# @param dataSize [int]
|
|
1832
1832
|
# @return [bool]
|
|
1833
1833
|
[:SaveFileData, :SaveFileData, [:pointer, :pointer, :int], :bool],
|
|
@@ -1884,34 +1884,34 @@ module Raylib
|
|
|
1884
1884
|
[:SetSaveFileTextCallback, :SetSaveFileTextCallback, [:SaveFileTextCallback], :void],
|
|
1885
1885
|
|
|
1886
1886
|
# @!method FileRename(fileName, fileRename)
|
|
1887
|
-
# FileRename : Rename file (if exists)
|
|
1887
|
+
# FileRename : Rename file (if exists), returns 0 on success
|
|
1888
1888
|
# @param fileName [const char *]
|
|
1889
1889
|
# @param fileRename [const char *]
|
|
1890
1890
|
# @return [int]
|
|
1891
1891
|
[:FileRename, :FileRename, [:pointer, :pointer], :int],
|
|
1892
1892
|
|
|
1893
1893
|
# @!method FileRemove(fileName)
|
|
1894
|
-
# FileRemove : Remove file (if exists)
|
|
1894
|
+
# FileRemove : Remove file (if exists), returns 0 on success
|
|
1895
1895
|
# @param fileName [const char *]
|
|
1896
1896
|
# @return [int]
|
|
1897
1897
|
[:FileRemove, :FileRemove, [:pointer], :int],
|
|
1898
1898
|
|
|
1899
1899
|
# @!method FileCopy(srcPath, dstPath)
|
|
1900
|
-
# FileCopy : Copy file from one path to another, dstPath created if it doesn't exist
|
|
1900
|
+
# FileCopy : Copy file from one path to another, dstPath created if it doesn't exist, returns 0 on success
|
|
1901
1901
|
# @param srcPath [const char *]
|
|
1902
1902
|
# @param dstPath [const char *]
|
|
1903
1903
|
# @return [int]
|
|
1904
1904
|
[:FileCopy, :FileCopy, [:pointer, :pointer], :int],
|
|
1905
1905
|
|
|
1906
1906
|
# @!method FileMove(srcPath, dstPath)
|
|
1907
|
-
# FileMove : Move file from one directory to another, dstPath created if it doesn't exist
|
|
1907
|
+
# FileMove : Move file from one directory to another, dstPath created if it doesn't exist, returns 0 on success
|
|
1908
1908
|
# @param srcPath [const char *]
|
|
1909
1909
|
# @param dstPath [const char *]
|
|
1910
1910
|
# @return [int]
|
|
1911
1911
|
[:FileMove, :FileMove, [:pointer, :pointer], :int],
|
|
1912
1912
|
|
|
1913
1913
|
# @!method FileTextReplace(fileName, search, replacement)
|
|
1914
|
-
# FileTextReplace : Replace text in an existing file
|
|
1914
|
+
# FileTextReplace : Replace text in an existing file, returns 0 on success
|
|
1915
1915
|
# @param fileName [const char *]
|
|
1916
1916
|
# @param search [const char *]
|
|
1917
1917
|
# @param replacement [const char *]
|
|
@@ -1919,7 +1919,7 @@ module Raylib
|
|
|
1919
1919
|
[:FileTextReplace, :FileTextReplace, [:pointer, :pointer, :pointer], :int],
|
|
1920
1920
|
|
|
1921
1921
|
# @!method FileTextFindIndex(fileName, search)
|
|
1922
|
-
# FileTextFindIndex : Find text in existing file
|
|
1922
|
+
# FileTextFindIndex : Find text in existing file, returns -1 if index not found or index otherwise
|
|
1923
1923
|
# @param fileName [const char *]
|
|
1924
1924
|
# @param search [const char *]
|
|
1925
1925
|
# @return [int]
|
|
@@ -1932,7 +1932,7 @@ module Raylib
|
|
|
1932
1932
|
[:FileExists, :FileExists, [:pointer], :bool],
|
|
1933
1933
|
|
|
1934
1934
|
# @!method DirectoryExists(dirPath)
|
|
1935
|
-
# DirectoryExists : Check if
|
|
1935
|
+
# DirectoryExists : Check if directory path exists
|
|
1936
1936
|
# @param dirPath [const char *]
|
|
1937
1937
|
# @return [bool]
|
|
1938
1938
|
[:DirectoryExists, :DirectoryExists, [:pointer], :bool],
|
|
@@ -2003,17 +2003,23 @@ module Raylib
|
|
|
2003
2003
|
[:MakeDirectory, :MakeDirectory, [:pointer], :int],
|
|
2004
2004
|
|
|
2005
2005
|
# @!method ChangeDirectory(dirPath)
|
|
2006
|
-
# ChangeDirectory : Change working directory,
|
|
2006
|
+
# ChangeDirectory : Change working directory, returns 0 on success
|
|
2007
2007
|
# @param dirPath [const char *]
|
|
2008
|
-
# @return [
|
|
2009
|
-
[:ChangeDirectory, :ChangeDirectory, [:pointer], :
|
|
2008
|
+
# @return [int]
|
|
2009
|
+
[:ChangeDirectory, :ChangeDirectory, [:pointer], :int],
|
|
2010
2010
|
|
|
2011
2011
|
# @!method IsPathFile(path)
|
|
2012
|
-
# IsPathFile : Check if
|
|
2012
|
+
# IsPathFile : Check if given path points to a file
|
|
2013
2013
|
# @param path [const char *]
|
|
2014
2014
|
# @return [bool]
|
|
2015
2015
|
[:IsPathFile, :IsPathFile, [:pointer], :bool],
|
|
2016
2016
|
|
|
2017
|
+
# @!method IsPathDirectory(path)
|
|
2018
|
+
# IsPathDirectory : Check if given path points to a directory
|
|
2019
|
+
# @param path [const char *]
|
|
2020
|
+
# @return [bool]
|
|
2021
|
+
[:IsPathDirectory, :IsPathDirectory, [:pointer], :bool],
|
|
2022
|
+
|
|
2017
2023
|
# @!method IsFileNameValid(fileName)
|
|
2018
2024
|
# IsFileNameValid : Check if fileName is valid for the platform/OS
|
|
2019
2025
|
# @param fileName [const char *]
|
|
@@ -2027,7 +2033,7 @@ module Raylib
|
|
|
2027
2033
|
[:LoadDirectoryFiles, :LoadDirectoryFiles, [:pointer], FilePathList.by_value],
|
|
2028
2034
|
|
|
2029
2035
|
# @!method LoadDirectoryFilesEx(basePath, filter, scanSubdirs)
|
|
2030
|
-
# LoadDirectoryFilesEx : Load directory filepaths with extension filtering and subdir scan; some filters available:
|
|
2036
|
+
# LoadDirectoryFilesEx : Load directory filepaths with extension filtering and subdir scan; some filters available: '*.*','FILES*','DIRS*'
|
|
2031
2037
|
# @param basePath [const char *]
|
|
2032
2038
|
# @param filter [const char *]
|
|
2033
2039
|
# @param scanSubdirs [bool]
|
|
@@ -2041,7 +2047,7 @@ module Raylib
|
|
|
2041
2047
|
[:UnloadDirectoryFiles, :UnloadDirectoryFiles, [FilePathList.by_value], :void],
|
|
2042
2048
|
|
|
2043
2049
|
# @!method IsFileDropped()
|
|
2044
|
-
# IsFileDropped : Check if
|
|
2050
|
+
# IsFileDropped : Check if file has been dropped into window
|
|
2045
2051
|
# @return [bool]
|
|
2046
2052
|
[:IsFileDropped, :IsFileDropped, [], :bool],
|
|
2047
2053
|
|
|
@@ -2103,28 +2109,28 @@ module Raylib
|
|
|
2103
2109
|
|
|
2104
2110
|
# @!method ComputeCRC32(data, dataSize)
|
|
2105
2111
|
# ComputeCRC32 : Compute CRC32 hash code
|
|
2106
|
-
# @param data [unsigned char *]
|
|
2112
|
+
# @param data [const unsigned char *]
|
|
2107
2113
|
# @param dataSize [int]
|
|
2108
2114
|
# @return [unsigned int]
|
|
2109
2115
|
[:ComputeCRC32, :ComputeCRC32, [:pointer, :int], :uint],
|
|
2110
2116
|
|
|
2111
2117
|
# @!method ComputeMD5(data, dataSize)
|
|
2112
2118
|
# ComputeMD5 : Compute MD5 hash code, returns static int[4] (16 bytes)
|
|
2113
|
-
# @param data [unsigned char *]
|
|
2119
|
+
# @param data [const unsigned char *]
|
|
2114
2120
|
# @param dataSize [int]
|
|
2115
2121
|
# @return [unsigned int *]
|
|
2116
2122
|
[:ComputeMD5, :ComputeMD5, [:pointer, :int], :pointer],
|
|
2117
2123
|
|
|
2118
2124
|
# @!method ComputeSHA1(data, dataSize)
|
|
2119
2125
|
# ComputeSHA1 : Compute SHA1 hash code, returns static int[5] (20 bytes)
|
|
2120
|
-
# @param data [unsigned char *]
|
|
2126
|
+
# @param data [const unsigned char *]
|
|
2121
2127
|
# @param dataSize [int]
|
|
2122
2128
|
# @return [unsigned int *]
|
|
2123
2129
|
[:ComputeSHA1, :ComputeSHA1, [:pointer, :int], :pointer],
|
|
2124
2130
|
|
|
2125
2131
|
# @!method ComputeSHA256(data, dataSize)
|
|
2126
2132
|
# ComputeSHA256 : Compute SHA256 hash code, returns static int[8] (32 bytes)
|
|
2127
|
-
# @param data [unsigned char *]
|
|
2133
|
+
# @param data [const unsigned char *]
|
|
2128
2134
|
# @param dataSize [int]
|
|
2129
2135
|
# @return [unsigned int *]
|
|
2130
2136
|
[:ComputeSHA256, :ComputeSHA256, [:pointer, :int], :pointer],
|
|
@@ -2177,31 +2183,31 @@ module Raylib
|
|
|
2177
2183
|
[:PlayAutomationEvent, :PlayAutomationEvent, [AutomationEvent.by_value], :void],
|
|
2178
2184
|
|
|
2179
2185
|
# @!method IsKeyPressed(key)
|
|
2180
|
-
# IsKeyPressed : Check if
|
|
2186
|
+
# IsKeyPressed : Check if key has been pressed once
|
|
2181
2187
|
# @param key [int]
|
|
2182
2188
|
# @return [bool]
|
|
2183
2189
|
[:IsKeyPressed, :IsKeyPressed, [:int], :bool],
|
|
2184
2190
|
|
|
2185
2191
|
# @!method IsKeyPressedRepeat(key)
|
|
2186
|
-
# IsKeyPressedRepeat : Check if
|
|
2192
|
+
# IsKeyPressedRepeat : Check if key has been pressed again
|
|
2187
2193
|
# @param key [int]
|
|
2188
2194
|
# @return [bool]
|
|
2189
2195
|
[:IsKeyPressedRepeat, :IsKeyPressedRepeat, [:int], :bool],
|
|
2190
2196
|
|
|
2191
2197
|
# @!method IsKeyDown(key)
|
|
2192
|
-
# IsKeyDown : Check if
|
|
2198
|
+
# IsKeyDown : Check if key is being pressed
|
|
2193
2199
|
# @param key [int]
|
|
2194
2200
|
# @return [bool]
|
|
2195
2201
|
[:IsKeyDown, :IsKeyDown, [:int], :bool],
|
|
2196
2202
|
|
|
2197
2203
|
# @!method IsKeyReleased(key)
|
|
2198
|
-
# IsKeyReleased : Check if
|
|
2204
|
+
# IsKeyReleased : Check if key has been released once
|
|
2199
2205
|
# @param key [int]
|
|
2200
2206
|
# @return [bool]
|
|
2201
2207
|
[:IsKeyReleased, :IsKeyReleased, [:int], :bool],
|
|
2202
2208
|
|
|
2203
2209
|
# @!method IsKeyUp(key)
|
|
2204
|
-
# IsKeyUp : Check if
|
|
2210
|
+
# IsKeyUp : Check if key is NOT being pressed
|
|
2205
2211
|
# @param key [int]
|
|
2206
2212
|
# @return [bool]
|
|
2207
2213
|
[:IsKeyUp, :IsKeyUp, [:int], :bool],
|
|
@@ -2229,7 +2235,7 @@ module Raylib
|
|
|
2229
2235
|
[:SetExitKey, :SetExitKey, [:int], :void],
|
|
2230
2236
|
|
|
2231
2237
|
# @!method IsGamepadAvailable(gamepad)
|
|
2232
|
-
# IsGamepadAvailable : Check if
|
|
2238
|
+
# IsGamepadAvailable : Check if gamepad is available
|
|
2233
2239
|
# @param gamepad [int]
|
|
2234
2240
|
# @return [bool]
|
|
2235
2241
|
[:IsGamepadAvailable, :IsGamepadAvailable, [:int], :bool],
|
|
@@ -2241,28 +2247,28 @@ module Raylib
|
|
|
2241
2247
|
[:GetGamepadName, :GetGamepadName, [:int], :pointer],
|
|
2242
2248
|
|
|
2243
2249
|
# @!method IsGamepadButtonPressed(gamepad, button)
|
|
2244
|
-
# IsGamepadButtonPressed : Check if
|
|
2250
|
+
# IsGamepadButtonPressed : Check if gamepad button has been pressed once
|
|
2245
2251
|
# @param gamepad [int]
|
|
2246
2252
|
# @param button [int]
|
|
2247
2253
|
# @return [bool]
|
|
2248
2254
|
[:IsGamepadButtonPressed, :IsGamepadButtonPressed, [:int, :int], :bool],
|
|
2249
2255
|
|
|
2250
2256
|
# @!method IsGamepadButtonDown(gamepad, button)
|
|
2251
|
-
# IsGamepadButtonDown : Check if
|
|
2257
|
+
# IsGamepadButtonDown : Check if gamepad button is being pressed
|
|
2252
2258
|
# @param gamepad [int]
|
|
2253
2259
|
# @param button [int]
|
|
2254
2260
|
# @return [bool]
|
|
2255
2261
|
[:IsGamepadButtonDown, :IsGamepadButtonDown, [:int, :int], :bool],
|
|
2256
2262
|
|
|
2257
2263
|
# @!method IsGamepadButtonReleased(gamepad, button)
|
|
2258
|
-
# IsGamepadButtonReleased : Check if
|
|
2264
|
+
# IsGamepadButtonReleased : Check if gamepad button has been released once
|
|
2259
2265
|
# @param gamepad [int]
|
|
2260
2266
|
# @param button [int]
|
|
2261
2267
|
# @return [bool]
|
|
2262
2268
|
[:IsGamepadButtonReleased, :IsGamepadButtonReleased, [:int, :int], :bool],
|
|
2263
2269
|
|
|
2264
2270
|
# @!method IsGamepadButtonUp(gamepad, button)
|
|
2265
|
-
# IsGamepadButtonUp : Check if
|
|
2271
|
+
# IsGamepadButtonUp : Check if gamepad button is NOT being pressed
|
|
2266
2272
|
# @param gamepad [int]
|
|
2267
2273
|
# @param button [int]
|
|
2268
2274
|
# @return [bool]
|
|
@@ -2302,25 +2308,25 @@ module Raylib
|
|
|
2302
2308
|
[:SetGamepadVibration, :SetGamepadVibration, [:int, :float, :float, :float], :void],
|
|
2303
2309
|
|
|
2304
2310
|
# @!method IsMouseButtonPressed(button)
|
|
2305
|
-
# IsMouseButtonPressed : Check if
|
|
2311
|
+
# IsMouseButtonPressed : Check if mouse button has been pressed once
|
|
2306
2312
|
# @param button [int]
|
|
2307
2313
|
# @return [bool]
|
|
2308
2314
|
[:IsMouseButtonPressed, :IsMouseButtonPressed, [:int], :bool],
|
|
2309
2315
|
|
|
2310
2316
|
# @!method IsMouseButtonDown(button)
|
|
2311
|
-
# IsMouseButtonDown : Check if
|
|
2317
|
+
# IsMouseButtonDown : Check if mouse button is being pressed
|
|
2312
2318
|
# @param button [int]
|
|
2313
2319
|
# @return [bool]
|
|
2314
2320
|
[:IsMouseButtonDown, :IsMouseButtonDown, [:int], :bool],
|
|
2315
2321
|
|
|
2316
2322
|
# @!method IsMouseButtonReleased(button)
|
|
2317
|
-
# IsMouseButtonReleased : Check if
|
|
2323
|
+
# IsMouseButtonReleased : Check if mouse button has been released once
|
|
2318
2324
|
# @param button [int]
|
|
2319
2325
|
# @return [bool]
|
|
2320
2326
|
[:IsMouseButtonReleased, :IsMouseButtonReleased, [:int], :bool],
|
|
2321
2327
|
|
|
2322
2328
|
# @!method IsMouseButtonUp(button)
|
|
2323
|
-
# IsMouseButtonUp : Check if
|
|
2329
|
+
# IsMouseButtonUp : Check if mouse button is NOT being pressed
|
|
2324
2330
|
# @param button [int]
|
|
2325
2331
|
# @return [bool]
|
|
2326
2332
|
[:IsMouseButtonUp, :IsMouseButtonUp, [:int], :bool],
|
|
@@ -2416,7 +2422,7 @@ module Raylib
|
|
|
2416
2422
|
[:SetGesturesEnabled, :SetGesturesEnabled, [:uint], :void],
|
|
2417
2423
|
|
|
2418
2424
|
# @!method IsGestureDetected(gesture)
|
|
2419
|
-
# IsGestureDetected : Check if
|
|
2425
|
+
# IsGestureDetected : Check if gesture has been detected
|
|
2420
2426
|
# @param gesture [unsigned int]
|
|
2421
2427
|
# @return [bool]
|
|
2422
2428
|
[:IsGestureDetected, :IsGestureDetected, [:uint], :bool],
|
|
@@ -2467,10 +2473,10 @@ module Raylib
|
|
|
2467
2473
|
# @return [void]
|
|
2468
2474
|
[:UpdateCameraPro, :UpdateCameraPro, [:pointer, Vector3.by_value, Vector3.by_value, :float], :void],
|
|
2469
2475
|
|
|
2470
|
-
# @!method SetShapesTexture(texture,
|
|
2476
|
+
# @!method SetShapesTexture(texture, rec)
|
|
2471
2477
|
# SetShapesTexture : Set texture and rectangle to be used on shapes drawing
|
|
2472
2478
|
# @param texture [Texture2D]
|
|
2473
|
-
# @param
|
|
2479
|
+
# @param rec [Rectangle]
|
|
2474
2480
|
# @return [void]
|
|
2475
2481
|
[:SetShapesTexture, :SetShapesTexture, [Texture2D.by_value, Rectangle.by_value], :void],
|
|
2476
2482
|
|
|
@@ -2553,132 +2559,50 @@ module Raylib
|
|
|
2553
2559
|
# @return [void]
|
|
2554
2560
|
[:DrawLineDashed, :DrawLineDashed, [Vector2.by_value, Vector2.by_value, :int, :int, Color.by_value], :void],
|
|
2555
2561
|
|
|
2556
|
-
# @!method
|
|
2557
|
-
#
|
|
2558
|
-
# @param
|
|
2559
|
-
# @param
|
|
2560
|
-
# @param
|
|
2561
|
-
# @param color [Color]
|
|
2562
|
-
# @return [void]
|
|
2563
|
-
[:DrawCircle, :DrawCircle, [:int, :int, :float, Color.by_value], :void],
|
|
2564
|
-
|
|
2565
|
-
# @!method DrawCircleV(center, radius, color)
|
|
2566
|
-
# DrawCircleV : Draw a color-filled circle (Vector version)
|
|
2567
|
-
# @param center [Vector2]
|
|
2568
|
-
# @param radius [float]
|
|
2569
|
-
# @param color [Color]
|
|
2570
|
-
# @return [void]
|
|
2571
|
-
[:DrawCircleV, :DrawCircleV, [Vector2.by_value, :float, Color.by_value], :void],
|
|
2572
|
-
|
|
2573
|
-
# @!method DrawCircleGradient(center, radius, inner, outer)
|
|
2574
|
-
# DrawCircleGradient : Draw a gradient-filled circle
|
|
2575
|
-
# @param center [Vector2]
|
|
2576
|
-
# @param radius [float]
|
|
2577
|
-
# @param inner [Color]
|
|
2578
|
-
# @param outer [Color]
|
|
2579
|
-
# @return [void]
|
|
2580
|
-
[:DrawCircleGradient, :DrawCircleGradient, [Vector2.by_value, :float, Color.by_value, Color.by_value], :void],
|
|
2581
|
-
|
|
2582
|
-
# @!method DrawCircleSector(center, radius, startAngle, endAngle, segments, color)
|
|
2583
|
-
# DrawCircleSector : Draw a piece of a circle
|
|
2584
|
-
# @param center [Vector2]
|
|
2585
|
-
# @param radius [float]
|
|
2586
|
-
# @param startAngle [float]
|
|
2587
|
-
# @param endAngle [float]
|
|
2588
|
-
# @param segments [int]
|
|
2589
|
-
# @param color [Color]
|
|
2590
|
-
# @return [void]
|
|
2591
|
-
[:DrawCircleSector, :DrawCircleSector, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
|
|
2592
|
-
|
|
2593
|
-
# @!method DrawCircleSectorLines(center, radius, startAngle, endAngle, segments, color)
|
|
2594
|
-
# DrawCircleSectorLines : Draw circle sector outline
|
|
2595
|
-
# @param center [Vector2]
|
|
2596
|
-
# @param radius [float]
|
|
2597
|
-
# @param startAngle [float]
|
|
2598
|
-
# @param endAngle [float]
|
|
2599
|
-
# @param segments [int]
|
|
2600
|
-
# @param color [Color]
|
|
2601
|
-
# @return [void]
|
|
2602
|
-
[:DrawCircleSectorLines, :DrawCircleSectorLines, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
|
|
2603
|
-
|
|
2604
|
-
# @!method DrawCircleLines(centerX, centerY, radius, color)
|
|
2605
|
-
# DrawCircleLines : Draw circle outline
|
|
2606
|
-
# @param centerX [int]
|
|
2607
|
-
# @param centerY [int]
|
|
2608
|
-
# @param radius [float]
|
|
2609
|
-
# @param color [Color]
|
|
2610
|
-
# @return [void]
|
|
2611
|
-
[:DrawCircleLines, :DrawCircleLines, [:int, :int, :float, Color.by_value], :void],
|
|
2612
|
-
|
|
2613
|
-
# @!method DrawCircleLinesV(center, radius, color)
|
|
2614
|
-
# DrawCircleLinesV : Draw circle outline (Vector version)
|
|
2615
|
-
# @param center [Vector2]
|
|
2616
|
-
# @param radius [float]
|
|
2617
|
-
# @param color [Color]
|
|
2618
|
-
# @return [void]
|
|
2619
|
-
[:DrawCircleLinesV, :DrawCircleLinesV, [Vector2.by_value, :float, Color.by_value], :void],
|
|
2620
|
-
|
|
2621
|
-
# @!method DrawEllipse(centerX, centerY, radiusH, radiusV, color)
|
|
2622
|
-
# DrawEllipse : Draw ellipse
|
|
2623
|
-
# @param centerX [int]
|
|
2624
|
-
# @param centerY [int]
|
|
2625
|
-
# @param radiusH [float]
|
|
2626
|
-
# @param radiusV [float]
|
|
2627
|
-
# @param color [Color]
|
|
2628
|
-
# @return [void]
|
|
2629
|
-
[:DrawEllipse, :DrawEllipse, [:int, :int, :float, :float, Color.by_value], :void],
|
|
2630
|
-
|
|
2631
|
-
# @!method DrawEllipseV(center, radiusH, radiusV, color)
|
|
2632
|
-
# DrawEllipseV : Draw ellipse (Vector version)
|
|
2633
|
-
# @param center [Vector2]
|
|
2634
|
-
# @param radiusH [float]
|
|
2635
|
-
# @param radiusV [float]
|
|
2562
|
+
# @!method DrawTriangle(v1, v2, v3, color)
|
|
2563
|
+
# DrawTriangle : Draw a color-filled triangle, counter-clockwise vertex order
|
|
2564
|
+
# @param v1 [Vector2]
|
|
2565
|
+
# @param v2 [Vector2]
|
|
2566
|
+
# @param v3 [Vector2]
|
|
2636
2567
|
# @param color [Color]
|
|
2637
2568
|
# @return [void]
|
|
2638
|
-
[:
|
|
2569
|
+
[:DrawTriangle, :DrawTriangle, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
|
2639
2570
|
|
|
2640
|
-
# @!method
|
|
2641
|
-
#
|
|
2642
|
-
# @param
|
|
2643
|
-
# @param
|
|
2644
|
-
# @param
|
|
2645
|
-
# @param
|
|
2646
|
-
# @param
|
|
2571
|
+
# @!method DrawTriangleGradient(v1, v2, v3, c1, c2, c3)
|
|
2572
|
+
# DrawTriangleGradient : Draw triangle with interpolated colors, counter-clockwise vertex/color order
|
|
2573
|
+
# @param v1 [Vector2]
|
|
2574
|
+
# @param v2 [Vector2]
|
|
2575
|
+
# @param v3 [Vector2]
|
|
2576
|
+
# @param c1 [Color]
|
|
2577
|
+
# @param c2 [Color]
|
|
2578
|
+
# @param c3 [Color]
|
|
2647
2579
|
# @return [void]
|
|
2648
|
-
[:
|
|
2580
|
+
[:DrawTriangleGradient, :DrawTriangleGradient, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
|
|
2649
2581
|
|
|
2650
|
-
# @!method
|
|
2651
|
-
#
|
|
2652
|
-
# @param
|
|
2653
|
-
# @param
|
|
2654
|
-
# @param
|
|
2582
|
+
# @!method DrawTriangleLines(v1, v2, v3, color)
|
|
2583
|
+
# DrawTriangleLines : Draw triangle outline, counter-clockwise vertex order
|
|
2584
|
+
# @param v1 [Vector2]
|
|
2585
|
+
# @param v2 [Vector2]
|
|
2586
|
+
# @param v3 [Vector2]
|
|
2655
2587
|
# @param color [Color]
|
|
2656
2588
|
# @return [void]
|
|
2657
|
-
[:
|
|
2589
|
+
[:DrawTriangleLines, :DrawTriangleLines, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
|
2658
2590
|
|
|
2659
|
-
# @!method
|
|
2660
|
-
#
|
|
2661
|
-
# @param
|
|
2662
|
-
# @param
|
|
2663
|
-
# @param outerRadius [float]
|
|
2664
|
-
# @param startAngle [float]
|
|
2665
|
-
# @param endAngle [float]
|
|
2666
|
-
# @param segments [int]
|
|
2591
|
+
# @!method DrawTriangleFan(points, pointCount, color)
|
|
2592
|
+
# DrawTriangleFan : Draw a triangle fan defined by points (first vertex is the center)
|
|
2593
|
+
# @param points [const Vector2 *]
|
|
2594
|
+
# @param pointCount [int]
|
|
2667
2595
|
# @param color [Color]
|
|
2668
2596
|
# @return [void]
|
|
2669
|
-
[:
|
|
2597
|
+
[:DrawTriangleFan, :DrawTriangleFan, [:pointer, :int, Color.by_value], :void],
|
|
2670
2598
|
|
|
2671
|
-
# @!method
|
|
2672
|
-
#
|
|
2673
|
-
# @param
|
|
2674
|
-
# @param
|
|
2675
|
-
# @param outerRadius [float]
|
|
2676
|
-
# @param startAngle [float]
|
|
2677
|
-
# @param endAngle [float]
|
|
2678
|
-
# @param segments [int]
|
|
2599
|
+
# @!method DrawTriangleStrip(points, pointCount, color)
|
|
2600
|
+
# DrawTriangleStrip : Draw a triangle strip defined by points
|
|
2601
|
+
# @param points [const Vector2 *]
|
|
2602
|
+
# @param pointCount [int]
|
|
2679
2603
|
# @param color [Color]
|
|
2680
2604
|
# @return [void]
|
|
2681
|
-
[:
|
|
2605
|
+
[:DrawTriangleStrip, :DrawTriangleStrip, [:pointer, :int, Color.by_value], :void],
|
|
2682
2606
|
|
|
2683
2607
|
# @!method DrawRectangle(posX, posY, width, height, color)
|
|
2684
2608
|
# DrawRectangle : Draw a color-filled rectangle
|
|
@@ -2736,13 +2660,13 @@ module Raylib
|
|
|
2736
2660
|
# @return [void]
|
|
2737
2661
|
[:DrawRectangleGradientH, :DrawRectangleGradientH, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void],
|
|
2738
2662
|
|
|
2739
|
-
# @!method DrawRectangleGradientEx(rec,
|
|
2740
|
-
# DrawRectangleGradientEx : Draw a gradient-filled rectangle with custom vertex colors
|
|
2663
|
+
# @!method DrawRectangleGradientEx(rec, col1, col2, col3, col4)
|
|
2664
|
+
# DrawRectangleGradientEx : Draw a gradient-filled rectangle with custom vertex colors, counter-clockwise color order
|
|
2741
2665
|
# @param rec [Rectangle]
|
|
2742
|
-
# @param
|
|
2743
|
-
# @param
|
|
2744
|
-
# @param
|
|
2745
|
-
# @param
|
|
2666
|
+
# @param col1 [Color]
|
|
2667
|
+
# @param col2 [Color]
|
|
2668
|
+
# @param col3 [Color]
|
|
2669
|
+
# @param col4 [Color]
|
|
2746
2670
|
# @return [void]
|
|
2747
2671
|
[:DrawRectangleGradientEx, :DrawRectangleGradientEx, [Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
|
|
2748
2672
|
|
|
@@ -2756,10 +2680,10 @@ module Raylib
|
|
|
2756
2680
|
# @return [void]
|
|
2757
2681
|
[:DrawRectangleLines, :DrawRectangleLines, [:int, :int, :int, :int, Color.by_value], :void],
|
|
2758
2682
|
|
|
2759
|
-
# @!method DrawRectangleLinesEx(rec,
|
|
2760
|
-
# DrawRectangleLinesEx : Draw rectangle outline with
|
|
2683
|
+
# @!method DrawRectangleLinesEx(rec, thick, color)
|
|
2684
|
+
# DrawRectangleLinesEx : Draw rectangle outline with line thickness
|
|
2761
2685
|
# @param rec [Rectangle]
|
|
2762
|
-
# @param
|
|
2686
|
+
# @param thick [float]
|
|
2763
2687
|
# @param color [Color]
|
|
2764
2688
|
# @return [void]
|
|
2765
2689
|
[:DrawRectangleLinesEx, :DrawRectangleLinesEx, [Rectangle.by_value, :float, Color.by_value], :void],
|
|
@@ -2782,52 +2706,18 @@ module Raylib
|
|
|
2782
2706
|
# @return [void]
|
|
2783
2707
|
[:DrawRectangleRoundedLines, :DrawRectangleRoundedLines, [Rectangle.by_value, :float, :int, Color.by_value], :void],
|
|
2784
2708
|
|
|
2785
|
-
# @!method DrawRectangleRoundedLinesEx(rec, roundness, segments,
|
|
2786
|
-
# DrawRectangleRoundedLinesEx : Draw rectangle with rounded edges outline
|
|
2709
|
+
# @!method DrawRectangleRoundedLinesEx(rec, roundness, segments, thick, color)
|
|
2710
|
+
# DrawRectangleRoundedLinesEx : Draw rectangle lines with rounded edges outline and line thickness
|
|
2787
2711
|
# @param rec [Rectangle]
|
|
2788
2712
|
# @param roundness [float]
|
|
2789
2713
|
# @param segments [int]
|
|
2790
|
-
# @param
|
|
2714
|
+
# @param thick [float]
|
|
2791
2715
|
# @param color [Color]
|
|
2792
2716
|
# @return [void]
|
|
2793
2717
|
[:DrawRectangleRoundedLinesEx, :DrawRectangleRoundedLinesEx, [Rectangle.by_value, :float, :int, :float, Color.by_value], :void],
|
|
2794
2718
|
|
|
2795
|
-
# @!method DrawTriangle(v1, v2, v3, color)
|
|
2796
|
-
# DrawTriangle : Draw a color-filled triangle (vertex in counter-clockwise order!)
|
|
2797
|
-
# @param v1 [Vector2]
|
|
2798
|
-
# @param v2 [Vector2]
|
|
2799
|
-
# @param v3 [Vector2]
|
|
2800
|
-
# @param color [Color]
|
|
2801
|
-
# @return [void]
|
|
2802
|
-
[:DrawTriangle, :DrawTriangle, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
|
2803
|
-
|
|
2804
|
-
# @!method DrawTriangleLines(v1, v2, v3, color)
|
|
2805
|
-
# DrawTriangleLines : Draw triangle outline (vertex in counter-clockwise order!)
|
|
2806
|
-
# @param v1 [Vector2]
|
|
2807
|
-
# @param v2 [Vector2]
|
|
2808
|
-
# @param v3 [Vector2]
|
|
2809
|
-
# @param color [Color]
|
|
2810
|
-
# @return [void]
|
|
2811
|
-
[:DrawTriangleLines, :DrawTriangleLines, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
|
2812
|
-
|
|
2813
|
-
# @!method DrawTriangleFan(points, pointCount, color)
|
|
2814
|
-
# DrawTriangleFan : Draw a triangle fan defined by points (first vertex is the center)
|
|
2815
|
-
# @param points [const Vector2 *]
|
|
2816
|
-
# @param pointCount [int]
|
|
2817
|
-
# @param color [Color]
|
|
2818
|
-
# @return [void]
|
|
2819
|
-
[:DrawTriangleFan, :DrawTriangleFan, [:pointer, :int, Color.by_value], :void],
|
|
2820
|
-
|
|
2821
|
-
# @!method DrawTriangleStrip(points, pointCount, color)
|
|
2822
|
-
# DrawTriangleStrip : Draw a triangle strip defined by points
|
|
2823
|
-
# @param points [const Vector2 *]
|
|
2824
|
-
# @param pointCount [int]
|
|
2825
|
-
# @param color [Color]
|
|
2826
|
-
# @return [void]
|
|
2827
|
-
[:DrawTriangleStrip, :DrawTriangleStrip, [:pointer, :int, Color.by_value], :void],
|
|
2828
|
-
|
|
2829
2719
|
# @!method DrawPoly(center, sides, radius, rotation, color)
|
|
2830
|
-
# DrawPoly : Draw a
|
|
2720
|
+
# DrawPoly : Draw a polygon of n sides
|
|
2831
2721
|
# @param center [Vector2]
|
|
2832
2722
|
# @param sides [int]
|
|
2833
2723
|
# @param radius [float]
|
|
@@ -2846,17 +2736,153 @@ module Raylib
|
|
|
2846
2736
|
# @return [void]
|
|
2847
2737
|
[:DrawPolyLines, :DrawPolyLines, [Vector2.by_value, :int, :float, :float, Color.by_value], :void],
|
|
2848
2738
|
|
|
2849
|
-
# @!method DrawPolyLinesEx(center, sides, radius, rotation,
|
|
2850
|
-
# DrawPolyLinesEx : Draw a polygon outline of n sides with
|
|
2739
|
+
# @!method DrawPolyLinesEx(center, sides, radius, rotation, thick, color)
|
|
2740
|
+
# DrawPolyLinesEx : Draw a polygon outline of n sides with line thickness
|
|
2851
2741
|
# @param center [Vector2]
|
|
2852
2742
|
# @param sides [int]
|
|
2853
2743
|
# @param radius [float]
|
|
2854
2744
|
# @param rotation [float]
|
|
2855
|
-
# @param
|
|
2745
|
+
# @param thick [float]
|
|
2856
2746
|
# @param color [Color]
|
|
2857
2747
|
# @return [void]
|
|
2858
2748
|
[:DrawPolyLinesEx, :DrawPolyLinesEx, [Vector2.by_value, :int, :float, :float, :float, Color.by_value], :void],
|
|
2859
2749
|
|
|
2750
|
+
# @!method DrawCircle(centerX, centerY, radius, color)
|
|
2751
|
+
# DrawCircle : Draw a color-filled circle
|
|
2752
|
+
# @param centerX [int]
|
|
2753
|
+
# @param centerY [int]
|
|
2754
|
+
# @param radius [float]
|
|
2755
|
+
# @param color [Color]
|
|
2756
|
+
# @return [void]
|
|
2757
|
+
[:DrawCircle, :DrawCircle, [:int, :int, :float, Color.by_value], :void],
|
|
2758
|
+
|
|
2759
|
+
# @!method DrawCircleV(center, radius, color)
|
|
2760
|
+
# DrawCircleV : Draw a color-filled circle (Vector version)
|
|
2761
|
+
# @param center [Vector2]
|
|
2762
|
+
# @param radius [float]
|
|
2763
|
+
# @param color [Color]
|
|
2764
|
+
# @return [void]
|
|
2765
|
+
[:DrawCircleV, :DrawCircleV, [Vector2.by_value, :float, Color.by_value], :void],
|
|
2766
|
+
|
|
2767
|
+
# @!method DrawCircleGradient(center, radius, inner, outer)
|
|
2768
|
+
# DrawCircleGradient : Draw a gradient-filled circle
|
|
2769
|
+
# @param center [Vector2]
|
|
2770
|
+
# @param radius [float]
|
|
2771
|
+
# @param inner [Color]
|
|
2772
|
+
# @param outer [Color]
|
|
2773
|
+
# @return [void]
|
|
2774
|
+
[:DrawCircleGradient, :DrawCircleGradient, [Vector2.by_value, :float, Color.by_value, Color.by_value], :void],
|
|
2775
|
+
|
|
2776
|
+
# @!method DrawCircleSector(center, radius, startAngle, endAngle, segments, color)
|
|
2777
|
+
# DrawCircleSector : Draw a piece of a circle
|
|
2778
|
+
# @param center [Vector2]
|
|
2779
|
+
# @param radius [float]
|
|
2780
|
+
# @param startAngle [float]
|
|
2781
|
+
# @param endAngle [float]
|
|
2782
|
+
# @param segments [int]
|
|
2783
|
+
# @param color [Color]
|
|
2784
|
+
# @return [void]
|
|
2785
|
+
[:DrawCircleSector, :DrawCircleSector, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
|
|
2786
|
+
|
|
2787
|
+
# @!method DrawCircleSectorLines(center, radius, startAngle, endAngle, segments, color)
|
|
2788
|
+
# DrawCircleSectorLines : Draw circle sector outline
|
|
2789
|
+
# @param center [Vector2]
|
|
2790
|
+
# @param radius [float]
|
|
2791
|
+
# @param startAngle [float]
|
|
2792
|
+
# @param endAngle [float]
|
|
2793
|
+
# @param segments [int]
|
|
2794
|
+
# @param color [Color]
|
|
2795
|
+
# @return [void]
|
|
2796
|
+
[:DrawCircleSectorLines, :DrawCircleSectorLines, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
|
|
2797
|
+
|
|
2798
|
+
# @!method DrawCircleLines(centerX, centerY, radius, color)
|
|
2799
|
+
# DrawCircleLines : Draw circle outline
|
|
2800
|
+
# @param centerX [int]
|
|
2801
|
+
# @param centerY [int]
|
|
2802
|
+
# @param radius [float]
|
|
2803
|
+
# @param color [Color]
|
|
2804
|
+
# @return [void]
|
|
2805
|
+
[:DrawCircleLines, :DrawCircleLines, [:int, :int, :float, Color.by_value], :void],
|
|
2806
|
+
|
|
2807
|
+
# @!method DrawCircleLinesV(center, radius, color)
|
|
2808
|
+
# DrawCircleLinesV : Draw circle outline (Vector version)
|
|
2809
|
+
# @param center [Vector2]
|
|
2810
|
+
# @param radius [float]
|
|
2811
|
+
# @param color [Color]
|
|
2812
|
+
# @return [void]
|
|
2813
|
+
[:DrawCircleLinesV, :DrawCircleLinesV, [Vector2.by_value, :float, Color.by_value], :void],
|
|
2814
|
+
|
|
2815
|
+
# @!method DrawCircleLinesEx(center, radius, thick, color)
|
|
2816
|
+
# DrawCircleLinesEx : Draw circle outline with line thickness
|
|
2817
|
+
# @param center [Vector2]
|
|
2818
|
+
# @param radius [float]
|
|
2819
|
+
# @param thick [float]
|
|
2820
|
+
# @param color [Color]
|
|
2821
|
+
# @return [void]
|
|
2822
|
+
[:DrawCircleLinesEx, :DrawCircleLinesEx, [Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
2823
|
+
|
|
2824
|
+
# @!method DrawEllipse(centerX, centerY, radiusH, radiusV, color)
|
|
2825
|
+
# DrawEllipse : Draw ellipse
|
|
2826
|
+
# @param centerX [int]
|
|
2827
|
+
# @param centerY [int]
|
|
2828
|
+
# @param radiusH [float]
|
|
2829
|
+
# @param radiusV [float]
|
|
2830
|
+
# @param color [Color]
|
|
2831
|
+
# @return [void]
|
|
2832
|
+
[:DrawEllipse, :DrawEllipse, [:int, :int, :float, :float, Color.by_value], :void],
|
|
2833
|
+
|
|
2834
|
+
# @!method DrawEllipseV(center, radiusH, radiusV, color)
|
|
2835
|
+
# DrawEllipseV : Draw ellipse (Vector version)
|
|
2836
|
+
# @param center [Vector2]
|
|
2837
|
+
# @param radiusH [float]
|
|
2838
|
+
# @param radiusV [float]
|
|
2839
|
+
# @param color [Color]
|
|
2840
|
+
# @return [void]
|
|
2841
|
+
[:DrawEllipseV, :DrawEllipseV, [Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
2842
|
+
|
|
2843
|
+
# @!method DrawEllipseLines(centerX, centerY, radiusH, radiusV, color)
|
|
2844
|
+
# DrawEllipseLines : Draw ellipse outline
|
|
2845
|
+
# @param centerX [int]
|
|
2846
|
+
# @param centerY [int]
|
|
2847
|
+
# @param radiusH [float]
|
|
2848
|
+
# @param radiusV [float]
|
|
2849
|
+
# @param color [Color]
|
|
2850
|
+
# @return [void]
|
|
2851
|
+
[:DrawEllipseLines, :DrawEllipseLines, [:int, :int, :float, :float, Color.by_value], :void],
|
|
2852
|
+
|
|
2853
|
+
# @!method DrawEllipseLinesV(center, radiusH, radiusV, color)
|
|
2854
|
+
# DrawEllipseLinesV : Draw ellipse outline (Vector version)
|
|
2855
|
+
# @param center [Vector2]
|
|
2856
|
+
# @param radiusH [float]
|
|
2857
|
+
# @param radiusV [float]
|
|
2858
|
+
# @param color [Color]
|
|
2859
|
+
# @return [void]
|
|
2860
|
+
[:DrawEllipseLinesV, :DrawEllipseLinesV, [Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
2861
|
+
|
|
2862
|
+
# @!method DrawRing(center, innerRadius, outerRadius, startAngle, endAngle, segments, color)
|
|
2863
|
+
# DrawRing : Draw ring
|
|
2864
|
+
# @param center [Vector2]
|
|
2865
|
+
# @param innerRadius [float]
|
|
2866
|
+
# @param outerRadius [float]
|
|
2867
|
+
# @param startAngle [float]
|
|
2868
|
+
# @param endAngle [float]
|
|
2869
|
+
# @param segments [int]
|
|
2870
|
+
# @param color [Color]
|
|
2871
|
+
# @return [void]
|
|
2872
|
+
[:DrawRing, :DrawRing, [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value], :void],
|
|
2873
|
+
|
|
2874
|
+
# @!method DrawRingLines(center, innerRadius, outerRadius, startAngle, endAngle, segments, color)
|
|
2875
|
+
# DrawRingLines : Draw ring outline
|
|
2876
|
+
# @param center [Vector2]
|
|
2877
|
+
# @param innerRadius [float]
|
|
2878
|
+
# @param outerRadius [float]
|
|
2879
|
+
# @param startAngle [float]
|
|
2880
|
+
# @param endAngle [float]
|
|
2881
|
+
# @param segments [int]
|
|
2882
|
+
# @param color [Color]
|
|
2883
|
+
# @return [void]
|
|
2884
|
+
[:DrawRingLines, :DrawRingLines, [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value], :void],
|
|
2885
|
+
|
|
2860
2886
|
# @!method DrawSplineLinear(points, pointCount, thick, color)
|
|
2861
2887
|
# DrawSplineLinear : Draw spline: Linear, minimum 2 points
|
|
2862
2888
|
# @param points [const Vector2 *]
|
|
@@ -2982,14 +3008,14 @@ module Raylib
|
|
|
2982
3008
|
# @return [Vector2]
|
|
2983
3009
|
[:GetSplinePointCatmullRom, :GetSplinePointCatmullRom, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :float], Vector2.by_value],
|
|
2984
3010
|
|
|
2985
|
-
# @!method
|
|
2986
|
-
#
|
|
3011
|
+
# @!method GetSplinePointBezierQuadratic(p1, c2, p3, t)
|
|
3012
|
+
# GetSplinePointBezierQuadratic : Get (evaluate) spline point: Quadratic Bezier
|
|
2987
3013
|
# @param p1 [Vector2]
|
|
2988
3014
|
# @param c2 [Vector2]
|
|
2989
3015
|
# @param p3 [Vector2]
|
|
2990
3016
|
# @param t [float]
|
|
2991
3017
|
# @return [Vector2]
|
|
2992
|
-
[:
|
|
3018
|
+
[:GetSplinePointBezierQuadratic, :GetSplinePointBezierQuadratic, [Vector2.by_value, Vector2.by_value, Vector2.by_value, :float], Vector2.by_value],
|
|
2993
3019
|
|
|
2994
3020
|
# @!method GetSplinePointBezierCubic(p1, c2, c3, p4, t)
|
|
2995
3021
|
# GetSplinePointBezierCubic : Get (evaluate) spline point: Cubic Bezier
|
|
@@ -3026,7 +3052,7 @@ module Raylib
|
|
|
3026
3052
|
[:CheckCollisionCircleRec, :CheckCollisionCircleRec, [Vector2.by_value, :float, Rectangle.by_value], :bool],
|
|
3027
3053
|
|
|
3028
3054
|
# @!method CheckCollisionCircleLine(center, radius, p1, p2)
|
|
3029
|
-
# CheckCollisionCircleLine : Check if circle collides with a line created
|
|
3055
|
+
# CheckCollisionCircleLine : Check if circle collides with a line created between two points [p1] and [p2]
|
|
3030
3056
|
# @param center [Vector2]
|
|
3031
3057
|
# @param radius [float]
|
|
3032
3058
|
# @param p1 [Vector2]
|
|
@@ -3139,7 +3165,7 @@ module Raylib
|
|
|
3139
3165
|
[:LoadImageFromTexture, :LoadImageFromTexture, [Texture2D.by_value], Image.by_value],
|
|
3140
3166
|
|
|
3141
3167
|
# @!method LoadImageFromScreen()
|
|
3142
|
-
# LoadImageFromScreen : Load image from screen buffer
|
|
3168
|
+
# LoadImageFromScreen : Load image from screen buffer (screenshot)
|
|
3143
3169
|
# @return [Image]
|
|
3144
3170
|
[:LoadImageFromScreen, :LoadImageFromScreen, [], Image.by_value],
|
|
3145
3171
|
|
|
@@ -3458,9 +3484,9 @@ module Raylib
|
|
|
3458
3484
|
# @!method ImageColorContrast(image, contrast)
|
|
3459
3485
|
# ImageColorContrast : Modify image color: contrast (-100 to 100)
|
|
3460
3486
|
# @param image [Image *]
|
|
3461
|
-
# @param contrast [
|
|
3487
|
+
# @param contrast [int]
|
|
3462
3488
|
# @return [void]
|
|
3463
|
-
[:ImageColorContrast, :ImageColorContrast, [:pointer, :
|
|
3489
|
+
[:ImageColorContrast, :ImageColorContrast, [:pointer, :int], :void],
|
|
3464
3490
|
|
|
3465
3491
|
# @!method ImageColorBrightness(image, brightness)
|
|
3466
3492
|
# ImageColorBrightness : Modify image color: brightness (-255 to 255)
|
|
@@ -3572,43 +3598,64 @@ module Raylib
|
|
|
3572
3598
|
# @return [void]
|
|
3573
3599
|
[:ImageDrawLineEx, :ImageDrawLineEx, [:pointer, Vector2.by_value, Vector2.by_value, :int, Color.by_value], :void],
|
|
3574
3600
|
|
|
3575
|
-
# @!method
|
|
3576
|
-
#
|
|
3601
|
+
# @!method ImageDrawLineStrip(dst, points, pointCount, color)
|
|
3602
|
+
# ImageDrawLineStrip : Draw a lines sequence within an image
|
|
3577
3603
|
# @param dst [Image *]
|
|
3578
|
-
# @param
|
|
3579
|
-
# @param
|
|
3580
|
-
# @param radius [int]
|
|
3604
|
+
# @param points [const Vector2 *]
|
|
3605
|
+
# @param pointCount [int]
|
|
3581
3606
|
# @param color [Color]
|
|
3582
3607
|
# @return [void]
|
|
3583
|
-
[:
|
|
3608
|
+
[:ImageDrawLineStrip, :ImageDrawLineStrip, [:pointer, :pointer, :int, Color.by_value], :void],
|
|
3584
3609
|
|
|
3585
|
-
# @!method
|
|
3586
|
-
#
|
|
3610
|
+
# @!method ImageDrawTriangle(dst, v1, v2, v3, color)
|
|
3611
|
+
# ImageDrawTriangle : Draw triangle within an image
|
|
3587
3612
|
# @param dst [Image *]
|
|
3588
|
-
# @param
|
|
3589
|
-
# @param
|
|
3613
|
+
# @param v1 [Vector2]
|
|
3614
|
+
# @param v2 [Vector2]
|
|
3615
|
+
# @param v3 [Vector2]
|
|
3590
3616
|
# @param color [Color]
|
|
3591
3617
|
# @return [void]
|
|
3592
|
-
[:
|
|
3618
|
+
[:ImageDrawTriangle, :ImageDrawTriangle, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
|
3593
3619
|
|
|
3594
|
-
# @!method
|
|
3595
|
-
#
|
|
3620
|
+
# @!method ImageDrawTriangleGradient(dst, v1, v2, v3, c1, c2, c3)
|
|
3621
|
+
# ImageDrawTriangleGradient : Draw triangle with interpolated colors within an image
|
|
3596
3622
|
# @param dst [Image *]
|
|
3597
|
-
# @param
|
|
3598
|
-
# @param
|
|
3599
|
-
# @param
|
|
3623
|
+
# @param v1 [Vector2]
|
|
3624
|
+
# @param v2 [Vector2]
|
|
3625
|
+
# @param v3 [Vector2]
|
|
3626
|
+
# @param c1 [Color]
|
|
3627
|
+
# @param c2 [Color]
|
|
3628
|
+
# @param c3 [Color]
|
|
3629
|
+
# @return [void]
|
|
3630
|
+
[:ImageDrawTriangleGradient, :ImageDrawTriangleGradient, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
|
|
3631
|
+
|
|
3632
|
+
# @!method ImageDrawTriangleLines(dst, v1, v2, v3, color)
|
|
3633
|
+
# ImageDrawTriangleLines : Draw triangle outline within an image
|
|
3634
|
+
# @param dst [Image *]
|
|
3635
|
+
# @param v1 [Vector2]
|
|
3636
|
+
# @param v2 [Vector2]
|
|
3637
|
+
# @param v3 [Vector2]
|
|
3600
3638
|
# @param color [Color]
|
|
3601
3639
|
# @return [void]
|
|
3602
|
-
[:
|
|
3640
|
+
[:ImageDrawTriangleLines, :ImageDrawTriangleLines, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
|
3603
3641
|
|
|
3604
|
-
# @!method
|
|
3605
|
-
#
|
|
3642
|
+
# @!method ImageDrawTriangleFan(dst, points, pointCount, color)
|
|
3643
|
+
# ImageDrawTriangleFan : Draw a triangle fan defined by points within an image (first vertex is the center)
|
|
3606
3644
|
# @param dst [Image *]
|
|
3607
|
-
# @param
|
|
3608
|
-
# @param
|
|
3645
|
+
# @param points [const Vector2 *]
|
|
3646
|
+
# @param pointCount [int]
|
|
3609
3647
|
# @param color [Color]
|
|
3610
3648
|
# @return [void]
|
|
3611
|
-
[:
|
|
3649
|
+
[:ImageDrawTriangleFan, :ImageDrawTriangleFan, [:pointer, :pointer, :int, Color.by_value], :void],
|
|
3650
|
+
|
|
3651
|
+
# @!method ImageDrawTriangleStrip(dst, points, pointCount, color)
|
|
3652
|
+
# ImageDrawTriangleStrip : Draw a triangle strip defined by points within an image
|
|
3653
|
+
# @param dst [Image *]
|
|
3654
|
+
# @param points [const Vector2 *]
|
|
3655
|
+
# @param pointCount [int]
|
|
3656
|
+
# @param color [Color]
|
|
3657
|
+
# @return [void]
|
|
3658
|
+
[:ImageDrawTriangleStrip, :ImageDrawTriangleStrip, [:pointer, :pointer, :int, Color.by_value], :void],
|
|
3612
3659
|
|
|
3613
3660
|
# @!method ImageDrawRectangle(dst, posX, posY, width, height, color)
|
|
3614
3661
|
# ImageDrawRectangle : Draw rectangle within an image
|
|
@@ -3638,74 +3685,137 @@ module Raylib
|
|
|
3638
3685
|
# @return [void]
|
|
3639
3686
|
[:ImageDrawRectangleRec, :ImageDrawRectangleRec, [:pointer, Rectangle.by_value, Color.by_value], :void],
|
|
3640
3687
|
|
|
3641
|
-
# @!method
|
|
3688
|
+
# @!method ImageDrawRectanglePro(dst, rec, origin, rotation, color)
|
|
3689
|
+
# ImageDrawRectanglePro : Draw a color-filled rectangle with pro parameters within and image
|
|
3690
|
+
# @param dst [Image *]
|
|
3691
|
+
# @param rec [Rectangle]
|
|
3692
|
+
# @param origin [Vector2]
|
|
3693
|
+
# @param rotation [float]
|
|
3694
|
+
# @param color [Color]
|
|
3695
|
+
# @return [void]
|
|
3696
|
+
[:ImageDrawRectanglePro, :ImageDrawRectanglePro, [:pointer, Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],
|
|
3697
|
+
|
|
3698
|
+
# @!method ImageDrawRectangleLines(dst, posX, posY, width, height, color)
|
|
3642
3699
|
# ImageDrawRectangleLines : Draw rectangle lines within an image
|
|
3643
3700
|
# @param dst [Image *]
|
|
3701
|
+
# @param posX [int]
|
|
3702
|
+
# @param posY [int]
|
|
3703
|
+
# @param width [int]
|
|
3704
|
+
# @param height [int]
|
|
3705
|
+
# @param color [Color]
|
|
3706
|
+
# @return [void]
|
|
3707
|
+
[:ImageDrawRectangleLines, :ImageDrawRectangleLines, [:pointer, :int, :int, :int, :int, Color.by_value], :void],
|
|
3708
|
+
|
|
3709
|
+
# @!method ImageDrawRectangleLinesEx(dst, rec, thick, color)
|
|
3710
|
+
# ImageDrawRectangleLinesEx : Draw rectangle lines within an image with line thickness
|
|
3711
|
+
# @param dst [Image *]
|
|
3644
3712
|
# @param rec [Rectangle]
|
|
3645
3713
|
# @param thick [int]
|
|
3646
3714
|
# @param color [Color]
|
|
3647
3715
|
# @return [void]
|
|
3648
|
-
[:
|
|
3716
|
+
[:ImageDrawRectangleLinesEx, :ImageDrawRectangleLinesEx, [:pointer, Rectangle.by_value, :int, Color.by_value], :void],
|
|
3649
3717
|
|
|
3650
|
-
# @!method
|
|
3651
|
-
#
|
|
3718
|
+
# @!method ImageDrawRectangleGradientEx(dst, rec, col1, col2, col3, col4)
|
|
3719
|
+
# ImageDrawRectangleGradientEx : Draw rectangle with gradient colors within an image, counter-clockwise color order
|
|
3652
3720
|
# @param dst [Image *]
|
|
3653
|
-
# @param
|
|
3654
|
-
# @param
|
|
3655
|
-
# @param
|
|
3656
|
-
# @param
|
|
3721
|
+
# @param rec [Rectangle]
|
|
3722
|
+
# @param col1 [Color]
|
|
3723
|
+
# @param col2 [Color]
|
|
3724
|
+
# @param col3 [Color]
|
|
3725
|
+
# @param col4 [Color]
|
|
3657
3726
|
# @return [void]
|
|
3658
|
-
[:
|
|
3727
|
+
[:ImageDrawRectangleGradientEx, :ImageDrawRectangleGradientEx, [:pointer, Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
|
|
3659
3728
|
|
|
3660
|
-
# @!method
|
|
3661
|
-
#
|
|
3729
|
+
# @!method ImageDrawCircle(dst, centerX, centerY, radius, color)
|
|
3730
|
+
# ImageDrawCircle : Draw a filled circle within an image
|
|
3662
3731
|
# @param dst [Image *]
|
|
3663
|
-
# @param
|
|
3664
|
-
# @param
|
|
3665
|
-
# @param
|
|
3666
|
-
# @param
|
|
3667
|
-
# @param c2 [Color]
|
|
3668
|
-
# @param c3 [Color]
|
|
3732
|
+
# @param centerX [int]
|
|
3733
|
+
# @param centerY [int]
|
|
3734
|
+
# @param radius [int]
|
|
3735
|
+
# @param color [Color]
|
|
3669
3736
|
# @return [void]
|
|
3670
|
-
[:
|
|
3737
|
+
[:ImageDrawCircle, :ImageDrawCircle, [:pointer, :int, :int, :int, Color.by_value], :void],
|
|
3671
3738
|
|
|
3672
|
-
# @!method
|
|
3673
|
-
#
|
|
3739
|
+
# @!method ImageDrawCircleV(dst, center, radius, color)
|
|
3740
|
+
# ImageDrawCircleV : Draw a filled circle within an image (Vector version)
|
|
3674
3741
|
# @param dst [Image *]
|
|
3675
|
-
# @param
|
|
3676
|
-
# @param
|
|
3677
|
-
# @param v3 [Vector2]
|
|
3742
|
+
# @param center [Vector2]
|
|
3743
|
+
# @param radius [int]
|
|
3678
3744
|
# @param color [Color]
|
|
3679
3745
|
# @return [void]
|
|
3680
|
-
[:
|
|
3746
|
+
[:ImageDrawCircleV, :ImageDrawCircleV, [:pointer, Vector2.by_value, :int, Color.by_value], :void],
|
|
3681
3747
|
|
|
3682
|
-
# @!method
|
|
3683
|
-
#
|
|
3748
|
+
# @!method ImageDrawCircleLines(dst, centerX, centerY, radius, color)
|
|
3749
|
+
# ImageDrawCircleLines : Draw circle outline within an image
|
|
3684
3750
|
# @param dst [Image *]
|
|
3685
|
-
# @param
|
|
3686
|
-
# @param
|
|
3751
|
+
# @param centerX [int]
|
|
3752
|
+
# @param centerY [int]
|
|
3753
|
+
# @param radius [int]
|
|
3687
3754
|
# @param color [Color]
|
|
3688
3755
|
# @return [void]
|
|
3689
|
-
[:
|
|
3756
|
+
[:ImageDrawCircleLines, :ImageDrawCircleLines, [:pointer, :int, :int, :int, Color.by_value], :void],
|
|
3690
3757
|
|
|
3691
|
-
# @!method
|
|
3692
|
-
#
|
|
3758
|
+
# @!method ImageDrawCircleLinesV(dst, center, radius, color)
|
|
3759
|
+
# ImageDrawCircleLinesV : Draw circle outline within an image (Vector version)
|
|
3693
3760
|
# @param dst [Image *]
|
|
3694
|
-
# @param
|
|
3695
|
-
# @param
|
|
3761
|
+
# @param center [Vector2]
|
|
3762
|
+
# @param radius [int]
|
|
3696
3763
|
# @param color [Color]
|
|
3697
3764
|
# @return [void]
|
|
3698
|
-
[:
|
|
3765
|
+
[:ImageDrawCircleLinesV, :ImageDrawCircleLinesV, [:pointer, Vector2.by_value, :int, Color.by_value], :void],
|
|
3766
|
+
|
|
3767
|
+
# @!method ImageDrawCircleGradient(dst, center, radius, inner, outer)
|
|
3768
|
+
# ImageDrawCircleGradient : Draw a gradient-filled circle within an image
|
|
3769
|
+
# @param dst [Image *]
|
|
3770
|
+
# @param center [Vector2]
|
|
3771
|
+
# @param radius [float]
|
|
3772
|
+
# @param inner [Color]
|
|
3773
|
+
# @param outer [Color]
|
|
3774
|
+
# @return [void]
|
|
3775
|
+
[:ImageDrawCircleGradient, :ImageDrawCircleGradient, [:pointer, Vector2.by_value, :float, Color.by_value, Color.by_value], :void],
|
|
3699
3776
|
|
|
3700
|
-
# @!method
|
|
3701
|
-
#
|
|
3777
|
+
# @!method ImageDrawImage(dst, src, posX, posY, tint)
|
|
3778
|
+
# ImageDrawImage : Draw an image within an image
|
|
3779
|
+
# @param dst [Image *]
|
|
3780
|
+
# @param src [Image]
|
|
3781
|
+
# @param posX [int]
|
|
3782
|
+
# @param posY [int]
|
|
3783
|
+
# @param tint [Color]
|
|
3784
|
+
# @return [void]
|
|
3785
|
+
[:ImageDrawImage, :ImageDrawImage, [:pointer, Image.by_value, :int, :int, Color.by_value], :void],
|
|
3786
|
+
|
|
3787
|
+
# @!method ImageDrawImageEx(dst, src, position, rotation, scale, tint)
|
|
3788
|
+
# ImageDrawImageEx : Draw an image with scaling and rotation within an image
|
|
3789
|
+
# @param dst [Image *]
|
|
3790
|
+
# @param src [Image]
|
|
3791
|
+
# @param position [Vector2]
|
|
3792
|
+
# @param rotation [float]
|
|
3793
|
+
# @param scale [float]
|
|
3794
|
+
# @param tint [Color]
|
|
3795
|
+
# @return [void]
|
|
3796
|
+
[:ImageDrawImageEx, :ImageDrawImageEx, [:pointer, Image.by_value, Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
3797
|
+
|
|
3798
|
+
# @!method ImageDrawImageRec(dst, src, srcRec, position, tint)
|
|
3799
|
+
# ImageDrawImageRec : Draw a part of an image defined by a rectangle within an image
|
|
3800
|
+
# @param dst [Image *]
|
|
3801
|
+
# @param src [Image]
|
|
3802
|
+
# @param srcRec [Rectangle]
|
|
3803
|
+
# @param position [Vector2]
|
|
3804
|
+
# @param tint [Color]
|
|
3805
|
+
# @return [void]
|
|
3806
|
+
[:ImageDrawImageRec, :ImageDrawImageRec, [:pointer, Image.by_value, Rectangle.by_value, Vector2.by_value, Color.by_value], :void],
|
|
3807
|
+
|
|
3808
|
+
# @!method ImageDrawImagePro(dst, src, srcRec, dstRec, origin, rotation, tint)
|
|
3809
|
+
# ImageDrawImagePro : Draw a part of an image defined by a rectangle into destination rectangle, with scaling and rotation, within an image
|
|
3702
3810
|
# @param dst [Image *]
|
|
3703
3811
|
# @param src [Image]
|
|
3704
3812
|
# @param srcRec [Rectangle]
|
|
3705
3813
|
# @param dstRec [Rectangle]
|
|
3814
|
+
# @param origin [Vector2]
|
|
3815
|
+
# @param rotation [float]
|
|
3706
3816
|
# @param tint [Color]
|
|
3707
3817
|
# @return [void]
|
|
3708
|
-
[:
|
|
3818
|
+
[:ImageDrawImagePro, :ImageDrawImagePro, [:pointer, Image.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],
|
|
3709
3819
|
|
|
3710
3820
|
# @!method ImageDrawText(dst, text, posX, posY, fontSize, color)
|
|
3711
3821
|
# ImageDrawText : Draw text (using default font) within an image (destination)
|
|
@@ -3730,6 +3840,20 @@ module Raylib
|
|
|
3730
3840
|
# @return [void]
|
|
3731
3841
|
[:ImageDrawTextEx, :ImageDrawTextEx, [:pointer, Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
3732
3842
|
|
|
3843
|
+
# @!method ImageDrawTextPro(dst, font, text, position, origin, rotation, fontSize, spacing, tint)
|
|
3844
|
+
# ImageDrawTextPro : Draw text using Font and pro parameters (rotation)
|
|
3845
|
+
# @param dst [Image *]
|
|
3846
|
+
# @param font [Font]
|
|
3847
|
+
# @param text [const char *]
|
|
3848
|
+
# @param position [Vector2]
|
|
3849
|
+
# @param origin [Vector2]
|
|
3850
|
+
# @param rotation [float]
|
|
3851
|
+
# @param fontSize [float]
|
|
3852
|
+
# @param spacing [float]
|
|
3853
|
+
# @param tint [Color]
|
|
3854
|
+
# @return [void]
|
|
3855
|
+
[:ImageDrawTextPro, :ImageDrawTextPro, [:pointer, Font.by_value, :pointer, Vector2.by_value, Vector2.by_value, :float, :float, :float, Color.by_value], :void],
|
|
3856
|
+
|
|
3733
3857
|
# @!method LoadTexture(fileName)
|
|
3734
3858
|
# LoadTexture : Load texture from file into GPU memory (VRAM)
|
|
3735
3859
|
# @param fileName [const char *]
|
|
@@ -3757,7 +3881,7 @@ module Raylib
|
|
|
3757
3881
|
[:LoadRenderTexture, :LoadRenderTexture, [:int, :int], RenderTexture2D.by_value],
|
|
3758
3882
|
|
|
3759
3883
|
# @!method IsTextureValid(texture)
|
|
3760
|
-
# IsTextureValid : Check if
|
|
3884
|
+
# IsTextureValid : Check if texture is valid (loaded in GPU)
|
|
3761
3885
|
# @param texture [Texture2D]
|
|
3762
3886
|
# @return [bool]
|
|
3763
3887
|
[:IsTextureValid, :IsTextureValid, [Texture2D.by_value], :bool],
|
|
@@ -3769,7 +3893,7 @@ module Raylib
|
|
|
3769
3893
|
[:UnloadTexture, :UnloadTexture, [Texture2D.by_value], :void],
|
|
3770
3894
|
|
|
3771
3895
|
# @!method IsRenderTextureValid(target)
|
|
3772
|
-
# IsRenderTextureValid : Check if
|
|
3896
|
+
# IsRenderTextureValid : Check if render texture is valid (loaded in GPU)
|
|
3773
3897
|
# @param target [RenderTexture2D]
|
|
3774
3898
|
# @return [bool]
|
|
3775
3899
|
[:IsRenderTextureValid, :IsRenderTextureValid, [RenderTexture2D.by_value], :bool],
|
|
@@ -3833,7 +3957,7 @@ module Raylib
|
|
|
3833
3957
|
[:DrawTextureV, :DrawTextureV, [Texture2D.by_value, Vector2.by_value, Color.by_value], :void],
|
|
3834
3958
|
|
|
3835
3959
|
# @!method DrawTextureEx(texture, position, rotation, scale, tint)
|
|
3836
|
-
# DrawTextureEx : Draw a Texture2D with
|
|
3960
|
+
# DrawTextureEx : Draw a Texture2D with rotation and scale
|
|
3837
3961
|
# @param texture [Texture2D]
|
|
3838
3962
|
# @param position [Vector2]
|
|
3839
3963
|
# @param rotation [float]
|
|
@@ -3842,31 +3966,31 @@ module Raylib
|
|
|
3842
3966
|
# @return [void]
|
|
3843
3967
|
[:DrawTextureEx, :DrawTextureEx, [Texture2D.by_value, Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
3844
3968
|
|
|
3845
|
-
# @!method DrawTextureRec(texture,
|
|
3969
|
+
# @!method DrawTextureRec(texture, rec, position, tint)
|
|
3846
3970
|
# DrawTextureRec : Draw a part of a texture defined by a rectangle
|
|
3847
3971
|
# @param texture [Texture2D]
|
|
3848
|
-
# @param
|
|
3972
|
+
# @param rec [Rectangle]
|
|
3849
3973
|
# @param position [Vector2]
|
|
3850
3974
|
# @param tint [Color]
|
|
3851
3975
|
# @return [void]
|
|
3852
3976
|
[:DrawTextureRec, :DrawTextureRec, [Texture2D.by_value, Rectangle.by_value, Vector2.by_value, Color.by_value], :void],
|
|
3853
3977
|
|
|
3854
|
-
# @!method DrawTexturePro(texture,
|
|
3855
|
-
# DrawTexturePro : Draw a part of a texture defined by a rectangle with
|
|
3978
|
+
# @!method DrawTexturePro(texture, srcrec, dstrec, origin, rotation, tint)
|
|
3979
|
+
# DrawTexturePro : Draw a part of a texture defined by a source rectangle to destination rectangle, with scaling and rotation
|
|
3856
3980
|
# @param texture [Texture2D]
|
|
3857
|
-
# @param
|
|
3858
|
-
# @param
|
|
3981
|
+
# @param srcrec [Rectangle]
|
|
3982
|
+
# @param dstrec [Rectangle]
|
|
3859
3983
|
# @param origin [Vector2]
|
|
3860
3984
|
# @param rotation [float]
|
|
3861
3985
|
# @param tint [Color]
|
|
3862
3986
|
# @return [void]
|
|
3863
3987
|
[:DrawTexturePro, :DrawTexturePro, [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],
|
|
3864
3988
|
|
|
3865
|
-
# @!method DrawTextureNPatch(texture, nPatchInfo,
|
|
3866
|
-
# DrawTextureNPatch :
|
|
3989
|
+
# @!method DrawTextureNPatch(texture, nPatchInfo, dstrec, origin, rotation, tint)
|
|
3990
|
+
# DrawTextureNPatch : Draw a texture (or part of it) that stretches or shrinks nicely
|
|
3867
3991
|
# @param texture [Texture2D]
|
|
3868
3992
|
# @param nPatchInfo [NPatchInfo]
|
|
3869
|
-
# @param
|
|
3993
|
+
# @param dstrec [Rectangle]
|
|
3870
3994
|
# @param origin [Vector2]
|
|
3871
3995
|
# @param rotation [float]
|
|
3872
3996
|
# @param tint [Color]
|
|
@@ -3971,7 +4095,7 @@ module Raylib
|
|
|
3971
4095
|
|
|
3972
4096
|
# @!method GetPixelColor(srcPtr, format)
|
|
3973
4097
|
# GetPixelColor : Get Color from a source pixel pointer of certain format
|
|
3974
|
-
# @param srcPtr [void *]
|
|
4098
|
+
# @param srcPtr [const void *]
|
|
3975
4099
|
# @param format [int]
|
|
3976
4100
|
# @return [Color]
|
|
3977
4101
|
[:GetPixelColor, :GetPixelColor, [:pointer, :int], Color.by_value],
|
|
@@ -4004,7 +4128,7 @@ module Raylib
|
|
|
4004
4128
|
[:LoadFont, :LoadFont, [:pointer], Font.by_value],
|
|
4005
4129
|
|
|
4006
4130
|
# @!method LoadFontEx(fileName, fontSize, codepoints, codepointCount)
|
|
4007
|
-
# LoadFontEx : Load font from file with
|
|
4131
|
+
# LoadFontEx : Load font from file with defined codepoints and generation size, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height
|
|
4008
4132
|
# @param fileName [const char *]
|
|
4009
4133
|
# @param fontSize [int]
|
|
4010
4134
|
# @param codepoints [const int *]
|
|
@@ -4032,7 +4156,7 @@ module Raylib
|
|
|
4032
4156
|
[:LoadFontFromMemory, :LoadFontFromMemory, [:pointer, :pointer, :int, :int, :pointer, :int], Font.by_value],
|
|
4033
4157
|
|
|
4034
4158
|
# @!method IsFontValid(font)
|
|
4035
|
-
# IsFontValid : Check if
|
|
4159
|
+
# IsFontValid : Check if font is valid (font data loaded, WARNING: GPU texture not checked)
|
|
4036
4160
|
# @param font [Font]
|
|
4037
4161
|
# @return [bool]
|
|
4038
4162
|
[:IsFontValid, :IsFontValid, [Font.by_value], :bool],
|
|
@@ -4132,7 +4256,7 @@ module Raylib
|
|
|
4132
4256
|
[:DrawTextCodepoint, :DrawTextCodepoint, [Font.by_value, :int, Vector2.by_value, :float, Color.by_value], :void],
|
|
4133
4257
|
|
|
4134
4258
|
# @!method DrawTextCodepoints(font, codepoints, codepointCount, position, fontSize, spacing, tint)
|
|
4135
|
-
# DrawTextCodepoints : Draw multiple
|
|
4259
|
+
# DrawTextCodepoints : Draw multiple characters (codepoint)
|
|
4136
4260
|
# @param font [Font]
|
|
4137
4261
|
# @param codepoints [const int *]
|
|
4138
4262
|
# @param codepointCount [int]
|
|
@@ -4278,7 +4402,7 @@ module Raylib
|
|
|
4278
4402
|
[:TextCopy, :TextCopy, [:pointer, :pointer], :int],
|
|
4279
4403
|
|
|
4280
4404
|
# @!method TextIsEqual(text1, text2)
|
|
4281
|
-
# TextIsEqual : Check if two text
|
|
4405
|
+
# TextIsEqual : Check if two text strings are equal
|
|
4282
4406
|
# @param text1 [const char *]
|
|
4283
4407
|
# @param text2 [const char *]
|
|
4284
4408
|
# @return [bool]
|
|
@@ -4468,7 +4592,7 @@ module Raylib
|
|
|
4468
4592
|
[:DrawCircle3D, :DrawCircle3D, [Vector3.by_value, :float, Vector3.by_value, :float, Color.by_value], :void],
|
|
4469
4593
|
|
|
4470
4594
|
# @!method DrawTriangle3D(v1, v2, v3, color)
|
|
4471
|
-
# DrawTriangle3D : Draw a color-filled triangle
|
|
4595
|
+
# DrawTriangle3D : Draw a color-filled triangle, counter-clockwise vertex order
|
|
4472
4596
|
# @param v1 [Vector3]
|
|
4473
4597
|
# @param v2 [Vector3]
|
|
4474
4598
|
# @param v3 [Vector3]
|
|
@@ -4529,7 +4653,7 @@ module Raylib
|
|
|
4529
4653
|
[:DrawSphere, :DrawSphere, [Vector3.by_value, :float, Color.by_value], :void],
|
|
4530
4654
|
|
|
4531
4655
|
# @!method DrawSphereEx(centerPos, radius, rings, slices, color)
|
|
4532
|
-
# DrawSphereEx : Draw sphere with
|
|
4656
|
+
# DrawSphereEx : Draw sphere with defined rings and slices
|
|
4533
4657
|
# @param centerPos [Vector3]
|
|
4534
4658
|
# @param radius [float]
|
|
4535
4659
|
# @param rings [int]
|
|
@@ -4548,13 +4672,13 @@ module Raylib
|
|
|
4548
4672
|
# @return [void]
|
|
4549
4673
|
[:DrawSphereWires, :DrawSphereWires, [Vector3.by_value, :float, :int, :int, Color.by_value], :void],
|
|
4550
4674
|
|
|
4551
|
-
# @!method DrawCylinder(position, radiusTop, radiusBottom, height,
|
|
4675
|
+
# @!method DrawCylinder(position, radiusTop, radiusBottom, height, sides, color)
|
|
4552
4676
|
# DrawCylinder : Draw a cylinder/cone
|
|
4553
4677
|
# @param position [Vector3]
|
|
4554
4678
|
# @param radiusTop [float]
|
|
4555
4679
|
# @param radiusBottom [float]
|
|
4556
4680
|
# @param height [float]
|
|
4557
|
-
# @param
|
|
4681
|
+
# @param sides [int]
|
|
4558
4682
|
# @param color [Color]
|
|
4559
4683
|
# @return [void]
|
|
4560
4684
|
[:DrawCylinder, :DrawCylinder, [Vector3.by_value, :float, :float, :float, :int, Color.by_value], :void],
|
|
@@ -4570,13 +4694,13 @@ module Raylib
|
|
|
4570
4694
|
# @return [void]
|
|
4571
4695
|
[:DrawCylinderEx, :DrawCylinderEx, [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value], :void],
|
|
4572
4696
|
|
|
4573
|
-
# @!method DrawCylinderWires(position, radiusTop, radiusBottom, height,
|
|
4697
|
+
# @!method DrawCylinderWires(position, radiusTop, radiusBottom, height, sides, color)
|
|
4574
4698
|
# DrawCylinderWires : Draw a cylinder/cone wires
|
|
4575
4699
|
# @param position [Vector3]
|
|
4576
4700
|
# @param radiusTop [float]
|
|
4577
4701
|
# @param radiusBottom [float]
|
|
4578
4702
|
# @param height [float]
|
|
4579
|
-
# @param
|
|
4703
|
+
# @param sides [int]
|
|
4580
4704
|
# @param color [Color]
|
|
4581
4705
|
# @return [void]
|
|
4582
4706
|
[:DrawCylinderWires, :DrawCylinderWires, [Vector3.by_value, :float, :float, :float, :int, Color.by_value], :void],
|
|
@@ -4592,24 +4716,24 @@ module Raylib
|
|
|
4592
4716
|
# @return [void]
|
|
4593
4717
|
[:DrawCylinderWiresEx, :DrawCylinderWiresEx, [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value], :void],
|
|
4594
4718
|
|
|
4595
|
-
# @!method DrawCapsule(startPos, endPos, radius,
|
|
4719
|
+
# @!method DrawCapsule(startPos, endPos, radius, rings, slices, color)
|
|
4596
4720
|
# DrawCapsule : Draw a capsule with the center of its sphere caps at startPos and endPos
|
|
4597
4721
|
# @param startPos [Vector3]
|
|
4598
4722
|
# @param endPos [Vector3]
|
|
4599
4723
|
# @param radius [float]
|
|
4600
|
-
# @param slices [int]
|
|
4601
4724
|
# @param rings [int]
|
|
4725
|
+
# @param slices [int]
|
|
4602
4726
|
# @param color [Color]
|
|
4603
4727
|
# @return [void]
|
|
4604
4728
|
[:DrawCapsule, :DrawCapsule, [Vector3.by_value, Vector3.by_value, :float, :int, :int, Color.by_value], :void],
|
|
4605
4729
|
|
|
4606
|
-
# @!method DrawCapsuleWires(startPos, endPos, radius,
|
|
4730
|
+
# @!method DrawCapsuleWires(startPos, endPos, radius, rings, slices, color)
|
|
4607
4731
|
# DrawCapsuleWires : Draw capsule wireframe with the center of its sphere caps at startPos and endPos
|
|
4608
4732
|
# @param startPos [Vector3]
|
|
4609
4733
|
# @param endPos [Vector3]
|
|
4610
4734
|
# @param radius [float]
|
|
4611
|
-
# @param slices [int]
|
|
4612
4735
|
# @param rings [int]
|
|
4736
|
+
# @param slices [int]
|
|
4613
4737
|
# @param color [Color]
|
|
4614
4738
|
# @return [void]
|
|
4615
4739
|
[:DrawCapsuleWires, :DrawCapsuleWires, [Vector3.by_value, Vector3.by_value, :float, :int, :int, Color.by_value], :void],
|
|
@@ -4649,7 +4773,7 @@ module Raylib
|
|
|
4649
4773
|
[:LoadModelFromMesh, :LoadModelFromMesh, [Mesh.by_value], Model.by_value],
|
|
4650
4774
|
|
|
4651
4775
|
# @!method IsModelValid(model)
|
|
4652
|
-
# IsModelValid : Check if
|
|
4776
|
+
# IsModelValid : Check if model is valid (loaded in GPU, VAO/VBOs)
|
|
4653
4777
|
# @param model [Model]
|
|
4654
4778
|
# @return [bool]
|
|
4655
4779
|
[:IsModelValid, :IsModelValid, [Model.by_value], :bool],
|
|
@@ -4676,7 +4800,7 @@ module Raylib
|
|
|
4676
4800
|
[:DrawModel, :DrawModel, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void],
|
|
4677
4801
|
|
|
4678
4802
|
# @!method internalDrawModelEx(model, position, rotationAxis, rotationAngle, scale, tint)
|
|
4679
|
-
# internalDrawModelEx : Draw a model with
|
|
4803
|
+
# internalDrawModelEx : Draw a model with custom transform
|
|
4680
4804
|
# @param model [Model]
|
|
4681
4805
|
# @param position [Vector3]
|
|
4682
4806
|
# @param rotationAxis [Vector3]
|
|
@@ -4696,7 +4820,7 @@ module Raylib
|
|
|
4696
4820
|
[:DrawModelWires, :DrawModelWires, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void],
|
|
4697
4821
|
|
|
4698
4822
|
# @!method DrawModelWiresEx(model, position, rotationAxis, rotationAngle, scale, tint)
|
|
4699
|
-
# DrawModelWiresEx : Draw a model wires
|
|
4823
|
+
# DrawModelWiresEx : Draw a model wires with custom transform
|
|
4700
4824
|
# @param model [Model]
|
|
4701
4825
|
# @param position [Vector3]
|
|
4702
4826
|
# @param rotationAxis [Vector3]
|
|
@@ -4723,22 +4847,22 @@ module Raylib
|
|
|
4723
4847
|
# @return [void]
|
|
4724
4848
|
[:DrawBillboard, :DrawBillboard, [Camera.by_value, Texture2D.by_value, Vector3.by_value, :float, Color.by_value], :void],
|
|
4725
4849
|
|
|
4726
|
-
# @!method DrawBillboardRec(camera, texture,
|
|
4727
|
-
# DrawBillboardRec : Draw a billboard texture defined by
|
|
4850
|
+
# @!method DrawBillboardRec(camera, texture, rec, position, size, tint)
|
|
4851
|
+
# DrawBillboardRec : Draw a billboard texture defined by rectangle
|
|
4728
4852
|
# @param camera [Camera]
|
|
4729
4853
|
# @param texture [Texture2D]
|
|
4730
|
-
# @param
|
|
4854
|
+
# @param rec [Rectangle]
|
|
4731
4855
|
# @param position [Vector3]
|
|
4732
4856
|
# @param size [Vector2]
|
|
4733
4857
|
# @param tint [Color]
|
|
4734
4858
|
# @return [void]
|
|
4735
4859
|
[:DrawBillboardRec, :DrawBillboardRec, [Camera.by_value, Texture2D.by_value, Rectangle.by_value, Vector3.by_value, Vector2.by_value, Color.by_value], :void],
|
|
4736
4860
|
|
|
4737
|
-
# @!method DrawBillboardPro(camera, texture,
|
|
4738
|
-
# DrawBillboardPro : Draw a billboard texture defined by source and rotation
|
|
4861
|
+
# @!method DrawBillboardPro(camera, texture, rec, position, up, size, origin, rotation, tint)
|
|
4862
|
+
# DrawBillboardPro : Draw a billboard texture defined by source rectangle with scaling and rotation
|
|
4739
4863
|
# @param camera [Camera]
|
|
4740
4864
|
# @param texture [Texture2D]
|
|
4741
|
-
# @param
|
|
4865
|
+
# @param rec [Rectangle]
|
|
4742
4866
|
# @param position [Vector3]
|
|
4743
4867
|
# @param up [Vector3]
|
|
4744
4868
|
# @param size [Vector2]
|
|
@@ -4915,7 +5039,7 @@ module Raylib
|
|
|
4915
5039
|
[:LoadMaterialDefault, :LoadMaterialDefault, [], Material.by_value],
|
|
4916
5040
|
|
|
4917
5041
|
# @!method IsMaterialValid(material)
|
|
4918
|
-
# IsMaterialValid : Check if
|
|
5042
|
+
# IsMaterialValid : Check if material is valid (shader assigned, map textures loaded in GPU)
|
|
4919
5043
|
# @param material [Material]
|
|
4920
5044
|
# @return [bool]
|
|
4921
5045
|
[:IsMaterialValid, :IsMaterialValid, [Material.by_value], :bool],
|
|
@@ -5089,7 +5213,7 @@ module Raylib
|
|
|
5089
5213
|
[:LoadWaveFromMemory, :LoadWaveFromMemory, [:pointer, :pointer, :int], Wave.by_value],
|
|
5090
5214
|
|
|
5091
5215
|
# @!method IsWaveValid(wave)
|
|
5092
|
-
# IsWaveValid :
|
|
5216
|
+
# IsWaveValid : Check if wave data is valid (data loaded and parameters)
|
|
5093
5217
|
# @param wave [Wave]
|
|
5094
5218
|
# @return [bool]
|
|
5095
5219
|
[:IsWaveValid, :IsWaveValid, [Wave.by_value], :bool],
|
|
@@ -5107,22 +5231,22 @@ module Raylib
|
|
|
5107
5231
|
[:LoadSoundFromWave, :LoadSoundFromWave, [Wave.by_value], Sound.by_value],
|
|
5108
5232
|
|
|
5109
5233
|
# @!method LoadSoundAlias(source)
|
|
5110
|
-
# LoadSoundAlias :
|
|
5234
|
+
# LoadSoundAlias : Load sound alias, new sound that shares the same sample data as the source sound, does not own the sound data
|
|
5111
5235
|
# @param source [Sound]
|
|
5112
5236
|
# @return [Sound]
|
|
5113
5237
|
[:LoadSoundAlias, :LoadSoundAlias, [Sound.by_value], Sound.by_value],
|
|
5114
5238
|
|
|
5115
5239
|
# @!method IsSoundValid(sound)
|
|
5116
|
-
# IsSoundValid :
|
|
5240
|
+
# IsSoundValid : Check if sound is valid (data loaded and buffers initialized)
|
|
5117
5241
|
# @param sound [Sound]
|
|
5118
5242
|
# @return [bool]
|
|
5119
5243
|
[:IsSoundValid, :IsSoundValid, [Sound.by_value], :bool],
|
|
5120
5244
|
|
|
5121
|
-
# @!method UpdateSound(sound, data,
|
|
5245
|
+
# @!method UpdateSound(sound, data, frameCount)
|
|
5122
5246
|
# UpdateSound : Update sound buffer with new data (default data format: 32 bit float, stereo)
|
|
5123
5247
|
# @param sound [Sound]
|
|
5124
5248
|
# @param data [const void *]
|
|
5125
|
-
# @param
|
|
5249
|
+
# @param frameCount [int]
|
|
5126
5250
|
# @return [void]
|
|
5127
5251
|
[:UpdateSound, :UpdateSound, [Sound.by_value, :pointer, :int], :void],
|
|
5128
5252
|
|
|
@@ -5139,7 +5263,7 @@ module Raylib
|
|
|
5139
5263
|
[:UnloadSound, :UnloadSound, [Sound.by_value], :void],
|
|
5140
5264
|
|
|
5141
5265
|
# @!method UnloadSoundAlias(alias)
|
|
5142
|
-
# UnloadSoundAlias : Unload
|
|
5266
|
+
# UnloadSoundAlias : Unload sound alias (does not deallocate sample data)
|
|
5143
5267
|
# @param alias [Sound]
|
|
5144
5268
|
# @return [void]
|
|
5145
5269
|
[:UnloadSoundAlias, :UnloadSoundAlias, [Sound.by_value], :void],
|
|
@@ -5183,7 +5307,7 @@ module Raylib
|
|
|
5183
5307
|
[:ResumeSound, :ResumeSound, [Sound.by_value], :void],
|
|
5184
5308
|
|
|
5185
5309
|
# @!method IsSoundPlaying(sound)
|
|
5186
|
-
# IsSoundPlaying : Check if
|
|
5310
|
+
# IsSoundPlaying : Check if sound is currently playing
|
|
5187
5311
|
# @param sound [Sound]
|
|
5188
5312
|
# @return [bool]
|
|
5189
5313
|
[:IsSoundPlaying, :IsSoundPlaying, [Sound.by_value], :bool],
|
|
@@ -5259,7 +5383,7 @@ module Raylib
|
|
|
5259
5383
|
[:LoadMusicStreamFromMemory, :LoadMusicStreamFromMemory, [:pointer, :pointer, :int], Music.by_value],
|
|
5260
5384
|
|
|
5261
5385
|
# @!method IsMusicValid(music)
|
|
5262
|
-
# IsMusicValid :
|
|
5386
|
+
# IsMusicValid : Check if music stream is valid (context and buffers initialized)
|
|
5263
5387
|
# @param music [Music]
|
|
5264
5388
|
# @return [bool]
|
|
5265
5389
|
[:IsMusicValid, :IsMusicValid, [Music.by_value], :bool],
|
|
@@ -5283,7 +5407,7 @@ module Raylib
|
|
|
5283
5407
|
[:IsMusicStreamPlaying, :IsMusicStreamPlaying, [Music.by_value], :bool],
|
|
5284
5408
|
|
|
5285
5409
|
# @!method UpdateMusicStream(music)
|
|
5286
|
-
# UpdateMusicStream :
|
|
5410
|
+
# UpdateMusicStream : Update buffers for music streaming
|
|
5287
5411
|
# @param music [Music]
|
|
5288
5412
|
# @return [void]
|
|
5289
5413
|
[:UpdateMusicStream, :UpdateMusicStream, [Music.by_value], :void],
|
|
@@ -5321,14 +5445,14 @@ module Raylib
|
|
|
5321
5445
|
[:SetMusicVolume, :SetMusicVolume, [Music.by_value, :float], :void],
|
|
5322
5446
|
|
|
5323
5447
|
# @!method SetMusicPitch(music, pitch)
|
|
5324
|
-
# SetMusicPitch : Set pitch for
|
|
5448
|
+
# SetMusicPitch : Set pitch for music (1.0 is base level)
|
|
5325
5449
|
# @param music [Music]
|
|
5326
5450
|
# @param pitch [float]
|
|
5327
5451
|
# @return [void]
|
|
5328
5452
|
[:SetMusicPitch, :SetMusicPitch, [Music.by_value, :float], :void],
|
|
5329
5453
|
|
|
5330
5454
|
# @!method SetMusicPan(music, pan)
|
|
5331
|
-
# SetMusicPan : Set pan for
|
|
5455
|
+
# SetMusicPan : Set pan for music (-1.0 left, 0.0 center, 1.0 right)
|
|
5332
5456
|
# @param music [Music]
|
|
5333
5457
|
# @param pan [float]
|
|
5334
5458
|
# @return [void]
|
|
@@ -5355,7 +5479,7 @@ module Raylib
|
|
|
5355
5479
|
[:LoadAudioStream, :LoadAudioStream, [:uint, :uint, :uint], AudioStream.by_value],
|
|
5356
5480
|
|
|
5357
5481
|
# @!method IsAudioStreamValid(stream)
|
|
5358
|
-
# IsAudioStreamValid :
|
|
5482
|
+
# IsAudioStreamValid : Check if an audio stream is valid (buffers initialized)
|
|
5359
5483
|
# @param stream [AudioStream]
|
|
5360
5484
|
# @return [bool]
|
|
5361
5485
|
[:IsAudioStreamValid, :IsAudioStreamValid, [AudioStream.by_value], :bool],
|
|
@@ -5425,7 +5549,7 @@ module Raylib
|
|
|
5425
5549
|
[:SetAudioStreamPitch, :SetAudioStreamPitch, [AudioStream.by_value, :float], :void],
|
|
5426
5550
|
|
|
5427
5551
|
# @!method SetAudioStreamPan(stream, pan)
|
|
5428
|
-
# SetAudioStreamPan : Set pan for audio stream (-1.0
|
|
5552
|
+
# SetAudioStreamPan : Set pan for audio stream (-1.0 left, 0.0 center, 1.0 right)
|
|
5429
5553
|
# @param stream [AudioStream]
|
|
5430
5554
|
# @param pan [float]
|
|
5431
5555
|
# @return [void]
|