raylib-bindings 0.7.6-aarch64-linux → 0.7.8-aarch64-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 +12 -0
- data/README.md +3 -3
- data/lib/config.rb +1 -0
- data/lib/libraylib.aarch64.so +0 -0
- data/lib/raygui.aarch64.so +0 -0
- data/lib/raygui_main.rb +3 -3
- data/lib/raylib_main.rb +100 -57
- data/lib/rlgl.rb +23 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d36d7ad03b266840dd157f6ca47419277ed78999972117a24e1e9d23ed44cbb3
|
4
|
+
data.tar.gz: 40c0c847a8c28f2756d7b0e8cc1e38bba20a6dc269f6146e8ba8431a6d757c86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42c298d1b13b67a913f5f594b8edc160d33f2347c402a23962248741389d02b7c61ad1c032a4bc072f620b289c0ec68910d0109d53156e5acf2f298a6999f4c5
|
7
|
+
data.tar.gz: 251dd7b2ce8dfcc5619b4e9f7e8b0ded99265a241f1b973d806cd84751e92c0113af03a359e48bba5df0ccb4b969110175b638ed5774c60c8a0578fd96c8dd4f
|
data/ChangeLog
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
2024-10-14 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/59417636ca956d64800e7e26d4f4ec331cf1b412 ) and raygui ( https://github.com/raysan5/raygui/commit/1e03efca48c50c5ea4b4a053d5bf04bad58d3e43 )
|
4
|
+
|
5
|
+
2024-09-16 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/186787e31179eec8280a429fae50b65ef58368d3 ) and raygui ( https://github.com/raysan5/raygui/commit/b5a81fb76eec3521f4cbd6c02ace0dcc7b1cc810 )
|
8
|
+
|
9
|
+
2024-09-07 vaiorabbit <http://twitter.com/vaiorabbit>
|
10
|
+
|
11
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/10b01ba7c2139b9203045bb56aa8403ca810cc6b ) and raygui ( https://github.com/raysan5/raygui/commit/6aae83894ac20b7ac8bf511f43d368f0ad409534 )
|
12
|
+
|
1
13
|
2024-08-12 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
14
|
|
3
15
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/418b8780533e6d7822aefcd1a1dd3cb6cca95fa5 )
|
data/README.md
CHANGED
@@ -3,15 +3,15 @@
|
|
3
3
|
# Yet another raylib wrapper for Ruby #
|
4
4
|
|
5
5
|
* Created : 2021-10-17
|
6
|
-
* Last modified : 2024-
|
6
|
+
* Last modified : 2024-10-14
|
7
7
|
|
8
8
|
Provides Ruby bindings for raylib-related libraries including:
|
9
9
|
|
10
|
-
* [raylib](https://github.com/raysan5/raylib) version [5.5-dev]( https://github.com/raysan5/raylib/commit/
|
10
|
+
* [raylib](https://github.com/raysan5/raylib) version [5.5-dev]( https://github.com/raysan5/raylib/commit/59417636ca956d64800e7e26d4f4ec331cf1b412 )
|
11
11
|
* raylib
|
12
12
|
* raymath
|
13
13
|
* rlgl
|
14
|
-
* [raygui](https://github.com/raysan5/raygui) version [4.5-dev]( https://github.com/raysan5/raygui/commit/
|
14
|
+
* [raygui](https://github.com/raysan5/raygui) version [4.5-dev]( https://github.com/raysan5/raygui/commit/1e03efca48c50c5ea4b4a053d5bf04bad58d3e43 )
|
15
15
|
* [Physac](https://github.com/raysan5/physac) version [1.1]( https://github.com/raysan5/physac/commit/4a8e17f263fb8e1150b3fbafc96f880c7d7a4833 )
|
16
16
|
|
17
17
|
<img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/bitmap_font_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/game_of_life_simple_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/lissajous_curve_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/procedural_texture_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/reversi_board_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/utf8_font_rb.png" width="125">
|
data/lib/config.rb
CHANGED
@@ -53,6 +53,7 @@ module Raylib
|
|
53
53
|
RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR = 3
|
54
54
|
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT = 4
|
55
55
|
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2 = 5
|
56
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_INDICES = 6
|
56
57
|
RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION = "vertexPosition" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION
|
57
58
|
RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD = "vertexTexCoord" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD
|
58
59
|
RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL = "vertexNormal" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL
|
data/lib/libraylib.aarch64.so
CHANGED
Binary file
|
data/lib/raygui.aarch64.so
CHANGED
Binary file
|
data/lib/raygui_main.rb
CHANGED
@@ -12,9 +12,9 @@ module Raylib
|
|
12
12
|
# Define/Macro
|
13
13
|
|
14
14
|
RAYGUI_VERSION_MAJOR = 4
|
15
|
-
RAYGUI_VERSION_MINOR =
|
15
|
+
RAYGUI_VERSION_MINOR = 5
|
16
16
|
RAYGUI_VERSION_PATCH = 0
|
17
|
-
RAYGUI_VERSION = "4.
|
17
|
+
RAYGUI_VERSION = "4.5-dev"
|
18
18
|
SCROLLBAR_LEFT_SIDE = 0
|
19
19
|
SCROLLBAR_RIGHT_SIDE = 1
|
20
20
|
|
@@ -385,7 +385,7 @@ module Raylib
|
|
385
385
|
ICON_LAYERS2 = 225
|
386
386
|
ICON_MLAYERS = 226
|
387
387
|
ICON_MAPS = 227
|
388
|
-
|
388
|
+
ICON_HOT = 228
|
389
389
|
ICON_229 = 229
|
390
390
|
ICON_230 = 230
|
391
391
|
ICON_231 = 231
|
data/lib/raylib_main.rb
CHANGED
@@ -231,32 +231,35 @@ module Raylib
|
|
231
231
|
|
232
232
|
# enum ShaderLocationIndex
|
233
233
|
# Shader location index
|
234
|
-
SHADER_LOC_VERTEX_POSITION = 0
|
235
|
-
SHADER_LOC_VERTEX_TEXCOORD01 = 1
|
236
|
-
SHADER_LOC_VERTEX_TEXCOORD02 = 2
|
237
|
-
SHADER_LOC_VERTEX_NORMAL = 3
|
238
|
-
SHADER_LOC_VERTEX_TANGENT = 4
|
239
|
-
SHADER_LOC_VERTEX_COLOR = 5
|
240
|
-
SHADER_LOC_MATRIX_MVP = 6
|
241
|
-
SHADER_LOC_MATRIX_VIEW = 7
|
242
|
-
SHADER_LOC_MATRIX_PROJECTION = 8
|
243
|
-
SHADER_LOC_MATRIX_MODEL = 9
|
244
|
-
SHADER_LOC_MATRIX_NORMAL = 10
|
245
|
-
SHADER_LOC_VECTOR_VIEW = 11
|
246
|
-
SHADER_LOC_COLOR_DIFFUSE = 12
|
247
|
-
SHADER_LOC_COLOR_SPECULAR = 13
|
248
|
-
SHADER_LOC_COLOR_AMBIENT = 14
|
249
|
-
SHADER_LOC_MAP_ALBEDO = 15
|
250
|
-
SHADER_LOC_MAP_METALNESS = 16
|
251
|
-
SHADER_LOC_MAP_NORMAL = 17
|
252
|
-
SHADER_LOC_MAP_ROUGHNESS = 18
|
253
|
-
SHADER_LOC_MAP_OCCLUSION = 19
|
254
|
-
SHADER_LOC_MAP_EMISSION = 20
|
255
|
-
SHADER_LOC_MAP_HEIGHT = 21
|
256
|
-
SHADER_LOC_MAP_CUBEMAP = 22
|
257
|
-
SHADER_LOC_MAP_IRRADIANCE = 23
|
258
|
-
SHADER_LOC_MAP_PREFILTER = 24
|
259
|
-
SHADER_LOC_MAP_BRDF = 25
|
234
|
+
SHADER_LOC_VERTEX_POSITION = 0 # Shader location: vertex attribute: position
|
235
|
+
SHADER_LOC_VERTEX_TEXCOORD01 = 1 # Shader location: vertex attribute: texcoord01
|
236
|
+
SHADER_LOC_VERTEX_TEXCOORD02 = 2 # Shader location: vertex attribute: texcoord02
|
237
|
+
SHADER_LOC_VERTEX_NORMAL = 3 # Shader location: vertex attribute: normal
|
238
|
+
SHADER_LOC_VERTEX_TANGENT = 4 # Shader location: vertex attribute: tangent
|
239
|
+
SHADER_LOC_VERTEX_COLOR = 5 # Shader location: vertex attribute: color
|
240
|
+
SHADER_LOC_MATRIX_MVP = 6 # Shader location: matrix uniform: model-view-projection
|
241
|
+
SHADER_LOC_MATRIX_VIEW = 7 # Shader location: matrix uniform: view (camera transform)
|
242
|
+
SHADER_LOC_MATRIX_PROJECTION = 8 # Shader location: matrix uniform: projection
|
243
|
+
SHADER_LOC_MATRIX_MODEL = 9 # Shader location: matrix uniform: model (transform)
|
244
|
+
SHADER_LOC_MATRIX_NORMAL = 10 # Shader location: matrix uniform: normal
|
245
|
+
SHADER_LOC_VECTOR_VIEW = 11 # Shader location: vector uniform: view
|
246
|
+
SHADER_LOC_COLOR_DIFFUSE = 12 # Shader location: vector uniform: diffuse color
|
247
|
+
SHADER_LOC_COLOR_SPECULAR = 13 # Shader location: vector uniform: specular color
|
248
|
+
SHADER_LOC_COLOR_AMBIENT = 14 # Shader location: vector uniform: ambient color
|
249
|
+
SHADER_LOC_MAP_ALBEDO = 15 # Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE)
|
250
|
+
SHADER_LOC_MAP_METALNESS = 16 # Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR)
|
251
|
+
SHADER_LOC_MAP_NORMAL = 17 # Shader location: sampler2d texture: normal
|
252
|
+
SHADER_LOC_MAP_ROUGHNESS = 18 # Shader location: sampler2d texture: roughness
|
253
|
+
SHADER_LOC_MAP_OCCLUSION = 19 # Shader location: sampler2d texture: occlusion
|
254
|
+
SHADER_LOC_MAP_EMISSION = 20 # Shader location: sampler2d texture: emission
|
255
|
+
SHADER_LOC_MAP_HEIGHT = 21 # Shader location: sampler2d texture: height
|
256
|
+
SHADER_LOC_MAP_CUBEMAP = 22 # Shader location: samplerCube texture: cubemap
|
257
|
+
SHADER_LOC_MAP_IRRADIANCE = 23 # Shader location: samplerCube texture: irradiance
|
258
|
+
SHADER_LOC_MAP_PREFILTER = 24 # Shader location: samplerCube texture: prefilter
|
259
|
+
SHADER_LOC_MAP_BRDF = 25 # Shader location: sampler2d texture: brdf
|
260
|
+
SHADER_LOC_VERTEX_BONEIDS = 26 # Shader location: vertex attribute: boneIds
|
261
|
+
SHADER_LOC_VERTEX_BONEWEIGHTS = 27 # Shader location: vertex attribute: boneWeights
|
262
|
+
SHADER_LOC_BONE_MATRICES = 28 # Shader location: array of matrices uniform: boneMatrices
|
260
263
|
|
261
264
|
# enum ShaderUniformDataType
|
262
265
|
# Shader uniform data type
|
@@ -403,7 +406,7 @@ module Raylib
|
|
403
406
|
typedef :int, :CameraMode
|
404
407
|
typedef :int, :CameraProjection
|
405
408
|
typedef :int, :NPatchLayout
|
406
|
-
callback :TraceLogCallback, [:int, :pointer, :
|
409
|
+
callback :TraceLogCallback, [:int, :pointer, :pointer], :void
|
407
410
|
callback :LoadFileDataCallback, [:pointer, :pointer], :pointer
|
408
411
|
callback :SaveFileDataCallback, [:pointer, :pointer, :int], :bool
|
409
412
|
callback :LoadFileTextCallback, [:pointer], :pointer
|
@@ -735,8 +738,10 @@ module Raylib
|
|
735
738
|
:indices, :pointer, # Vertex indices (in case vertex data comes indexed)
|
736
739
|
:animVertices, :pointer, # Animated vertex positions (after bones transformations)
|
737
740
|
:animNormals, :pointer, # Animated normals (after bones transformations)
|
738
|
-
:boneIds, :pointer, # Vertex bone ids, max 255 bone ids, up to 4 bones influence by vertex (skinning)
|
739
|
-
:boneWeights, :pointer, # Vertex bone weight, up to 4 bones influence by vertex (skinning)
|
741
|
+
:boneIds, :pointer, # Vertex bone ids, max 255 bone ids, up to 4 bones influence by vertex (skinning) (shader-location = 6)
|
742
|
+
:boneWeights, :pointer, # Vertex bone weight, up to 4 bones influence by vertex (skinning) (shader-location = 7)
|
743
|
+
:boneMatrices, :pointer, # Bones animated transformation matrices
|
744
|
+
:boneCount, :int, # Number of bones
|
740
745
|
:vaoId, :uint, # OpenGL Vertex Array Object id
|
741
746
|
:vboId, :pointer, # OpenGL Vertex Buffer Objects id (default vertex data)
|
742
747
|
)
|
@@ -766,6 +771,10 @@ module Raylib
|
|
766
771
|
def boneIds=(v) self[:boneIds] = v end
|
767
772
|
def boneWeights = self[:boneWeights]
|
768
773
|
def boneWeights=(v) self[:boneWeights] = v end
|
774
|
+
def boneMatrices = self[:boneMatrices]
|
775
|
+
def boneMatrices=(v) self[:boneMatrices] = v end
|
776
|
+
def boneCount = self[:boneCount]
|
777
|
+
def boneCount=(v) self[:boneCount] = v end
|
769
778
|
def vaoId = self[:vaoId]
|
770
779
|
def vaoId=(v) self[:vaoId] = v end
|
771
780
|
def vboId = self[:vboId]
|
@@ -1198,12 +1207,12 @@ module Raylib
|
|
1198
1207
|
[:ClearWindowState, :ClearWindowState, [:uint], :void],
|
1199
1208
|
|
1200
1209
|
# @!method ToggleFullscreen()
|
1201
|
-
# ToggleFullscreen : Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)
|
1210
|
+
# ToggleFullscreen : Toggle window state: fullscreen/windowed [resizes monitor to match window resolution] (only PLATFORM_DESKTOP)
|
1202
1211
|
# @return [void]
|
1203
1212
|
[:ToggleFullscreen, :ToggleFullscreen, [], :void],
|
1204
1213
|
|
1205
1214
|
# @!method ToggleBorderlessWindowed()
|
1206
|
-
# ToggleBorderlessWindowed : Toggle window state: borderless windowed (only PLATFORM_DESKTOP)
|
1215
|
+
# ToggleBorderlessWindowed : Toggle window state: borderless windowed [resizes window to match monitor resolution] (only PLATFORM_DESKTOP)
|
1207
1216
|
# @return [void]
|
1208
1217
|
[:ToggleBorderlessWindowed, :ToggleBorderlessWindowed, [], :void],
|
1209
1218
|
|
@@ -1923,6 +1932,12 @@ module Raylib
|
|
1923
1932
|
# @return [const char *]
|
1924
1933
|
[:GetApplicationDirectory, :GetApplicationDirectory, [], :pointer],
|
1925
1934
|
|
1935
|
+
# @!method MakeDirectory(dirPath)
|
1936
|
+
# MakeDirectory : Create directories (including full path requested), returns 0 on success
|
1937
|
+
# @param dirPath [const char *]
|
1938
|
+
# @return [int]
|
1939
|
+
[:MakeDirectory, :MakeDirectory, [:pointer], :int],
|
1940
|
+
|
1926
1941
|
# @!method ChangeDirectory(dir)
|
1927
1942
|
# ChangeDirectory : Change working directory, return true on success
|
1928
1943
|
# @param dir [const char *]
|
@@ -1948,7 +1963,7 @@ module Raylib
|
|
1948
1963
|
[:LoadDirectoryFiles, :LoadDirectoryFiles, [:pointer], FilePathList.by_value],
|
1949
1964
|
|
1950
1965
|
# @!method LoadDirectoryFilesEx(basePath, filter, scanSubdirs)
|
1951
|
-
# LoadDirectoryFilesEx : Load directory filepaths with extension filtering and recursive directory scan
|
1966
|
+
# LoadDirectoryFilesEx : Load directory filepaths with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result
|
1952
1967
|
# @param basePath [const char *]
|
1953
1968
|
# @param filter [const char *]
|
1954
1969
|
# @param scanSubdirs [bool]
|
@@ -2363,7 +2378,7 @@ module Raylib
|
|
2363
2378
|
[:GetShapesTextureRectangle, :GetShapesTextureRectangle, [], Rectangle.by_value],
|
2364
2379
|
|
2365
2380
|
# @!method DrawPixel(posX, posY, color)
|
2366
|
-
# DrawPixel : Draw a pixel
|
2381
|
+
# DrawPixel : Draw a pixel using geometry [Can be slow, use with care]
|
2367
2382
|
# @param posX [int]
|
2368
2383
|
# @param posY [int]
|
2369
2384
|
# @param color [Color]
|
@@ -2371,7 +2386,7 @@ module Raylib
|
|
2371
2386
|
[:DrawPixel, :DrawPixel, [:int, :int, Color.by_value], :void],
|
2372
2387
|
|
2373
2388
|
# @!method DrawPixelV(position, color)
|
2374
|
-
# DrawPixelV : Draw a pixel (Vector version)
|
2389
|
+
# DrawPixelV : Draw a pixel using geometry (Vector version) [Can be slow, use with care]
|
2375
2390
|
# @param position [Vector2]
|
2376
2391
|
# @param color [Color]
|
2377
2392
|
# @return [void]
|
@@ -2452,13 +2467,13 @@ module Raylib
|
|
2452
2467
|
# @return [void]
|
2453
2468
|
[:DrawCircleSectorLines, :DrawCircleSectorLines, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
|
2454
2469
|
|
2455
|
-
# @!method DrawCircleGradient(centerX, centerY, radius,
|
2470
|
+
# @!method DrawCircleGradient(centerX, centerY, radius, inner, outer)
|
2456
2471
|
# DrawCircleGradient : Draw a gradient-filled circle
|
2457
2472
|
# @param centerX [int]
|
2458
2473
|
# @param centerY [int]
|
2459
2474
|
# @param radius [float]
|
2460
|
-
# @param
|
2461
|
-
# @param
|
2475
|
+
# @param inner [Color]
|
2476
|
+
# @param outer [Color]
|
2462
2477
|
# @return [void]
|
2463
2478
|
[:DrawCircleGradient, :DrawCircleGradient, [:int, :int, :float, Color.by_value, Color.by_value], :void],
|
2464
2479
|
|
@@ -2565,35 +2580,35 @@ module Raylib
|
|
2565
2580
|
# @return [void]
|
2566
2581
|
[:DrawRectanglePro, :DrawRectanglePro, [Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],
|
2567
2582
|
|
2568
|
-
# @!method DrawRectangleGradientV(posX, posY, width, height,
|
2583
|
+
# @!method DrawRectangleGradientV(posX, posY, width, height, top, bottom)
|
2569
2584
|
# DrawRectangleGradientV : Draw a vertical-gradient-filled rectangle
|
2570
2585
|
# @param posX [int]
|
2571
2586
|
# @param posY [int]
|
2572
2587
|
# @param width [int]
|
2573
2588
|
# @param height [int]
|
2574
|
-
# @param
|
2575
|
-
# @param
|
2589
|
+
# @param top [Color]
|
2590
|
+
# @param bottom [Color]
|
2576
2591
|
# @return [void]
|
2577
2592
|
[:DrawRectangleGradientV, :DrawRectangleGradientV, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void],
|
2578
2593
|
|
2579
|
-
# @!method DrawRectangleGradientH(posX, posY, width, height,
|
2594
|
+
# @!method DrawRectangleGradientH(posX, posY, width, height, left, right)
|
2580
2595
|
# DrawRectangleGradientH : Draw a horizontal-gradient-filled rectangle
|
2581
2596
|
# @param posX [int]
|
2582
2597
|
# @param posY [int]
|
2583
2598
|
# @param width [int]
|
2584
2599
|
# @param height [int]
|
2585
|
-
# @param
|
2586
|
-
# @param
|
2600
|
+
# @param left [Color]
|
2601
|
+
# @param right [Color]
|
2587
2602
|
# @return [void]
|
2588
2603
|
[:DrawRectangleGradientH, :DrawRectangleGradientH, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void],
|
2589
2604
|
|
2590
|
-
# @!method DrawRectangleGradientEx(rec,
|
2605
|
+
# @!method DrawRectangleGradientEx(rec, topLeft, bottomLeft, topRight, bottomRight)
|
2591
2606
|
# DrawRectangleGradientEx : Draw a gradient-filled rectangle with custom vertex colors
|
2592
2607
|
# @param rec [Rectangle]
|
2593
|
-
# @param
|
2594
|
-
# @param
|
2595
|
-
# @param
|
2596
|
-
# @param
|
2608
|
+
# @param topLeft [Color]
|
2609
|
+
# @param bottomLeft [Color]
|
2610
|
+
# @param topRight [Color]
|
2611
|
+
# @param bottomRight [Color]
|
2597
2612
|
# @return [void]
|
2598
2613
|
[:DrawRectangleGradientEx, :DrawRectangleGradientEx, [Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
|
2599
2614
|
|
@@ -2959,14 +2974,6 @@ module Raylib
|
|
2959
2974
|
# @return [Image]
|
2960
2975
|
[:LoadImageRaw, :LoadImageRaw, [:pointer, :int, :int, :int, :int], Image.by_value],
|
2961
2976
|
|
2962
|
-
# @!method LoadImageSvg(fileNameOrString, width, height)
|
2963
|
-
# LoadImageSvg : Load image from SVG file data or string with specified size
|
2964
|
-
# @param fileNameOrString [const char *]
|
2965
|
-
# @param width [int]
|
2966
|
-
# @param height [int]
|
2967
|
-
# @return [Image]
|
2968
|
-
[:LoadImageSvg, :LoadImageSvg, [:pointer, :int, :int], Image.by_value],
|
2969
|
-
|
2970
2977
|
# @!method LoadImageAnim(fileName, frames)
|
2971
2978
|
# LoadImageAnim : Load image sequence from file (frames appended to image.data)
|
2972
2979
|
# @param fileName [const char *]
|
@@ -3814,6 +3821,14 @@ module Raylib
|
|
3814
3821
|
# @return [Color]
|
3815
3822
|
[:ColorAlphaBlend, :ColorAlphaBlend, [Color.by_value, Color.by_value, Color.by_value], Color.by_value],
|
3816
3823
|
|
3824
|
+
# @!method ColorLerp(color1, color2, factor)
|
3825
|
+
# ColorLerp : Get color lerp interpolation between two colors, factor [0.0f..1.0f]
|
3826
|
+
# @param color1 [Color]
|
3827
|
+
# @param color2 [Color]
|
3828
|
+
# @param factor [float]
|
3829
|
+
# @return [Color]
|
3830
|
+
[:ColorLerp, :ColorLerp, [Color.by_value, Color.by_value, :float], Color.by_value],
|
3831
|
+
|
3817
3832
|
# @!method GetColor(hexValue)
|
3818
3833
|
# GetColor : Get Color structure from hexadecimal value
|
3819
3834
|
# @param hexValue [unsigned int]
|
@@ -3855,7 +3870,7 @@ module Raylib
|
|
3855
3870
|
[:LoadFont, :LoadFont, [:pointer], Font.by_value],
|
3856
3871
|
|
3857
3872
|
# @!method LoadFontEx(fileName, fontSize, codepoints, codepointCount)
|
3858
|
-
# LoadFontEx : Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character
|
3873
|
+
# LoadFontEx : Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height
|
3859
3874
|
# @param fileName [const char *]
|
3860
3875
|
# @param fontSize [int]
|
3861
3876
|
# @param codepoints [int *]
|
@@ -4484,6 +4499,26 @@ module Raylib
|
|
4484
4499
|
# @return [void]
|
4485
4500
|
[:DrawModelWiresEx, :DrawModelWiresEx, [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value], :void],
|
4486
4501
|
|
4502
|
+
# @!method DrawModelPoints(model, position, scale, tint)
|
4503
|
+
# DrawModelPoints : Draw a model as points
|
4504
|
+
# @param model [Model]
|
4505
|
+
# @param position [Vector3]
|
4506
|
+
# @param scale [float]
|
4507
|
+
# @param tint [Color]
|
4508
|
+
# @return [void]
|
4509
|
+
[:DrawModelPoints, :DrawModelPoints, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void],
|
4510
|
+
|
4511
|
+
# @!method DrawModelPointsEx(model, position, rotationAxis, rotationAngle, scale, tint)
|
4512
|
+
# DrawModelPointsEx : Draw a model as points with extended parameters
|
4513
|
+
# @param model [Model]
|
4514
|
+
# @param position [Vector3]
|
4515
|
+
# @param rotationAxis [Vector3]
|
4516
|
+
# @param rotationAngle [float]
|
4517
|
+
# @param scale [Vector3]
|
4518
|
+
# @param tint [Color]
|
4519
|
+
# @return [void]
|
4520
|
+
[:DrawModelPointsEx, :DrawModelPointsEx, [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value], :void],
|
4521
|
+
|
4487
4522
|
# @!method DrawBoundingBox(box, color)
|
4488
4523
|
# DrawBoundingBox : Draw bounding box (wires)
|
4489
4524
|
# @param box [BoundingBox]
|
@@ -4755,6 +4790,14 @@ module Raylib
|
|
4755
4790
|
# @return [bool]
|
4756
4791
|
[:IsModelAnimationValid, :IsModelAnimationValid, [Model.by_value, ModelAnimation.by_value], :bool],
|
4757
4792
|
|
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
|
+
|
4758
4801
|
# @!method CheckCollisionSpheres(center1, radius1, center2, radius2)
|
4759
4802
|
# CheckCollisionSpheres : Check collision between two spheres
|
4760
4803
|
# @param center1 [Vector3]
|
data/lib/rlgl.rb
CHANGED
@@ -79,6 +79,7 @@ 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
|
82
83
|
|
83
84
|
# Enum
|
84
85
|
|
@@ -180,15 +181,19 @@ module Raylib
|
|
180
181
|
|
181
182
|
# enum rlShaderUniformDataType
|
182
183
|
# Shader uniform data type
|
183
|
-
RL_SHADER_UNIFORM_FLOAT = 0
|
184
|
-
RL_SHADER_UNIFORM_VEC2 = 1
|
185
|
-
RL_SHADER_UNIFORM_VEC3 = 2
|
186
|
-
RL_SHADER_UNIFORM_VEC4 = 3
|
187
|
-
RL_SHADER_UNIFORM_INT = 4
|
188
|
-
RL_SHADER_UNIFORM_IVEC2 = 5
|
189
|
-
RL_SHADER_UNIFORM_IVEC3 = 6
|
190
|
-
RL_SHADER_UNIFORM_IVEC4 = 7
|
191
|
-
|
184
|
+
RL_SHADER_UNIFORM_FLOAT = 0 # Shader uniform type: float
|
185
|
+
RL_SHADER_UNIFORM_VEC2 = 1 # Shader uniform type: vec2 (2 float)
|
186
|
+
RL_SHADER_UNIFORM_VEC3 = 2 # Shader uniform type: vec3 (3 float)
|
187
|
+
RL_SHADER_UNIFORM_VEC4 = 3 # Shader uniform type: vec4 (4 float)
|
188
|
+
RL_SHADER_UNIFORM_INT = 4 # Shader uniform type: int
|
189
|
+
RL_SHADER_UNIFORM_IVEC2 = 5 # Shader uniform type: ivec2 (2 int)
|
190
|
+
RL_SHADER_UNIFORM_IVEC3 = 6 # Shader uniform type: ivec3 (3 int)
|
191
|
+
RL_SHADER_UNIFORM_IVEC4 = 7 # Shader uniform type: ivec4 (4 int)
|
192
|
+
RL_SHADER_UNIFORM_UINT = 8 # Shader uniform type: unsigned int
|
193
|
+
RL_SHADER_UNIFORM_UIVEC2 = 9 # Shader uniform type: uivec2 (2 unsigned int)
|
194
|
+
RL_SHADER_UNIFORM_UIVEC3 = 10 # Shader uniform type: uivec3 (3 unsigned int)
|
195
|
+
RL_SHADER_UNIFORM_UIVEC4 = 11 # Shader uniform type: uivec4 (4 unsigned int)
|
196
|
+
RL_SHADER_UNIFORM_SAMPLER2D = 12 # Shader uniform type: sampler2d
|
192
197
|
|
193
198
|
# enum rlShaderAttributeDataType
|
194
199
|
# Shader attribute data types
|
@@ -723,7 +728,7 @@ module Raylib
|
|
723
728
|
[:rlEnablePointMode, :rlEnablePointMode, [], :void],
|
724
729
|
|
725
730
|
# @!method rlDisableWireMode()
|
726
|
-
# rlDisableWireMode : Disable wire
|
731
|
+
# rlDisableWireMode : Disable wire (and point) mode
|
727
732
|
# @return [void]
|
728
733
|
[:rlDisableWireMode, :rlDisableWireMode, [], :void],
|
729
734
|
|
@@ -1188,6 +1193,14 @@ module Raylib
|
|
1188
1193
|
# @return [void]
|
1189
1194
|
[:rlSetUniformMatrix, :rlSetUniformMatrix, [:int, Matrix.by_value], :void],
|
1190
1195
|
|
1196
|
+
# @!method rlSetUniformMatrices(locIndex, mat, count)
|
1197
|
+
# rlSetUniformMatrices : Set shader value matrices
|
1198
|
+
# @param locIndex [int]
|
1199
|
+
# @param mat [const Matrix *]
|
1200
|
+
# @param count [int]
|
1201
|
+
# @return [void]
|
1202
|
+
[:rlSetUniformMatrices, :rlSetUniformMatrices, [:int, :pointer, :int], :void],
|
1203
|
+
|
1191
1204
|
# @!method rlSetUniformSampler(locIndex, textureId)
|
1192
1205
|
# rlSetUniformSampler : Set shader value sampler
|
1193
1206
|
# @param locIndex [int]
|
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.8
|
5
5
|
platform: aarch64-linux
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
rubygems_version: 3.5.
|
74
|
+
rubygems_version: 3.5.18
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Ruby bindings for raylib, raygui and Physac
|