diff --git a/ChangeLog b/ChangeLog index 8dcedbb..7d38370 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2024-06-29 vaiorabbit + + * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/c1ea32655aad97402ea3b215ab7b414d0809bb8d ) and raygui ( https://github.com/raysan5/raygui/commit/0f832e6a6edfa77a93c327617468b15755cb05ce ) + 2024-06-15 vaiorabbit * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/b4fbdc028302f9a697f196e8d02a7dca28912f59 ) and raygui ( https://github.com/raysan5/raygui/commit/4b3d94f5df6a5a2aa86286350f7e20c0ca35f516 ) diff --git a/README.md b/README.md index d7be9d4..0f34b02 100644 --- a/README.md +++ b/README.md @@ -3,15 +3,15 @@ # Yet another raylib wrapper for Ruby # * Created : 2021-10-17 -* Last modified : 2024-06-15 +* Last modified : 2024-06-29 Provides Ruby bindings for raylib-related libraries including: -* [raylib](https://github.com/raysan5/raylib) version [5.1-dev]( https://github.com/raysan5/raylib/commit/b4fbdc028302f9a697f196e8d02a7dca28912f59 ) +* [raylib](https://github.com/raysan5/raylib) version [5.1-dev]( https://github.com/raysan5/raylib/commit/c1ea32655aad97402ea3b215ab7b414d0809bb8d ) * raylib * raymath * rlgl -* [raygui](https://github.com/raysan5/raygui) version [4.1-dev]( https://github.com/raysan5/raygui/commit/4b3d94f5df6a5a2aa86286350f7e20c0ca35f516 ) +* [raygui](https://github.com/raysan5/raygui) version [4.1-dev]( https://github.com/raysan5/raygui/commit/0f832e6a6edfa77a93c327617468b15755cb05ce ) * [Physac](https://github.com/raysan5/physac) version [1.1]( https://github.com/raysan5/physac/commit/4a8e17f263fb8e1150b3fbafc96f880c7d7a4833 ) diff --git a/generator/raylib_api.json b/generator/raylib_api.json index 1a38c03..2baa6c3 100644 --- a/generator/raylib_api.json +++ b/generator/raylib_api.json @@ -7351,7 +7351,7 @@ }, { "name": "ImageKernelConvolution", - "description": "Apply Custom Square image convolution kernel", + "description": "Apply custom square convolution kernel to image", "returnType": "void", "params": [ { @@ -7359,7 +7359,7 @@ "name": "image" }, { - "type": "float*", + "type": "const float *", "name": "kernel" }, { @@ -7817,6 +7817,33 @@ } ] }, + { + "name": "ImageDrawLineEx", + "description": "Draw a line defining thickness within an image", + "returnType": "void", + "params": [ + { + "type": "Image *", + "name": "dst" + }, + { + "type": "Vector2", + "name": "start" + }, + { + "type": "Vector2", + "name": "end" + }, + { + "type": "int", + "name": "thick" + }, + { + "type": "Color", + "name": "color" + } + ] + }, { "name": "ImageDrawCircle", "description": "Draw a filled circle within an image", @@ -8013,6 +8040,141 @@ } ] }, + { + "name": "ImageDrawTriangle", + "description": "Draw triangle within an image", + "returnType": "void", + "params": [ + { + "type": "Image *", + "name": "dst" + }, + { + "type": "Vector2", + "name": "v1" + }, + { + "type": "Vector2", + "name": "v2" + }, + { + "type": "Vector2", + "name": "v3" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "ImageDrawTriangleEx", + "description": "Draw triangle with interpolated colors within an image", + "returnType": "void", + "params": [ + { + "type": "Image *", + "name": "dst" + }, + { + "type": "Vector2", + "name": "v1" + }, + { + "type": "Vector2", + "name": "v2" + }, + { + "type": "Vector2", + "name": "v3" + }, + { + "type": "Color", + "name": "c1" + }, + { + "type": "Color", + "name": "c2" + }, + { + "type": "Color", + "name": "c3" + } + ] + }, + { + "name": "ImageDrawTriangleLines", + "description": "Draw triangle outline within an image", + "returnType": "void", + "params": [ + { + "type": "Image *", + "name": "dst" + }, + { + "type": "Vector2", + "name": "v1" + }, + { + "type": "Vector2", + "name": "v2" + }, + { + "type": "Vector2", + "name": "v3" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "ImageDrawTriangleFan", + "description": "Draw a triangle fan defined by points within an image (first vertex is the center)", + "returnType": "void", + "params": [ + { + "type": "Image *", + "name": "dst" + }, + { + "type": "Vector2 *", + "name": "points" + }, + { + "type": "int", + "name": "pointCount" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "ImageDrawTriangleStrip", + "description": "Draw a triangle strip defined by points within an image", + "returnType": "void", + "params": [ + { + "type": "Image *", + "name": "dst" + }, + { + "type": "Vector2 *", + "name": "points" + }, + { + "type": "int", + "name": "pointCount" + }, + { + "type": "Color", + "name": "color" + } + ] + }, { "name": "ImageDraw", "description": "Draw a source image within a destination image (tint applied to source)", diff --git a/generator/raymath_api.json b/generator/raymath_api.json index 7a3cbcc..21c75e8 100644 --- a/generator/raymath_api.json +++ b/generator/raymath_api.json @@ -2369,6 +2369,29 @@ "name": "q" } ] + }, + { + "name": "MatrixDecompose", + "description": "", + "returnType": "void", + "params": [ + { + "type": "Matrix", + "name": "mat" + }, + { + "type": "Vector3 *", + "name": "translation" + }, + { + "type": "Quaternion *", + "name": "rotation" + }, + { + "type": "Vector3 *", + "name": "scale" + } + ] } ] } diff --git a/lib/raylib_main.rb b/lib/raylib_main.rb index 5343e8d..30b4400 100644 --- a/lib/raylib_main.rb +++ b/lib/raylib_main.rb @@ -3207,9 +3207,9 @@ def self.setup_raylib_symbols(method_naming: :original) [:ImageBlurGaussian, :ImageBlurGaussian, [:pointer, :int], :void], # @!method ImageKernelConvolution(image, kernel, kernelSize) - # ImageKernelConvolution : Apply Custom Square image convolution kernel + # ImageKernelConvolution : Apply custom square convolution kernel to image # @param image [Image *] - # @param kernel [float*] + # @param kernel [const float *] # @param kernelSize [int] # @return [void] [:ImageKernelConvolution, :ImageKernelConvolution, [:pointer, :pointer, :int], :void], @@ -3414,6 +3414,16 @@ def self.setup_raylib_symbols(method_naming: :original) # @return [void] [:ImageDrawLineV, :ImageDrawLineV, [:pointer, Vector2.by_value, Vector2.by_value, Color.by_value], :void], + # @!method ImageDrawLineEx(dst, start, end, thick, color) + # ImageDrawLineEx : Draw a line defining thickness within an image + # @param dst [Image *] + # @param start [Vector2] + # @param end [Vector2] + # @param thick [int] + # @param color [Color] + # @return [void] + [:ImageDrawLineEx, :ImageDrawLineEx, [:pointer, Vector2.by_value, Vector2.by_value, :int, Color.by_value], :void], + # @!method ImageDrawCircle(dst, centerX, centerY, radius, color) # ImageDrawCircle : Draw a filled circle within an image # @param dst [Image *] @@ -3489,6 +3499,56 @@ def self.setup_raylib_symbols(method_naming: :original) # @return [void] [:ImageDrawRectangleLines, :ImageDrawRectangleLines, [:pointer, Rectangle.by_value, :int, Color.by_value], :void], + # @!method ImageDrawTriangle(dst, v1, v2, v3, color) + # ImageDrawTriangle : Draw triangle within an image + # @param dst [Image *] + # @param v1 [Vector2] + # @param v2 [Vector2] + # @param v3 [Vector2] + # @param color [Color] + # @return [void] + [:ImageDrawTriangle, :ImageDrawTriangle, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void], + + # @!method ImageDrawTriangleEx(dst, v1, v2, v3, c1, c2, c3) + # ImageDrawTriangleEx : Draw triangle with interpolated colors within an image + # @param dst [Image *] + # @param v1 [Vector2] + # @param v2 [Vector2] + # @param v3 [Vector2] + # @param c1 [Color] + # @param c2 [Color] + # @param c3 [Color] + # @return [void] + [:ImageDrawTriangleEx, :ImageDrawTriangleEx, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value, Color.by_value, Color.by_value], :void], + + # @!method ImageDrawTriangleLines(dst, v1, v2, v3, color) + # ImageDrawTriangleLines : Draw triangle outline within an image + # @param dst [Image *] + # @param v1 [Vector2] + # @param v2 [Vector2] + # @param v3 [Vector2] + # @param color [Color] + # @return [void] + [:ImageDrawTriangleLines, :ImageDrawTriangleLines, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void], + + # @!method ImageDrawTriangleFan(dst, points, pointCount, color) + # ImageDrawTriangleFan : Draw a triangle fan defined by points within an image (first vertex is the center) + # @param dst [Image *] + # @param points [Vector2 *] + # @param pointCount [int] + # @param color [Color] + # @return [void] + [:ImageDrawTriangleFan, :ImageDrawTriangleFan, [:pointer, :pointer, :int, Color.by_value], :void], + + # @!method ImageDrawTriangleStrip(dst, points, pointCount, color) + # ImageDrawTriangleStrip : Draw a triangle strip defined by points within an image + # @param dst [Image *] + # @param points [Vector2 *] + # @param pointCount [int] + # @param color [Color] + # @return [void] + [:ImageDrawTriangleStrip, :ImageDrawTriangleStrip, [:pointer, :pointer, :int, Color.by_value], :void], + # @!method ImageDraw(dst, src, srcRec, dstRec, tint) # ImageDraw : Draw a source image within a destination image (tint applied to source) # @param dst [Image *] diff --git a/lib/raymath.rb b/lib/raymath.rb index 2a103d1..46b8543 100644 --- a/lib/raymath.rb +++ b/lib/raymath.rb @@ -1032,6 +1032,15 @@ def self.setup_raymath_symbols(method_naming: :original) # @param q [Quaternion] # @return [int] [:QuaternionEquals, :QuaternionEquals, [Quaternion.by_value, Quaternion.by_value], :int], + + # @!method MatrixDecompose(mat, translation, rotation, scale) + # MatrixDecompose + # @param mat [Matrix] + # @param translation [Vector3 *] + # @param rotation [Quaternion *] + # @param scale [Vector3 *] + # @return [void] + [:MatrixDecompose, :MatrixDecompose, [Matrix.by_value, :pointer, :pointer, :pointer], :void], ] entries.each do |entry| api_name = if method_naming == :snake_case diff --git a/raygui_dll/raygui b/raygui_dll/raygui index 4b3d94f..0f832e6 160000 --- a/raygui_dll/raygui +++ b/raygui_dll/raygui @@ -1 +1 @@ -Subproject commit 4b3d94f5df6a5a2aa86286350f7e20c0ca35f516 +Subproject commit 0f832e6a6edfa77a93c327617468b15755cb05ce diff --git a/raylib_dll/raylib b/raylib_dll/raylib index b4fbdc0..c1ea326 160000 --- a/raylib_dll/raylib +++ b/raylib_dll/raylib @@ -1 +1 @@ -Subproject commit b4fbdc028302f9a697f196e8d02a7dca28912f59 +Subproject commit c1ea32655aad97402ea3b215ab7b414d0809bb8d