Function cgl_rs::graphics::widgets::add_line2f
source · pub fn add_line2f(start_x: f32, start_y: f32, end_x: f32, end_y: f32)
Expand description
Adds a line to the current frame.
Arguments
start_x
- Af32
representing the x-coordinate of the starting point of the line.start_y
- Af32
representing the y-coordinate of the starting point of the line.end_x
- Af32
representing the x-coordinate of the ending point of the line.end_y
- Af32
representing the y-coordinate of the ending point of the line.