fn create_quad(x: f32, y: f32, width: f32, height: f32) -> [Vertex; 4] {
    [Vertex { pos: [x + 0.0,   y +    0.0], uv: [0.0, 0.0], },
     Vertex { pos: [x + 0.0,   y + height], uv: [0.0, 1.0], },
     Vertex { pos: [x + width, y + height], uv: [1.0, 1.0], },
     Vertex { pos: [x + width, y +    0.0], uv: [1.0, 0.0], }]
}
// dimensions are in world-space
dimensions are in world-space
dimensions are in world - space
fn create_quad(x: f32, y: f32, width: f32, height: f32) -> [Vertex; 4] {
    [Vertex { pos: [x + 0.0,   y +    0.0], uv: [0.0, 0.0], },
     Vertex { pos: [x + 0.0,   y + height], uv: [0.0, 1.0], },
     Vertex { pos: [x + width, y + height], uv: [1.0, 1.0], },
     Vertex { pos: [x + width, y +    0.0], uv: [1.0, 0.0], }]
}
fn create_quad ( x : f32 , y : f32 , width : f32 , height : f32 ) -> [ Vertex ; 4 ] { [ Vertex { pos : [ x + 0.0 , y + 0.0 ] , uv : [ 0.0 , 0.0 ] , } , Vertex { pos : [ x + 0.0 , y + height ] , uv : [ 0.0 , 1.0 ] , } , Vertex { pos : [ x + width , y + height ] , uv : [ 1.0 , 1.0 ] , } , Vertex { pos : [ x + width , y + 0.0 ] , uv : [ 1.0 , 0.0 ] , } ] }
dimensions are in world-space
dimensions are in world - space
x
f32
y
f32
width
f32
height
f32
x
f32
y
f32
width
f32
height
f32