pub fn add_rounded_rect2f(
    start_x: f32,
    start_y: f32,
    size_x: f32,
    size_y: f32,
    radius: f32,
    res: i32
)
Expand description

Adds a rounded rectangle to the current frame.

Arguments

  • start_x - A f32 representing the x-coordinate of the starting point of the rectangle.
  • start_y - A f32 representing the y-coordinate of the starting point of the rectangle.
  • size_x - A f32 representing the width of the rectangle.
  • size_y - A f32 representing the height of the rectangle.
  • radius - A f32 representing the radius of the corners of the rectangle.
  • res - An i32 representing the number of segments used to approximate the corners of the rectangle.