raylib-bindings 0.7.8-x64-mingw → 0.7.9-x64-mingw
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 +4 -0
- data/README.md +2 -2
- data/lib/config.rb +8 -3
- data/lib/libraylib.dll +0 -0
- data/lib/physac.dll +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raylib_main.rb +112 -86
- data/lib/raymath.rb +7 -0
- data/lib/rlgl.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac734230fd8fe9394adc73e6fddf3f7d3f466097855adbdd56d17c56029dbfa3
|
4
|
+
data.tar.gz: c9ce7039785e6388f32985403a4a00d5b423c3d4b02a19ff85311cb554ef01b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2272d777128138252ed003dba9a8bc138047caa0ff661fd5851aa6c9f8bb3b33eb92e6a8416a0a63c86b976d5801130d3577b3c4bc83b180229e98c1d85c2224
|
7
|
+
data.tar.gz: 3a5f18ad1c884aa4b5b4fa7de13bd3cec7d69755bff2503d8012b081c98a0d454e5ed0b48d87341a3571246b47795a5ad210ec7645d8fd7afc4818fb1c864e4f
|
data/ChangeLog
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
2024-11-23 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/47f83aa58f7a20110b0dc0d031b377faa50dd31e )
|
4
|
+
|
1
5
|
2024-10-14 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
6
|
|
3
7
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/59417636ca956d64800e7e26d4f4ec331cf1b412 ) and raygui ( https://github.com/raysan5/raygui/commit/1e03efca48c50c5ea4b4a053d5bf04bad58d3e43 )
|
data/README.md
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
# Yet another raylib wrapper for Ruby #
|
4
4
|
|
5
5
|
* Created : 2021-10-17
|
6
|
-
* Last modified : 2024-
|
6
|
+
* Last modified : 2024-11-23
|
7
7
|
|
8
8
|
Provides Ruby bindings for raylib-related libraries including:
|
9
9
|
|
10
|
-
* [raylib](https://github.com/raysan5/raylib) version [5.
|
10
|
+
* [raylib](https://github.com/raysan5/raylib) version [5.6-dev]( https://github.com/raysan5/raylib/commit/47f83aa58f7a20110b0dc0d031b377faa50dd31e )
|
11
11
|
* raylib
|
12
12
|
* raymath
|
13
13
|
* rlgl
|
data/lib/config.rb
CHANGED
@@ -27,6 +27,10 @@ module Raylib
|
|
27
27
|
SUPPORT_GIF_RECORDING = 1
|
28
28
|
SUPPORT_COMPRESSION_API = 1
|
29
29
|
SUPPORT_AUTOMATION_EVENTS = 1
|
30
|
+
SUPPORT_CLIPBOARD_IMAGE = 1
|
31
|
+
SUPPORT_FILEFORMAT_BMP = 1
|
32
|
+
SUPPORT_FILEFORMAT_PNG = 1
|
33
|
+
SUPPORT_FILEFORMAT_JPG = 1
|
30
34
|
MAX_FILEPATH_CAPACITY = 8192 # Maximum file paths capacity
|
31
35
|
MAX_FILEPATH_LENGTH = 4096 # Maximum length for filepaths (Linux PATH_MAX default value)
|
32
36
|
MAX_KEYBOARD_KEYS = 512 # Maximum number of keyboard keys supported
|
@@ -40,6 +44,7 @@ module Raylib
|
|
40
44
|
MAX_CHAR_PRESSED_QUEUE = 16 # Maximum number of characters in the char input queue
|
41
45
|
MAX_DECOMPRESSION_SIZE = 64 # Max size allocated for decompression in MB
|
42
46
|
MAX_AUTOMATION_EVENTS = 16384 # Maximum number of automation events to record
|
47
|
+
RL_SUPPORT_MESH_GPU_SKINNING = 1 # GPU skinning, comment if your GPU does not support more than 8 VBOs
|
43
48
|
RL_DEFAULT_BATCH_BUFFERS = 1 # Default number of batch buffers (multi-buffering)
|
44
49
|
RL_DEFAULT_BATCH_DRAWCALLS = 256 # Default number of batch draw calls (by state changes: mode, texture)
|
45
50
|
RL_DEFAULT_BATCH_MAX_TEXTURE_UNITS = 4 # Maximum number of textures units that can be activated on batch drawing (SetShaderValueTexture())
|
@@ -54,6 +59,8 @@ module Raylib
|
|
54
59
|
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT = 4
|
55
60
|
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2 = 5
|
56
61
|
RL_DEFAULT_SHADER_ATTRIB_LOCATION_INDICES = 6
|
62
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEIDS = 7
|
63
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEWEIGHTS = 8
|
57
64
|
RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION = "vertexPosition" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION
|
58
65
|
RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD = "vertexTexCoord" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD
|
59
66
|
RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL = "vertexNormal" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL
|
@@ -71,7 +78,6 @@ module Raylib
|
|
71
78
|
RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE2 = "texture2" # texture2 (texture slot active 2)
|
72
79
|
SUPPORT_QUADS_DRAW_MODE = 1
|
73
80
|
SPLINE_SEGMENT_DIVISIONS = 24 # Spline segments subdivisions
|
74
|
-
SUPPORT_FILEFORMAT_PNG = 1
|
75
81
|
SUPPORT_FILEFORMAT_GIF = 1
|
76
82
|
SUPPORT_FILEFORMAT_QOI = 1
|
77
83
|
SUPPORT_FILEFORMAT_DDS = 1
|
@@ -93,14 +99,13 @@ module Raylib
|
|
93
99
|
SUPPORT_FILEFORMAT_M3D = 1
|
94
100
|
SUPPORT_MESH_GENERATION = 1
|
95
101
|
MAX_MATERIAL_MAPS = 12 # Maximum number of shader maps supported
|
96
|
-
MAX_MESH_VERTEX_BUFFERS =
|
102
|
+
MAX_MESH_VERTEX_BUFFERS = 9 # Maximum vertex buffers (VBO) per mesh
|
97
103
|
SUPPORT_FILEFORMAT_WAV = 1
|
98
104
|
SUPPORT_FILEFORMAT_OGG = 1
|
99
105
|
SUPPORT_FILEFORMAT_MP3 = 1
|
100
106
|
SUPPORT_FILEFORMAT_QOA = 1
|
101
107
|
SUPPORT_FILEFORMAT_XM = 1
|
102
108
|
SUPPORT_FILEFORMAT_MOD = 1
|
103
|
-
AUDIO_DEVICE_FORMAT = "ma_format_f32" # Device output format (miniaudio: float-32bit)
|
104
109
|
AUDIO_DEVICE_CHANNELS = 2 # Device output channels: stereo
|
105
110
|
AUDIO_DEVICE_SAMPLE_RATE = 0 # Device sample rate (device default)
|
106
111
|
MAX_AUDIO_BUFFER_POOL_CHANNELS = 16 # Maximum number of audio pool channels
|
data/lib/libraylib.dll
CHANGED
Binary file
|
data/lib/physac.dll
CHANGED
Binary file
|
data/lib/raygui.dll
CHANGED
Binary file
|
data/lib/raylib_main.rb
CHANGED
@@ -12,9 +12,9 @@ module Raylib
|
|
12
12
|
# Define/Macro
|
13
13
|
|
14
14
|
RAYLIB_VERSION_MAJOR = 5
|
15
|
-
RAYLIB_VERSION_MINOR =
|
15
|
+
RAYLIB_VERSION_MINOR = 6
|
16
16
|
RAYLIB_VERSION_PATCH = 0
|
17
|
-
RAYLIB_VERSION = "5.
|
17
|
+
RAYLIB_VERSION = "5.6-dev"
|
18
18
|
|
19
19
|
# Enum
|
20
20
|
|
@@ -330,7 +330,6 @@ module Raylib
|
|
330
330
|
CUBEMAP_LAYOUT_LINE_HORIZONTAL = 2 # Layout is defined by a horizontal line with faces
|
331
331
|
CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR = 3 # Layout is defined by a 3x4 cross with cubemap faces
|
332
332
|
CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = 4 # Layout is defined by a 4x3 cross with cubemap faces
|
333
|
-
CUBEMAP_LAYOUT_PANORAMA = 5 # Layout is defined by a panorama image (equirrectangular map)
|
334
333
|
|
335
334
|
# enum FontType
|
336
335
|
# Font type, defines generation method
|
@@ -406,7 +405,7 @@ module Raylib
|
|
406
405
|
typedef :int, :CameraMode
|
407
406
|
typedef :int, :CameraProjection
|
408
407
|
typedef :int, :NPatchLayout
|
409
|
-
callback :TraceLogCallback, [:int, :pointer, :
|
408
|
+
callback :TraceLogCallback, [:int, :pointer, :int], :void
|
410
409
|
callback :LoadFileDataCallback, [:pointer, :pointer], :pointer
|
411
410
|
callback :SaveFileDataCallback, [:pointer, :pointer, :int], :bool
|
412
411
|
callback :LoadFileTextCallback, [:pointer], :pointer
|
@@ -1164,22 +1163,22 @@ module Raylib
|
|
1164
1163
|
[:IsWindowFullscreen, :IsWindowFullscreen, [], :bool],
|
1165
1164
|
|
1166
1165
|
# @!method IsWindowHidden()
|
1167
|
-
# IsWindowHidden : Check if window is currently hidden
|
1166
|
+
# IsWindowHidden : Check if window is currently hidden
|
1168
1167
|
# @return [bool]
|
1169
1168
|
[:IsWindowHidden, :IsWindowHidden, [], :bool],
|
1170
1169
|
|
1171
1170
|
# @!method IsWindowMinimized()
|
1172
|
-
# IsWindowMinimized : Check if window is currently minimized
|
1171
|
+
# IsWindowMinimized : Check if window is currently minimized
|
1173
1172
|
# @return [bool]
|
1174
1173
|
[:IsWindowMinimized, :IsWindowMinimized, [], :bool],
|
1175
1174
|
|
1176
1175
|
# @!method IsWindowMaximized()
|
1177
|
-
# IsWindowMaximized : Check if window is currently maximized
|
1176
|
+
# IsWindowMaximized : Check if window is currently maximized
|
1178
1177
|
# @return [bool]
|
1179
1178
|
[:IsWindowMaximized, :IsWindowMaximized, [], :bool],
|
1180
1179
|
|
1181
1180
|
# @!method IsWindowFocused()
|
1182
|
-
# IsWindowFocused : Check if window is currently focused
|
1181
|
+
# IsWindowFocused : Check if window is currently focused
|
1183
1182
|
# @return [bool]
|
1184
1183
|
[:IsWindowFocused, :IsWindowFocused, [], :bool],
|
1185
1184
|
|
@@ -1195,7 +1194,7 @@ module Raylib
|
|
1195
1194
|
[:IsWindowState, :IsWindowState, [:uint], :bool],
|
1196
1195
|
|
1197
1196
|
# @!method SetWindowState(flags)
|
1198
|
-
# SetWindowState : Set window configuration state using flags
|
1197
|
+
# SetWindowState : Set window configuration state using flags
|
1199
1198
|
# @param flags [unsigned int]
|
1200
1199
|
# @return [void]
|
1201
1200
|
[:SetWindowState, :SetWindowState, [:uint], :void],
|
@@ -1207,51 +1206,51 @@ module Raylib
|
|
1207
1206
|
[:ClearWindowState, :ClearWindowState, [:uint], :void],
|
1208
1207
|
|
1209
1208
|
# @!method ToggleFullscreen()
|
1210
|
-
# ToggleFullscreen : Toggle window state: fullscreen/windowed
|
1209
|
+
# ToggleFullscreen : Toggle window state: fullscreen/windowed, resizes monitor to match window resolution
|
1211
1210
|
# @return [void]
|
1212
1211
|
[:ToggleFullscreen, :ToggleFullscreen, [], :void],
|
1213
1212
|
|
1214
1213
|
# @!method ToggleBorderlessWindowed()
|
1215
|
-
# ToggleBorderlessWindowed : Toggle window state: borderless windowed
|
1214
|
+
# ToggleBorderlessWindowed : Toggle window state: borderless windowed, resizes window to match monitor resolution
|
1216
1215
|
# @return [void]
|
1217
1216
|
[:ToggleBorderlessWindowed, :ToggleBorderlessWindowed, [], :void],
|
1218
1217
|
|
1219
1218
|
# @!method MaximizeWindow()
|
1220
|
-
# MaximizeWindow : Set window state: maximized, if resizable
|
1219
|
+
# MaximizeWindow : Set window state: maximized, if resizable
|
1221
1220
|
# @return [void]
|
1222
1221
|
[:MaximizeWindow, :MaximizeWindow, [], :void],
|
1223
1222
|
|
1224
1223
|
# @!method MinimizeWindow()
|
1225
|
-
# MinimizeWindow : Set window state: minimized, if resizable
|
1224
|
+
# MinimizeWindow : Set window state: minimized, if resizable
|
1226
1225
|
# @return [void]
|
1227
1226
|
[:MinimizeWindow, :MinimizeWindow, [], :void],
|
1228
1227
|
|
1229
1228
|
# @!method RestoreWindow()
|
1230
|
-
# RestoreWindow : Set window state: not minimized/maximized
|
1229
|
+
# RestoreWindow : Set window state: not minimized/maximized
|
1231
1230
|
# @return [void]
|
1232
1231
|
[:RestoreWindow, :RestoreWindow, [], :void],
|
1233
1232
|
|
1234
1233
|
# @!method SetWindowIcon(image)
|
1235
|
-
# SetWindowIcon : Set icon for window (single image, RGBA 32bit
|
1234
|
+
# SetWindowIcon : Set icon for window (single image, RGBA 32bit)
|
1236
1235
|
# @param image [Image]
|
1237
1236
|
# @return [void]
|
1238
1237
|
[:SetWindowIcon, :SetWindowIcon, [Image.by_value], :void],
|
1239
1238
|
|
1240
1239
|
# @!method SetWindowIcons(images, count)
|
1241
|
-
# SetWindowIcons : Set icon for window (multiple images, RGBA 32bit
|
1240
|
+
# SetWindowIcons : Set icon for window (multiple images, RGBA 32bit)
|
1242
1241
|
# @param images [Image *]
|
1243
1242
|
# @param count [int]
|
1244
1243
|
# @return [void]
|
1245
1244
|
[:SetWindowIcons, :SetWindowIcons, [:pointer, :int], :void],
|
1246
1245
|
|
1247
1246
|
# @!method SetWindowTitle(title)
|
1248
|
-
# SetWindowTitle : Set title for window
|
1247
|
+
# SetWindowTitle : Set title for window
|
1249
1248
|
# @param title [const char *]
|
1250
1249
|
# @return [void]
|
1251
1250
|
[:SetWindowTitle, :SetWindowTitle, [:pointer], :void],
|
1252
1251
|
|
1253
1252
|
# @!method SetWindowPosition(x, y)
|
1254
|
-
# SetWindowPosition : Set window position on screen
|
1253
|
+
# SetWindowPosition : Set window position on screen
|
1255
1254
|
# @param x [int]
|
1256
1255
|
# @param y [int]
|
1257
1256
|
# @return [void]
|
@@ -1285,13 +1284,13 @@ module Raylib
|
|
1285
1284
|
[:SetWindowSize, :SetWindowSize, [:int, :int], :void],
|
1286
1285
|
|
1287
1286
|
# @!method SetWindowOpacity(opacity)
|
1288
|
-
# SetWindowOpacity : Set window opacity [0.0f..1.0f]
|
1287
|
+
# SetWindowOpacity : Set window opacity [0.0f..1.0f]
|
1289
1288
|
# @param opacity [float]
|
1290
1289
|
# @return [void]
|
1291
1290
|
[:SetWindowOpacity, :SetWindowOpacity, [:float], :void],
|
1292
1291
|
|
1293
1292
|
# @!method SetWindowFocused()
|
1294
|
-
# SetWindowFocused : Set window focused
|
1293
|
+
# SetWindowFocused : Set window focused
|
1295
1294
|
# @return [void]
|
1296
1295
|
[:SetWindowFocused, :SetWindowFocused, [], :void],
|
1297
1296
|
|
@@ -1326,7 +1325,7 @@ module Raylib
|
|
1326
1325
|
[:GetMonitorCount, :GetMonitorCount, [], :int],
|
1327
1326
|
|
1328
1327
|
# @!method GetCurrentMonitor()
|
1329
|
-
# GetCurrentMonitor : Get current
|
1328
|
+
# GetCurrentMonitor : Get current monitor where window is placed
|
1330
1329
|
# @return [int]
|
1331
1330
|
[:GetCurrentMonitor, :GetCurrentMonitor, [], :int],
|
1332
1331
|
|
@@ -1393,6 +1392,11 @@ module Raylib
|
|
1393
1392
|
# @return [const char *]
|
1394
1393
|
[:GetClipboardText, :GetClipboardText, [], :pointer],
|
1395
1394
|
|
1395
|
+
# @!method GetClipboardImage()
|
1396
|
+
# GetClipboardImage : Get clipboard image content
|
1397
|
+
# @return [Image]
|
1398
|
+
[:GetClipboardImage, :GetClipboardImage, [], Image.by_value],
|
1399
|
+
|
1396
1400
|
# @!method EnableEventWaiting()
|
1397
1401
|
# EnableEventWaiting : Enable waiting for events on EndDrawing(), no automatic event polling
|
1398
1402
|
# @return [void]
|
@@ -1555,11 +1559,11 @@ module Raylib
|
|
1555
1559
|
# @return [Shader]
|
1556
1560
|
[:LoadShaderFromMemory, :LoadShaderFromMemory, [:pointer, :pointer], Shader.by_value],
|
1557
1561
|
|
1558
|
-
# @!method
|
1559
|
-
#
|
1562
|
+
# @!method IsShaderValid(shader)
|
1563
|
+
# IsShaderValid : Check if a shader is valid (loaded on GPU)
|
1560
1564
|
# @param shader [Shader]
|
1561
1565
|
# @return [bool]
|
1562
|
-
[:
|
1566
|
+
[:IsShaderValid, :IsShaderValid, [Shader.by_value], :bool],
|
1563
1567
|
|
1564
1568
|
# @!method GetShaderLocation(shader, uniformName)
|
1565
1569
|
# GetShaderLocation : Get shader uniform location
|
@@ -2029,6 +2033,27 @@ module Raylib
|
|
2029
2033
|
# @return [unsigned char *]
|
2030
2034
|
[:DecodeDataBase64, :DecodeDataBase64, [:pointer, :pointer], :pointer],
|
2031
2035
|
|
2036
|
+
# @!method ComputeCRC32(data, dataSize)
|
2037
|
+
# ComputeCRC32 : Compute CRC32 hash code
|
2038
|
+
# @param data [unsigned char *]
|
2039
|
+
# @param dataSize [int]
|
2040
|
+
# @return [unsigned int]
|
2041
|
+
[:ComputeCRC32, :ComputeCRC32, [:pointer, :int], :uint],
|
2042
|
+
|
2043
|
+
# @!method ComputeMD5(data, dataSize)
|
2044
|
+
# ComputeMD5 : Compute MD5 hash code, returns static int[4] (16 bytes)
|
2045
|
+
# @param data [unsigned char *]
|
2046
|
+
# @param dataSize [int]
|
2047
|
+
# @return [unsigned int *]
|
2048
|
+
[:ComputeMD5, :ComputeMD5, [:pointer, :int], :pointer],
|
2049
|
+
|
2050
|
+
# @!method ComputeSHA1(data, dataSize)
|
2051
|
+
# ComputeSHA1 : Compute SHA1 hash code, returns static int[5] (20 bytes)
|
2052
|
+
# @param data [unsigned char *]
|
2053
|
+
# @param dataSize [int]
|
2054
|
+
# @return [unsigned int *]
|
2055
|
+
[:ComputeSHA1, :ComputeSHA1, [:pointer, :int], :pointer],
|
2056
|
+
|
2032
2057
|
# @!method LoadAutomationEventList(fileName)
|
2033
2058
|
# LoadAutomationEventList : Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS
|
2034
2059
|
# @param fileName [const char *]
|
@@ -2083,7 +2108,7 @@ module Raylib
|
|
2083
2108
|
[:IsKeyPressed, :IsKeyPressed, [:int], :bool],
|
2084
2109
|
|
2085
2110
|
# @!method IsKeyPressedRepeat(key)
|
2086
|
-
# IsKeyPressedRepeat : Check if a key has been pressed again
|
2111
|
+
# IsKeyPressedRepeat : Check if a key has been pressed again
|
2087
2112
|
# @param key [int]
|
2088
2113
|
# @return [bool]
|
2089
2114
|
[:IsKeyPressedRepeat, :IsKeyPressedRepeat, [:int], :bool],
|
@@ -2186,13 +2211,14 @@ module Raylib
|
|
2186
2211
|
# @return [int]
|
2187
2212
|
[:SetGamepadMappings, :SetGamepadMappings, [:pointer], :int],
|
2188
2213
|
|
2189
|
-
# @!method SetGamepadVibration(gamepad, leftMotor, rightMotor)
|
2190
|
-
# SetGamepadVibration : Set gamepad vibration for both motors
|
2214
|
+
# @!method SetGamepadVibration(gamepad, leftMotor, rightMotor, duration)
|
2215
|
+
# SetGamepadVibration : Set gamepad vibration for both motors (duration in seconds)
|
2191
2216
|
# @param gamepad [int]
|
2192
2217
|
# @param leftMotor [float]
|
2193
2218
|
# @param rightMotor [float]
|
2219
|
+
# @param duration [float]
|
2194
2220
|
# @return [void]
|
2195
|
-
[:SetGamepadVibration, :SetGamepadVibration, [:int, :float, :float], :void],
|
2221
|
+
[:SetGamepadVibration, :SetGamepadVibration, [:int, :float, :float, :float], :void],
|
2196
2222
|
|
2197
2223
|
# @!method IsMouseButtonPressed(button)
|
2198
2224
|
# IsMouseButtonPressed : Check if a mouse button has been pressed once
|
@@ -2320,7 +2346,7 @@ module Raylib
|
|
2320
2346
|
[:GetGestureDetected, :GetGestureDetected, [], :int],
|
2321
2347
|
|
2322
2348
|
# @!method GetGestureHoldDuration()
|
2323
|
-
# GetGestureHoldDuration : Get gesture hold time in
|
2349
|
+
# GetGestureHoldDuration : Get gesture hold time in seconds
|
2324
2350
|
# @return [float]
|
2325
2351
|
[:GetGestureHoldDuration, :GetGestureHoldDuration, [], :float],
|
2326
2352
|
|
@@ -2891,6 +2917,15 @@ module Raylib
|
|
2891
2917
|
# @return [bool]
|
2892
2918
|
[:CheckCollisionCircleRec, :CheckCollisionCircleRec, [Vector2.by_value, :float, Rectangle.by_value], :bool],
|
2893
2919
|
|
2920
|
+
# @!method CheckCollisionCircleLine(center, radius, p1, p2)
|
2921
|
+
# CheckCollisionCircleLine : Check if circle collides with a line created betweeen two points [p1] and [p2]
|
2922
|
+
# @param center [Vector2]
|
2923
|
+
# @param radius [float]
|
2924
|
+
# @param p1 [Vector2]
|
2925
|
+
# @param p2 [Vector2]
|
2926
|
+
# @return [bool]
|
2927
|
+
[:CheckCollisionCircleLine, :CheckCollisionCircleLine, [Vector2.by_value, :float, Vector2.by_value, Vector2.by_value], :bool],
|
2928
|
+
|
2894
2929
|
# @!method CheckCollisionPointRec(point, rec)
|
2895
2930
|
# CheckCollisionPointRec : Check if point is inside rectangle
|
2896
2931
|
# @param point [Vector2]
|
@@ -2915,6 +2950,15 @@ module Raylib
|
|
2915
2950
|
# @return [bool]
|
2916
2951
|
[:CheckCollisionPointTriangle, :CheckCollisionPointTriangle, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value], :bool],
|
2917
2952
|
|
2953
|
+
# @!method CheckCollisionPointLine(point, p1, p2, threshold)
|
2954
|
+
# CheckCollisionPointLine : Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
|
2955
|
+
# @param point [Vector2]
|
2956
|
+
# @param p1 [Vector2]
|
2957
|
+
# @param p2 [Vector2]
|
2958
|
+
# @param threshold [int]
|
2959
|
+
# @return [bool]
|
2960
|
+
[:CheckCollisionPointLine, :CheckCollisionPointLine, [Vector2.by_value, Vector2.by_value, Vector2.by_value, :int], :bool],
|
2961
|
+
|
2918
2962
|
# @!method CheckCollisionPointPoly(point, points, pointCount)
|
2919
2963
|
# CheckCollisionPointPoly : Check if point is within a polygon described by array of vertices
|
2920
2964
|
# @param point [Vector2]
|
@@ -2933,24 +2977,6 @@ module Raylib
|
|
2933
2977
|
# @return [bool]
|
2934
2978
|
[:CheckCollisionLines, :CheckCollisionLines, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :pointer], :bool],
|
2935
2979
|
|
2936
|
-
# @!method CheckCollisionPointLine(point, p1, p2, threshold)
|
2937
|
-
# CheckCollisionPointLine : Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
|
2938
|
-
# @param point [Vector2]
|
2939
|
-
# @param p1 [Vector2]
|
2940
|
-
# @param p2 [Vector2]
|
2941
|
-
# @param threshold [int]
|
2942
|
-
# @return [bool]
|
2943
|
-
[:CheckCollisionPointLine, :CheckCollisionPointLine, [Vector2.by_value, Vector2.by_value, Vector2.by_value, :int], :bool],
|
2944
|
-
|
2945
|
-
# @!method CheckCollisionCircleLine(center, radius, p1, p2)
|
2946
|
-
# CheckCollisionCircleLine : Check if circle collides with a line created betweeen two points [p1] and [p2]
|
2947
|
-
# @param center [Vector2]
|
2948
|
-
# @param radius [float]
|
2949
|
-
# @param p1 [Vector2]
|
2950
|
-
# @param p2 [Vector2]
|
2951
|
-
# @return [bool]
|
2952
|
-
[:CheckCollisionCircleLine, :CheckCollisionCircleLine, [Vector2.by_value, :float, Vector2.by_value, Vector2.by_value], :bool],
|
2953
|
-
|
2954
2980
|
# @!method GetCollisionRec(rec1, rec2)
|
2955
2981
|
# GetCollisionRec : Get collision rectangle for two rectangles collision
|
2956
2982
|
# @param rec1 [Rectangle]
|
@@ -3009,11 +3035,11 @@ module Raylib
|
|
3009
3035
|
# @return [Image]
|
3010
3036
|
[:LoadImageFromScreen, :LoadImageFromScreen, [], Image.by_value],
|
3011
3037
|
|
3012
|
-
# @!method
|
3013
|
-
#
|
3038
|
+
# @!method IsImageValid(image)
|
3039
|
+
# IsImageValid : Check if an image is valid (data and parameters)
|
3014
3040
|
# @param image [Image]
|
3015
3041
|
# @return [bool]
|
3016
|
-
[:
|
3042
|
+
[:IsImageValid, :IsImageValid, [Image.by_value], :bool],
|
3017
3043
|
|
3018
3044
|
# @!method UnloadImage(image)
|
3019
3045
|
# UnloadImage : Unload image from CPU memory (RAM)
|
@@ -3622,11 +3648,11 @@ module Raylib
|
|
3622
3648
|
# @return [RenderTexture2D]
|
3623
3649
|
[:LoadRenderTexture, :LoadRenderTexture, [:int, :int], RenderTexture2D.by_value],
|
3624
3650
|
|
3625
|
-
# @!method
|
3626
|
-
#
|
3651
|
+
# @!method IsTextureValid(texture)
|
3652
|
+
# IsTextureValid : Check if a texture is valid (loaded in GPU)
|
3627
3653
|
# @param texture [Texture2D]
|
3628
3654
|
# @return [bool]
|
3629
|
-
[:
|
3655
|
+
[:IsTextureValid, :IsTextureValid, [Texture2D.by_value], :bool],
|
3630
3656
|
|
3631
3657
|
# @!method UnloadTexture(texture)
|
3632
3658
|
# UnloadTexture : Unload texture from GPU memory (VRAM)
|
@@ -3634,11 +3660,11 @@ module Raylib
|
|
3634
3660
|
# @return [void]
|
3635
3661
|
[:UnloadTexture, :UnloadTexture, [Texture2D.by_value], :void],
|
3636
3662
|
|
3637
|
-
# @!method
|
3638
|
-
#
|
3663
|
+
# @!method IsRenderTextureValid(target)
|
3664
|
+
# IsRenderTextureValid : Check if a render texture is valid (loaded in GPU)
|
3639
3665
|
# @param target [RenderTexture2D]
|
3640
3666
|
# @return [bool]
|
3641
|
-
[:
|
3667
|
+
[:IsRenderTextureValid, :IsRenderTextureValid, [RenderTexture2D.by_value], :bool],
|
3642
3668
|
|
3643
3669
|
# @!method UnloadRenderTexture(target)
|
3644
3670
|
# UnloadRenderTexture : Unload render texture from GPU memory (VRAM)
|
@@ -3897,11 +3923,11 @@ module Raylib
|
|
3897
3923
|
# @return [Font]
|
3898
3924
|
[:LoadFontFromMemory, :LoadFontFromMemory, [:pointer, :pointer, :int, :int, :pointer, :int], Font.by_value],
|
3899
3925
|
|
3900
|
-
# @!method
|
3901
|
-
#
|
3926
|
+
# @!method IsFontValid(font)
|
3927
|
+
# IsFontValid : Check if a font is valid (font data loaded, WARNING: GPU texture not checked)
|
3902
3928
|
# @param font [Font]
|
3903
3929
|
# @return [bool]
|
3904
|
-
[:
|
3930
|
+
[:IsFontValid, :IsFontValid, [Font.by_value], :bool],
|
3905
3931
|
|
3906
3932
|
# @!method LoadFontData(fileData, dataSize, fontSize, codepoints, codepointCount, type)
|
3907
3933
|
# LoadFontData : Load font data for further use
|
@@ -4441,11 +4467,11 @@ module Raylib
|
|
4441
4467
|
# @return [Model]
|
4442
4468
|
[:LoadModelFromMesh, :LoadModelFromMesh, [Mesh.by_value], Model.by_value],
|
4443
4469
|
|
4444
|
-
# @!method
|
4445
|
-
#
|
4470
|
+
# @!method IsModelValid(model)
|
4471
|
+
# IsModelValid : Check if a model is valid (loaded in GPU, VAO/VBOs)
|
4446
4472
|
# @param model [Model]
|
4447
4473
|
# @return [bool]
|
4448
|
-
[:
|
4474
|
+
[:IsModelValid, :IsModelValid, [Model.by_value], :bool],
|
4449
4475
|
|
4450
4476
|
# @!method UnloadModel(model)
|
4451
4477
|
# UnloadModel : Unload model (including meshes) from memory (RAM and/or VRAM)
|
@@ -4727,11 +4753,11 @@ module Raylib
|
|
4727
4753
|
# @return [Material]
|
4728
4754
|
[:LoadMaterialDefault, :LoadMaterialDefault, [], Material.by_value],
|
4729
4755
|
|
4730
|
-
# @!method
|
4731
|
-
#
|
4756
|
+
# @!method IsMaterialValid(material)
|
4757
|
+
# IsMaterialValid : Check if a material is valid (shader assigned, map textures loaded in GPU)
|
4732
4758
|
# @param material [Material]
|
4733
4759
|
# @return [bool]
|
4734
|
-
[:
|
4760
|
+
[:IsMaterialValid, :IsMaterialValid, [Material.by_value], :bool],
|
4735
4761
|
|
4736
4762
|
# @!method UnloadMaterial(material)
|
4737
4763
|
# UnloadMaterial : Unload material from GPU memory (VRAM)
|
@@ -4763,13 +4789,21 @@ module Raylib
|
|
4763
4789
|
[:LoadModelAnimations, :LoadModelAnimations, [:pointer, :pointer], :pointer],
|
4764
4790
|
|
4765
4791
|
# @!method UpdateModelAnimation(model, anim, frame)
|
4766
|
-
# UpdateModelAnimation : Update model animation pose
|
4792
|
+
# UpdateModelAnimation : Update model animation pose (CPU)
|
4767
4793
|
# @param model [Model]
|
4768
4794
|
# @param anim [ModelAnimation]
|
4769
4795
|
# @param frame [int]
|
4770
4796
|
# @return [void]
|
4771
4797
|
[:UpdateModelAnimation, :UpdateModelAnimation, [Model.by_value, ModelAnimation.by_value, :int], :void],
|
4772
4798
|
|
4799
|
+
# @!method UpdateModelAnimationBones(model, anim, frame)
|
4800
|
+
# UpdateModelAnimationBones : Update model animation mesh bone matrices (GPU skinning)
|
4801
|
+
# @param model [Model]
|
4802
|
+
# @param anim [ModelAnimation]
|
4803
|
+
# @param frame [int]
|
4804
|
+
# @return [void]
|
4805
|
+
[:UpdateModelAnimationBones, :UpdateModelAnimationBones, [Model.by_value, ModelAnimation.by_value, :int], :void],
|
4806
|
+
|
4773
4807
|
# @!method UnloadModelAnimation(anim)
|
4774
4808
|
# UnloadModelAnimation : Unload animation data
|
4775
4809
|
# @param anim [ModelAnimation]
|
@@ -4790,14 +4824,6 @@ module Raylib
|
|
4790
4824
|
# @return [bool]
|
4791
4825
|
[:IsModelAnimationValid, :IsModelAnimationValid, [Model.by_value, ModelAnimation.by_value], :bool],
|
4792
4826
|
|
4793
|
-
# @!method UpdateModelAnimationBoneMatrices(model, anim, frame)
|
4794
|
-
# UpdateModelAnimationBoneMatrices : Update model animation mesh bone matrices (Note GPU skinning does not work on Mac)
|
4795
|
-
# @param model [Model]
|
4796
|
-
# @param anim [ModelAnimation]
|
4797
|
-
# @param frame [int]
|
4798
|
-
# @return [void]
|
4799
|
-
[:UpdateModelAnimationBoneMatrices, :UpdateModelAnimationBoneMatrices, [Model.by_value, ModelAnimation.by_value, :int], :void],
|
4800
|
-
|
4801
4827
|
# @!method CheckCollisionSpheres(center1, radius1, center2, radius2)
|
4802
4828
|
# CheckCollisionSpheres : Check collision between two spheres
|
4803
4829
|
# @param center1 [Vector3]
|
@@ -4904,11 +4930,11 @@ module Raylib
|
|
4904
4930
|
# @return [Wave]
|
4905
4931
|
[:LoadWaveFromMemory, :LoadWaveFromMemory, [:pointer, :pointer, :int], Wave.by_value],
|
4906
4932
|
|
4907
|
-
# @!method
|
4908
|
-
#
|
4933
|
+
# @!method IsWaveValid(wave)
|
4934
|
+
# IsWaveValid : Checks if wave data is valid (data loaded and parameters)
|
4909
4935
|
# @param wave [Wave]
|
4910
4936
|
# @return [bool]
|
4911
|
-
[:
|
4937
|
+
[:IsWaveValid, :IsWaveValid, [Wave.by_value], :bool],
|
4912
4938
|
|
4913
4939
|
# @!method LoadSound(fileName)
|
4914
4940
|
# LoadSound : Load sound from file
|
@@ -4928,11 +4954,11 @@ module Raylib
|
|
4928
4954
|
# @return [Sound]
|
4929
4955
|
[:LoadSoundAlias, :LoadSoundAlias, [Sound.by_value], Sound.by_value],
|
4930
4956
|
|
4931
|
-
# @!method
|
4932
|
-
#
|
4957
|
+
# @!method IsSoundValid(sound)
|
4958
|
+
# IsSoundValid : Checks if a sound is valid (data loaded and buffers initialized)
|
4933
4959
|
# @param sound [Sound]
|
4934
4960
|
# @return [bool]
|
4935
|
-
[:
|
4961
|
+
[:IsSoundValid, :IsSoundValid, [Sound.by_value], :bool],
|
4936
4962
|
|
4937
4963
|
# @!method UpdateSound(sound, data, sampleCount)
|
4938
4964
|
# UpdateSound : Update sound buffer with new data
|
@@ -5074,11 +5100,11 @@ module Raylib
|
|
5074
5100
|
# @return [Music]
|
5075
5101
|
[:LoadMusicStreamFromMemory, :LoadMusicStreamFromMemory, [:pointer, :pointer, :int], Music.by_value],
|
5076
5102
|
|
5077
|
-
# @!method
|
5078
|
-
#
|
5103
|
+
# @!method IsMusicValid(music)
|
5104
|
+
# IsMusicValid : Checks if a music stream is valid (context and buffers initialized)
|
5079
5105
|
# @param music [Music]
|
5080
5106
|
# @return [bool]
|
5081
|
-
[:
|
5107
|
+
[:IsMusicValid, :IsMusicValid, [Music.by_value], :bool],
|
5082
5108
|
|
5083
5109
|
# @!method UnloadMusicStream(music)
|
5084
5110
|
# UnloadMusicStream : Unload music stream
|
@@ -5170,11 +5196,11 @@ module Raylib
|
|
5170
5196
|
# @return [AudioStream]
|
5171
5197
|
[:LoadAudioStream, :LoadAudioStream, [:uint, :uint, :uint], AudioStream.by_value],
|
5172
5198
|
|
5173
|
-
# @!method
|
5174
|
-
#
|
5199
|
+
# @!method IsAudioStreamValid(stream)
|
5200
|
+
# IsAudioStreamValid : Checks if an audio stream is valid (buffers initialized)
|
5175
5201
|
# @param stream [AudioStream]
|
5176
5202
|
# @return [bool]
|
5177
|
-
[:
|
5203
|
+
[:IsAudioStreamValid, :IsAudioStreamValid, [AudioStream.by_value], :bool],
|
5178
5204
|
|
5179
5205
|
# @!method UnloadAudioStream(stream)
|
5180
5206
|
# UnloadAudioStream : Unload audio stream and free memory
|
data/lib/raymath.rb
CHANGED
@@ -147,6 +147,13 @@ module Raylib
|
|
147
147
|
# @return [float]
|
148
148
|
[:Vector2DotProduct, :Vector2DotProduct, [Vector2.by_value, Vector2.by_value], :float],
|
149
149
|
|
150
|
+
# @!method Vector2CrossProduct(v1, v2)
|
151
|
+
# Vector2CrossProduct
|
152
|
+
# @param v1 [Vector2]
|
153
|
+
# @param v2 [Vector2]
|
154
|
+
# @return [float]
|
155
|
+
[:Vector2CrossProduct, :Vector2CrossProduct, [Vector2.by_value, Vector2.by_value], :float],
|
156
|
+
|
150
157
|
# @!method Vector2Distance(v1, v2)
|
151
158
|
# Vector2Distance
|
152
159
|
# @param v1 [Vector2]
|
data/lib/rlgl.rb
CHANGED
@@ -79,7 +79,6 @@ module Raylib
|
|
79
79
|
RL_BLEND_COLOR = 0x8005 # GL_BLEND_COLOR
|
80
80
|
RL_READ_FRAMEBUFFER = 0x8CA8 # GL_READ_FRAMEBUFFER
|
81
81
|
RL_DRAW_FRAMEBUFFER = 0x8CA9 # GL_DRAW_FRAMEBUFFER
|
82
|
-
RL_DEFAULT_SHADER_ATTRIB_LOCATION_INDICES = 6
|
83
82
|
|
84
83
|
# Enum
|
85
84
|
|
@@ -1042,13 +1041,14 @@ module Raylib
|
|
1042
1041
|
# @return [unsigned int]
|
1043
1042
|
[:rlLoadTextureDepth, :rlLoadTextureDepth, [:int, :int, :bool], :uint],
|
1044
1043
|
|
1045
|
-
# @!method rlLoadTextureCubemap(data, size, format)
|
1044
|
+
# @!method rlLoadTextureCubemap(data, size, format, mipmapCount)
|
1046
1045
|
# rlLoadTextureCubemap : Load texture cubemap data
|
1047
1046
|
# @param data [const void *]
|
1048
1047
|
# @param size [int]
|
1049
1048
|
# @param format [int]
|
1049
|
+
# @param mipmapCount [int]
|
1050
1050
|
# @return [unsigned int]
|
1051
|
-
[:rlLoadTextureCubemap, :rlLoadTextureCubemap, [:pointer, :int, :int], :uint],
|
1051
|
+
[:rlLoadTextureCubemap, :rlLoadTextureCubemap, [:pointer, :int, :int, :int], :uint],
|
1052
1052
|
|
1053
1053
|
# @!method rlUpdateTexture(id, offsetX, offsetY, width, height, format, data)
|
1054
1054
|
# rlUpdateTexture : Update texture with new data on GPU
|
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.7.
|
4
|
+
version: 0.7.9
|
5
5
|
platform: x64-mingw
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|