From 90bb1071dc9c4435f6c0c8a1cc0d1961b278fe3c Mon Sep 17 00:00:00 2001 From: Locria Cyber <74560659+iacore@users.noreply.github.com> Date: Wed, 27 Dec 2023 15:58:57 +0000 Subject: [PATCH] add drawCircleLinesV --- lib/raylib-zig-ext.zig | 1 + lib/raylib-zig.zig | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib/raylib-zig-ext.zig b/lib/raylib-zig-ext.zig index edfbe31..7a7ccdc 100644 --- a/lib/raylib-zig-ext.zig +++ b/lib/raylib-zig-ext.zig @@ -205,6 +205,7 @@ pub extern "c" fn DrawCircleSectorLines(center: rl.Vector2, radius: f32, startAn pub extern "c" fn DrawCircleGradient(centerX: c_int, centerY: c_int, radius: f32, color1: rl.Color, color2: rl.Color) void; pub extern "c" fn DrawCircleV(center: rl.Vector2, radius: f32, color: rl.Color) void; pub extern "c" fn DrawCircleLines(centerX: c_int, centerY: c_int, radius: f32, color: rl.Color) void; +pub extern "c" fn DrawCircleLinesV(center: rl.Vector2, radius: f32, color: rl.Color) void; pub extern "c" fn DrawEllipse(centerX: c_int, centerY: c_int, radiusH: f32, radiusV: f32, color: rl.Color) void; pub extern "c" fn DrawEllipseLines(centerX: c_int, centerY: c_int, radiusH: f32, radiusV: f32, color: rl.Color) void; pub extern "c" fn DrawRing(center: rl.Vector2, innerRadius: f32, outerRadius: f32, startAngle: f32, endAngle: f32, segments: c_int, color: rl.Color) void; diff --git a/lib/raylib-zig.zig b/lib/raylib-zig.zig index c6a41c2..4adf21f 100644 --- a/lib/raylib-zig.zig +++ b/lib/raylib-zig.zig @@ -2184,6 +2184,10 @@ pub fn drawCircleLines(centerX: i32, centerY: i32, radius: f32, color: Color) vo cdef.DrawCircleLines(@as(c_int, centerX), @as(c_int, centerY), radius, color); } +pub fn drawCircleLinesV(center: Vector2, radius: f32, color: Color) void { + cdef.DrawCircleLinesV(center, radius, color); +} + pub fn drawEllipse(centerX: i32, centerY: i32, radiusH: f32, radiusV: f32, color: Color) void { cdef.DrawEllipse(@as(c_int, centerX), @as(c_int, centerY), radiusH, radiusV, color); }