add drawCircleLinesV

This commit is contained in:
Locria Cyber 2023-12-27 15:58:57 +00:00
parent dfd0e4ffa8
commit 90bb1071dc
No known key found for this signature in database
GPG Key ID: F8C16E5157A63006
2 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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);
}