raylib-bindings 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 680568eee11c3b111692524b4d1a8296ae3021ced477d4b608b19c37b2c7c0c3
4
- data.tar.gz: b74153457239a0be8f551571afdf9df7cbe770197962406092d0ad8e4a69733f
3
+ metadata.gz: eb2b73788d55df6d789dd5dc05bd8e4c38efbac6a798b0b8ca80c14f0db6b3f1
4
+ data.tar.gz: a7cbeeea1b026ce1b9cc9529fa47b195319509461c96a65943663e3aab76321b
5
5
  SHA512:
6
- metadata.gz: 5e61ba8d96e25bc216c4a57863b2e7a8a32cb49241cdda6974f96a42b23463ac2f499af601705257d2282a8b0c3efaf6f371ed500af31cfe95908f1334ddbad9
7
- data.tar.gz: 3ca0378d881f69fc451131fb305a624284835b81fdf723c73f91b841604a0eee3e67aef41d42dde99195b7d4262a2374fc3750c2cf03ce165ae229b8462d8d3b
6
+ metadata.gz: '010970ee07ef6e6c2377995cd8a644498bc7d24ae399c935a603aa93b38d3bc6f4595b60ce15399ec4313363c8b34925a92e8fc4f975924765922b6205d7e025'
7
+ data.tar.gz: 44564e9c26c24434783906f495eaa0014b218085a97e65e8b0fb4ebbfbe968ee35cd36be6068faad118745ea4bcf7e99f3e6e78f3e912f91fe455315271ed69f
data/ChangeLog CHANGED
@@ -1,3 +1,11 @@
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
+
1
9
  2024-04-06 vaiorabbit <http://twitter.com/vaiorabbit>
2
10
 
3
11
  * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/414229bcf93816daaa253a82cd54fbd7b18e6449 ) and raygui ( https://github.com/raysan5/raygui/commit/0a9a9f897a16968444e10fea4fbac33ba1d5d640 )
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-04-06
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
- RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION = "vertexPosition" # Bound by default to shader location: 0
51
- RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD = "vertexTexCoord" # Bound by default to shader location: 1
52
- RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL = "vertexNormal" # Bound by default to shader location: 2
53
- RL_DEFAULT_SHADER_ATTRIB_NAME_COLOR = "vertexColor" # Bound by default to shader location: 3
54
- RL_DEFAULT_SHADER_ATTRIB_NAME_TANGENT = "vertexTangent" # Bound by default to shader location: 4
55
- RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2 = "vertexTexCoord2" # Bound by default to shader location: 5
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:
Binary file
Binary file
data/lib/libraylib.dll CHANGED
Binary file
Binary file
Binary file
Binary file
data/lib/physac.dll CHANGED
Binary file
Binary file
Binary file
Binary file
data/lib/raygui.dll CHANGED
Binary file
Binary file
data/lib/raygui.x86_64.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 = 0
15
+ RAYGUI_VERSION_MINOR = 1
16
16
  RAYGUI_VERSION_PATCH = 0
17
- RAYGUI_VERSION = "4.0"
17
+ RAYGUI_VERSION = "4.1-dev"
18
18
  SCROLLBAR_LEFT_SIDE = 0
19
19
  SCROLLBAR_RIGHT_SIDE = 1
20
20
 
data/lib/raylib_main.rb CHANGED
@@ -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, lineThick, color)
2622
- # DrawRectangleRoundedLines : Draw rectangle with rounded edges outline
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
- [:DrawRectangleRoundedLines, :DrawRectangleRoundedLines, [Rectangle.by_value, :float, :int, :float, Color.by_value], :void],
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!)
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 = "4.5"
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, 4], # OpenGL Vertex Buffer Objects id (4 types of vertex data)
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]
@@ -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, pointer)
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 pointer [const void *]
972
+ # @param offset [int]
951
973
  # @return [void]
952
- [:rlSetVertexAttribute, :rlSetVertexAttribute, [:uint, :int, :int, :bool, :int, :pointer], :void],
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.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-06 00:00:00.000000000 Z
11
+ date: 2024-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi