Skip to content

Commit

Permalink
Updated with latest raylib ( raysan5/raylib@c1ea326 ) and raygui ( ra…
Browse files Browse the repository at this point in the history
  • Loading branch information
vaiorabbit committed Jun 29, 2024
1 parent 7b9e17d commit 39168d0
Show file tree
Hide file tree
Showing 8 changed files with 267 additions and 9 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-06-29 vaiorabbit <http://twitter.com/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 <http://twitter.com/vaiorabbit>

* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/b4fbdc028302f9a697f196e8d02a7dca28912f59 ) and raygui ( https://github.com/raysan5/raygui/commit/4b3d94f5df6a5a2aa86286350f7e20c0ca35f516 )
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

<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">
Expand Down
166 changes: 164 additions & 2 deletions generator/raylib_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -7351,15 +7351,15 @@
},
{
"name": "ImageKernelConvolution",
"description": "Apply Custom Square image convolution kernel",
"description": "Apply custom square convolution kernel to image",
"returnType": "void",
"params": [
{
"type": "Image *",
"name": "image"
},
{
"type": "float*",
"type": "const float *",
"name": "kernel"
},
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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)",
Expand Down
23 changes: 23 additions & 0 deletions generator/raymath_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
]
}
64 changes: 62 additions & 2 deletions lib/raylib_main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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 *]
Expand Down Expand Up @@ -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 *]
Expand Down
9 changes: 9 additions & 0 deletions lib/raymath.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion raygui_dll/raygui
Submodule raygui updated 1 files
+3 −3 src/raygui.h
2 changes: 1 addition & 1 deletion raylib_dll/raylib

0 comments on commit 39168d0

Please sign in to comment.