raylib-bindings 0.7.1-x86_64-darwin → 0.7.3-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +25 -0
- data/README.md +7 -4
- data/lib/config.rb +12 -8
- data/lib/libraylib.x86_64.dylib +0 -0
- data/lib/physac.x86_64.dylib +0 -0
- data/lib/raygui.x86_64.dylib +0 -0
- data/lib/raygui_main.rb +5 -5
- data/lib/raylib_main.rb +27 -18
- data/lib/raymath.rb +20 -0
- data/lib/rlgl.rb +28 -6
- 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: f6810ce9a26aff165d28fcc606d66d2ff3a814b34dbdfc80dce2fa938278ea8c
|
4
|
+
data.tar.gz: f1d7fef81e8db67f19d8cb48f28860a46d7e8a0818a4ab7d17a18eb7374b63ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f23abc83c93c5399870492b313f344e5b3ce96b999605eb6df028438fa30d4679745f30f0ff9bd3a2e4b15bf9565bc525c1d2278f7bd19171a5b09c6ed86bd0
|
7
|
+
data.tar.gz: 17eda14c01199525101d3d7196387e6885e5b740e72029cbf66d5747ef91ccadc8ffea3f1856c7c4c51ee17910a57433c8a424149f1b5464e59bbd7f0bd39690
|
data/ChangeLog
CHANGED
@@ -1,3 +1,28 @@
|
|
1
|
+
2024-05-04 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/f1007554a0a8145060797c0aa8169bdaf2c1c6b8 ) and raygui ( https://github.com/raysan5/raygui/commit/a3a0e86e215145c28726e6f469f13d0aa6647a5e )
|
4
|
+
|
5
|
+
2024-04-27 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/e47ebec66134800e734710038ea4e5f070f3ef06 ) and raygui ( https://github.com/raysan5/raygui/commit/6f532337ff2d6dc14ba3a5f5b7ee63f9d90ff13b )
|
8
|
+
|
9
|
+
2024-04-06 vaiorabbit <http://twitter.com/vaiorabbit>
|
10
|
+
|
11
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/414229bcf93816daaa253a82cd54fbd7b18e6449 ) and raygui ( https://github.com/raysan5/raygui/commit/0a9a9f897a16968444e10fea4fbac33ba1d5d640 )
|
12
|
+
|
13
|
+
2024-03-31 vaiorabbit <http://twitter.com/vaiorabbit>
|
14
|
+
|
15
|
+
* examples/textures_bunnymark_plain.rb : Renamed from textures_bunnymark.rb
|
16
|
+
* examples/textures_bunnymark_optimized.rb : Added
|
17
|
+
|
18
|
+
2024-03-24 vaiorabbit <http://twitter.com/vaiorabbit>
|
19
|
+
|
20
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/35252fceefdeb7b0920d9c1513efb4b5c05633dc ) and raygui ( https://github.com/raysan5/raygui/commit/9060e3bf33795dad4fdb4f60585b07901ffa5dee )
|
21
|
+
|
22
|
+
2024-03-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
23
|
+
|
24
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/f072497551d9f03b5fbded289f8af021c103a8c0) and raygui ( https://github.com/raysan5/raygui/commit/623bc61f29839d451061252e1cc93edb013c2f8c )
|
25
|
+
|
1
26
|
2024-03-02 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
27
|
|
3
28
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/25caf14be8d0284aceaa0de28753b3012e71b7bb )
|
data/README.md
CHANGED
@@ -3,16 +3,16 @@
|
|
3
3
|
# Yet another raylib wrapper for Ruby #
|
4
4
|
|
5
5
|
* Created : 2021-10-17
|
6
|
-
* Last modified : 2024-
|
6
|
+
* Last modified : 2024-05-04
|
7
7
|
|
8
8
|
Provides Ruby bindings for raylib-related libraries including:
|
9
9
|
|
10
|
-
* [raylib](https://github.com/raysan5/raylib)
|
10
|
+
* [raylib](https://github.com/raysan5/raylib) version [5.1-dev]( https://github.com/raysan5/raylib/commit/f1007554a0a8145060797c0aa8169bdaf2c1c6b8 )
|
11
11
|
* raylib
|
12
12
|
* raymath
|
13
13
|
* rlgl
|
14
|
-
* [raygui](https://github.com/raysan5/raygui)
|
15
|
-
* [Physac](https://github.com/raysan5/physac)
|
14
|
+
* [raygui](https://github.com/raysan5/raygui) version [4.1-dev]( https://github.com/raysan5/raygui/commit/a3a0e86e215145c28726e6f469f13d0aa6647a5e )
|
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">
|
18
18
|
|
@@ -160,6 +160,9 @@ See the projects below to learn how to use this library:
|
|
160
160
|
* `SetTraceLogCallback` and `TraceLogCallback` are unusable since Ruby-FFI does not support `:varargs` parameter in callbacks (`Proc`, etc.)
|
161
161
|
* Ref.: https://ffi.github.io/ruby-ffi-archive/messages/20130214-%5Bruby-ffi%5D%20Re_%20Callback%20Function%20with%20varargs-345.html
|
162
162
|
|
163
|
+
* For macOS users: if you get error messages like “'.... .dylib' not valid for use in process: library load disallowed by system policy” , you can work around it with the following command (although it is not recommended):
|
164
|
+
* $ xattr -dr com.apple.quarantine (path to the .dylib)
|
165
|
+
|
163
166
|
## License ##
|
164
167
|
|
165
168
|
Shared libraries in `lib` directory are built on top of these products and are available under the terms of these licenses:
|
data/lib/config.rb
CHANGED
@@ -47,12 +47,18 @@ module Raylib
|
|
47
47
|
RL_MAX_SHADER_LOCATIONS = 32 # Maximum number of shader locations supported
|
48
48
|
RL_CULL_DISTANCE_NEAR = 0.01 # Default projection matrix near cull distance
|
49
49
|
RL_CULL_DISTANCE_FAR = 1000.0 # Default projection matrix far cull distance
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
50
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION = 0
|
51
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD = 1
|
52
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL = 2
|
53
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR = 3
|
54
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT = 4
|
55
|
+
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2 = 5
|
56
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION = "vertexPosition" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION
|
57
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD = "vertexTexCoord" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD
|
58
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL = "vertexNormal" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL
|
59
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_COLOR = "vertexColor" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR
|
60
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_TANGENT = "vertexTangent" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT
|
61
|
+
RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2 = "vertexTexCoord2" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2
|
56
62
|
RL_DEFAULT_SHADER_UNIFORM_NAME_MVP = "mvp" # model-view-projection matrix
|
57
63
|
RL_DEFAULT_SHADER_UNIFORM_NAME_VIEW = "matView" # view matrix
|
58
64
|
RL_DEFAULT_SHADER_UNIFORM_NAME_PROJECTION = "matProjection" # projection matrix
|
@@ -72,9 +78,7 @@ module Raylib
|
|
72
78
|
SUPPORT_IMAGE_GENERATION = 1
|
73
79
|
SUPPORT_IMAGE_MANIPULATION = 1
|
74
80
|
SUPPORT_DEFAULT_FONT = 1
|
75
|
-
SUPPORT_FILEFORMAT_FNT = 1
|
76
81
|
SUPPORT_FILEFORMAT_TTF = 1
|
77
|
-
SUPPORT_FILEFORMAT_BDF = 1
|
78
82
|
SUPPORT_TEXT_MANIPULATION = 1
|
79
83
|
SUPPORT_FONT_ATLAS_WHITE_REC = 1
|
80
84
|
MAX_TEXT_BUFFER_LENGTH = 1024 # Size of internal static buffers used on some functions:
|
data/lib/libraylib.x86_64.dylib
CHANGED
Binary file
|
data/lib/physac.x86_64.dylib
CHANGED
Binary file
|
data/lib/raygui.x86_64.dylib
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 = 1
|
16
16
|
RAYGUI_VERSION_PATCH = 0
|
17
|
-
RAYGUI_VERSION = "4.
|
17
|
+
RAYGUI_VERSION = "4.1-dev"
|
18
18
|
SCROLLBAR_LEFT_SIDE = 0
|
19
19
|
SCROLLBAR_RIGHT_SIDE = 1
|
20
20
|
|
@@ -374,9 +374,9 @@ module Raylib
|
|
374
374
|
ICON_FOLDER = 217
|
375
375
|
ICON_FILE = 218
|
376
376
|
ICON_SAND_TIMER = 219
|
377
|
-
|
378
|
-
|
379
|
-
|
377
|
+
ICON_WARNING = 220
|
378
|
+
ICON_HELP_BOX = 221
|
379
|
+
ICON_INFO_BOX = 222
|
380
380
|
ICON_223 = 223
|
381
381
|
ICON_224 = 224
|
382
382
|
ICON_225 = 225
|
data/lib/raylib_main.rb
CHANGED
@@ -193,9 +193,9 @@ module Raylib
|
|
193
193
|
GAMEPAD_BUTTON_LEFT_FACE_DOWN = 3 # Gamepad left DPAD down button
|
194
194
|
GAMEPAD_BUTTON_LEFT_FACE_LEFT = 4 # Gamepad left DPAD left button
|
195
195
|
GAMEPAD_BUTTON_RIGHT_FACE_UP = 5 # Gamepad right button up (i.e. PS3: Triangle, Xbox: Y)
|
196
|
-
GAMEPAD_BUTTON_RIGHT_FACE_RIGHT = 6 # Gamepad right button right (i.e. PS3:
|
196
|
+
GAMEPAD_BUTTON_RIGHT_FACE_RIGHT = 6 # Gamepad right button right (i.e. PS3: Circle, Xbox: B)
|
197
197
|
GAMEPAD_BUTTON_RIGHT_FACE_DOWN = 7 # Gamepad right button down (i.e. PS3: Cross, Xbox: A)
|
198
|
-
GAMEPAD_BUTTON_RIGHT_FACE_LEFT = 8 # Gamepad right button left (i.e. PS3:
|
198
|
+
GAMEPAD_BUTTON_RIGHT_FACE_LEFT = 8 # Gamepad right button left (i.e. PS3: Square, Xbox: X)
|
199
199
|
GAMEPAD_BUTTON_LEFT_TRIGGER_1 = 9 # Gamepad top/back trigger left (first), it could be a trailing button
|
200
200
|
GAMEPAD_BUTTON_LEFT_TRIGGER_2 = 10 # Gamepad top/back trigger left (second), it could be a trailing button
|
201
201
|
GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = 11 # Gamepad top/back trigger right (one), it could be a trailing button
|
@@ -1607,21 +1607,21 @@ module Raylib
|
|
1607
1607
|
# @return [void]
|
1608
1608
|
[:UnloadShader, :UnloadShader, [Shader.by_value], :void],
|
1609
1609
|
|
1610
|
-
# @!method
|
1611
|
-
#
|
1612
|
-
# @param
|
1610
|
+
# @!method GetScreenToWorldRay(position, camera)
|
1611
|
+
# GetScreenToWorldRay : Get a ray trace from screen position (i.e mouse)
|
1612
|
+
# @param position [Vector2]
|
1613
1613
|
# @param camera [Camera]
|
1614
1614
|
# @return [Ray]
|
1615
|
-
[:
|
1615
|
+
[:GetScreenToWorldRay, :GetScreenToWorldRay, [Vector2.by_value, Camera.by_value], Ray.by_value],
|
1616
1616
|
|
1617
|
-
# @!method
|
1618
|
-
#
|
1619
|
-
# @param
|
1617
|
+
# @!method GetScreenToWorldRayEx(position, camera, width, height)
|
1618
|
+
# GetScreenToWorldRayEx : Get a ray trace from screen position (i.e mouse) in a viewport
|
1619
|
+
# @param position [Vector2]
|
1620
1620
|
# @param camera [Camera]
|
1621
|
-
# @param width [
|
1622
|
-
# @param height [
|
1621
|
+
# @param width [int]
|
1622
|
+
# @param height [int]
|
1623
1623
|
# @return [Ray]
|
1624
|
-
[:
|
1624
|
+
[:GetScreenToWorldRayEx, :GetScreenToWorldRayEx, [Vector2.by_value, Camera.by_value, :int, :int], Ray.by_value],
|
1625
1625
|
|
1626
1626
|
# @!method GetWorldToScreen(position, camera)
|
1627
1627
|
# GetWorldToScreen : Get the screen space position for a 3d world space position
|
@@ -2618,15 +2618,24 @@ module Raylib
|
|
2618
2618
|
# @return [void]
|
2619
2619
|
[:DrawRectangleRounded, :DrawRectangleRounded, [Rectangle.by_value, :float, :int, Color.by_value], :void],
|
2620
2620
|
|
2621
|
-
# @!method DrawRectangleRoundedLines(rec, roundness, segments,
|
2622
|
-
# DrawRectangleRoundedLines : Draw rectangle with rounded edges
|
2621
|
+
# @!method DrawRectangleRoundedLines(rec, roundness, segments, color)
|
2622
|
+
# DrawRectangleRoundedLines : Draw rectangle lines with rounded edges
|
2623
|
+
# @param rec [Rectangle]
|
2624
|
+
# @param roundness [float]
|
2625
|
+
# @param segments [int]
|
2626
|
+
# @param color [Color]
|
2627
|
+
# @return [void]
|
2628
|
+
[:DrawRectangleRoundedLines, :DrawRectangleRoundedLines, [Rectangle.by_value, :float, :int, Color.by_value], :void],
|
2629
|
+
|
2630
|
+
# @!method DrawRectangleRoundedLinesEx(rec, roundness, segments, lineThick, color)
|
2631
|
+
# DrawRectangleRoundedLinesEx : Draw rectangle with rounded edges outline
|
2623
2632
|
# @param rec [Rectangle]
|
2624
2633
|
# @param roundness [float]
|
2625
2634
|
# @param segments [int]
|
2626
2635
|
# @param lineThick [float]
|
2627
2636
|
# @param color [Color]
|
2628
2637
|
# @return [void]
|
2629
|
-
[:
|
2638
|
+
[:DrawRectangleRoundedLinesEx, :DrawRectangleRoundedLinesEx, [Rectangle.by_value, :float, :int, :float, Color.by_value], :void],
|
2630
2639
|
|
2631
2640
|
# @!method DrawTriangle(v1, v2, v3, color)
|
2632
2641
|
# DrawTriangle : Draw a color-filled triangle (vertex in counter-clockwise order!)
|
@@ -3656,7 +3665,7 @@ module Raylib
|
|
3656
3665
|
[:Fade, :Fade, [Color.by_value, :float], Color.by_value],
|
3657
3666
|
|
3658
3667
|
# @!method ColorToInt(color)
|
3659
|
-
# ColorToInt : Get hexadecimal value for a Color
|
3668
|
+
# ColorToInt : Get hexadecimal value for a Color (0xRRGGBBAA)
|
3660
3669
|
# @param color [Color]
|
3661
3670
|
# @return [int]
|
3662
3671
|
[:ColorToInt, :ColorToInt, [Color.by_value], :int],
|
@@ -5115,7 +5124,7 @@ module Raylib
|
|
5115
5124
|
[:SetAudioStreamCallback, :SetAudioStreamCallback, [AudioStream.by_value, :AudioCallback], :void],
|
5116
5125
|
|
5117
5126
|
# @!method AttachAudioStreamProcessor(stream, processor)
|
5118
|
-
# AttachAudioStreamProcessor : Attach audio stream processor to stream, receives the samples as
|
5127
|
+
# AttachAudioStreamProcessor : Attach audio stream processor to stream, receives the samples as 'float'
|
5119
5128
|
# @param stream [AudioStream]
|
5120
5129
|
# @param processor [AudioCallback]
|
5121
5130
|
# @return [void]
|
@@ -5129,7 +5138,7 @@ module Raylib
|
|
5129
5138
|
[:DetachAudioStreamProcessor, :DetachAudioStreamProcessor, [AudioStream.by_value, :AudioCallback], :void],
|
5130
5139
|
|
5131
5140
|
# @!method AttachAudioMixedProcessor(processor)
|
5132
|
-
# AttachAudioMixedProcessor : Attach audio stream processor to the entire audio pipeline, receives the samples as
|
5141
|
+
# AttachAudioMixedProcessor : Attach audio stream processor to the entire audio pipeline, receives the samples as 'float'
|
5133
5142
|
# @param processor [AudioCallback]
|
5134
5143
|
# @return [void]
|
5135
5144
|
[:AttachAudioMixedProcessor, :AttachAudioMixedProcessor, [:AudioCallback], :void],
|
data/lib/raymath.rb
CHANGED
@@ -479,6 +479,16 @@ module Raylib
|
|
479
479
|
# @return [Vector3]
|
480
480
|
[:Vector3Lerp, :Vector3Lerp, [Vector3.by_value, Vector3.by_value, :float], Vector3.by_value],
|
481
481
|
|
482
|
+
# @!method Vector3CubicHermite(v1, tangent1, v2, tangent2, amount)
|
483
|
+
# Vector3CubicHermite
|
484
|
+
# @param v1 [Vector3]
|
485
|
+
# @param tangent1 [Vector3]
|
486
|
+
# @param v2 [Vector3]
|
487
|
+
# @param tangent2 [Vector3]
|
488
|
+
# @param amount [float]
|
489
|
+
# @return [Vector3]
|
490
|
+
[:Vector3CubicHermite, :Vector3CubicHermite, [Vector3.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value, :float], Vector3.by_value],
|
491
|
+
|
482
492
|
# @!method Vector3Reflect(v, normal)
|
483
493
|
# Vector3Reflect
|
484
494
|
# @param v [Vector3]
|
@@ -951,6 +961,16 @@ module Raylib
|
|
951
961
|
# @return [Quaternion]
|
952
962
|
[:QuaternionSlerp, :QuaternionSlerp, [Quaternion.by_value, Quaternion.by_value, :float], Quaternion.by_value],
|
953
963
|
|
964
|
+
# @!method QuaternionCubicHermiteSpline(q1, outTangent1, q2, inTangent2, t)
|
965
|
+
# QuaternionCubicHermiteSpline
|
966
|
+
# @param q1 [Quaternion]
|
967
|
+
# @param outTangent1 [Quaternion]
|
968
|
+
# @param q2 [Quaternion]
|
969
|
+
# @param inTangent2 [Quaternion]
|
970
|
+
# @param t [float]
|
971
|
+
# @return [Quaternion]
|
972
|
+
[:QuaternionCubicHermiteSpline, :QuaternionCubicHermiteSpline, [Quaternion.by_value, Quaternion.by_value, Quaternion.by_value, Quaternion.by_value, :float], Quaternion.by_value],
|
973
|
+
|
954
974
|
# @!method QuaternionFromVector3ToVector3(from, to)
|
955
975
|
# QuaternionFromVector3ToVector3
|
956
976
|
# @param from [Vector3]
|
data/lib/rlgl.rb
CHANGED
@@ -11,7 +11,7 @@ module Raylib
|
|
11
11
|
|
12
12
|
# Define/Macro
|
13
13
|
|
14
|
-
RLGL_VERSION = "
|
14
|
+
RLGL_VERSION = "5.0"
|
15
15
|
RL_DEFAULT_BATCH_BUFFER_ELEMENTS = 8192
|
16
16
|
RL_TEXTURE_WRAP_S = 0x2802 # GL_TEXTURE_WRAP_S
|
17
17
|
RL_TEXTURE_WRAP_T = 0x2803 # GL_TEXTURE_WRAP_T
|
@@ -249,10 +249,11 @@ module Raylib
|
|
249
249
|
:elementCount, :int, # Number of elements in the buffer (QUADS)
|
250
250
|
:vertices, :pointer, # Vertex position (XYZ - 3 components per vertex) (shader-location = 0)
|
251
251
|
:texcoords, :pointer, # Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)
|
252
|
+
:normals, :pointer, # Vertex normal (XYZ - 3 components per vertex) (shader-location = 2)
|
252
253
|
:colors, :pointer, # Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)
|
253
254
|
:indices, :pointer, # Vertex indices (in case vertex data comes indexed) (6 indices per quad)
|
254
255
|
:vaoId, :uint, # OpenGL Vertex Array Object id
|
255
|
-
:vboId, [:uint,
|
256
|
+
:vboId, [:uint, 5], # OpenGL Vertex Buffer Objects id (5 types of vertex data)
|
256
257
|
)
|
257
258
|
def elementCount = self[:elementCount]
|
258
259
|
def elementCount=(v) self[:elementCount] = v end
|
@@ -260,6 +261,8 @@ module Raylib
|
|
260
261
|
def vertices=(v) self[:vertices] = v end
|
261
262
|
def texcoords = self[:texcoords]
|
262
263
|
def texcoords=(v) self[:texcoords] = v end
|
264
|
+
def normals = self[:normals]
|
265
|
+
def normals=(v) self[:normals] = v end
|
263
266
|
def colors = self[:colors]
|
264
267
|
def colors=(v) self[:colors] = v end
|
265
268
|
def indices = self[:indices]
|
@@ -401,6 +404,25 @@ module Raylib
|
|
401
404
|
# @return [void]
|
402
405
|
[:rlViewport, :rlViewport, [:int, :int, :int, :int], :void],
|
403
406
|
|
407
|
+
# @!method rlSetClipPlanes(near, far)
|
408
|
+
# rlSetClipPlanes : Set clip planes distances
|
409
|
+
# @param near [double]
|
410
|
+
# @param far [double]
|
411
|
+
# @return [void]
|
412
|
+
[:rlSetClipPlanes, :rlSetClipPlanes, [:double, :double], :void],
|
413
|
+
|
414
|
+
# @!method rlGetCullDistanceNear()
|
415
|
+
# rlGetCullDistanceNear : Get cull plane distance near
|
416
|
+
# @param []
|
417
|
+
# @return [double]
|
418
|
+
[:rlGetCullDistanceNear, :rlGetCullDistanceNear, [], :double],
|
419
|
+
|
420
|
+
# @!method rlGetCullDistanceFar()
|
421
|
+
# rlGetCullDistanceFar : Get cull plane distance far
|
422
|
+
# @param []
|
423
|
+
# @return [double]
|
424
|
+
[:rlGetCullDistanceFar, :rlGetCullDistanceFar, [], :double],
|
425
|
+
|
404
426
|
# @!method rlBegin(mode)
|
405
427
|
# rlBegin : Initialize drawing mode (how to organize vertex)
|
406
428
|
# @param mode [int]
|
@@ -612,7 +634,7 @@ module Raylib
|
|
612
634
|
[:rlBlitFramebuffer, :rlBlitFramebuffer, [:int, :int, :int, :int, :int, :int, :int, :int, :int], :void],
|
613
635
|
|
614
636
|
# @!method rlBindFramebuffer(target, framebuffer)
|
615
|
-
# rlBindFramebuffer : Bind framebuffer (FBO)
|
637
|
+
# rlBindFramebuffer : Bind framebuffer (FBO)
|
616
638
|
# @param target [unsigned int]
|
617
639
|
# @param framebuffer [unsigned int]
|
618
640
|
# @return [void]
|
@@ -940,16 +962,16 @@ module Raylib
|
|
940
962
|
# @return [void]
|
941
963
|
[:rlUnloadVertexBuffer, :rlUnloadVertexBuffer, [:uint], :void],
|
942
964
|
|
943
|
-
# @!method rlSetVertexAttribute(index, compSize, type, normalized, stride,
|
965
|
+
# @!method rlSetVertexAttribute(index, compSize, type, normalized, stride, offset)
|
944
966
|
# rlSetVertexAttribute : Set vertex attribute data configuration
|
945
967
|
# @param index [unsigned int]
|
946
968
|
# @param compSize [int]
|
947
969
|
# @param type [int]
|
948
970
|
# @param normalized [bool]
|
949
971
|
# @param stride [int]
|
950
|
-
# @param
|
972
|
+
# @param offset [int]
|
951
973
|
# @return [void]
|
952
|
-
[:rlSetVertexAttribute, :rlSetVertexAttribute, [:uint, :int, :int, :bool, :int, :
|
974
|
+
[:rlSetVertexAttribute, :rlSetVertexAttribute, [:uint, :int, :int, :bool, :int, :int], :void],
|
953
975
|
|
954
976
|
# @!method rlSetVertexAttributeDivisor(index, divisor)
|
955
977
|
# rlSetVertexAttributeDivisor : Set vertex attribute data divisor
|
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.3
|
5
5
|
platform: x86_64-darwin
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|