UI primitive builders (rounded rects, scissor stack, text layout) on top of mizchi/gfx, mizchi/text, mizchi/font (extracted from kagura)
Dependencies
pub(all) struct BorderWidths {
top : Double
right : Double
bottom : Double
left : Double
}pub(all) struct ScissorRect {
x : Int
y : Int
width : Int
height : Int
}fn border_vertices(x : Double, y : Double, w : Double, h : Double, border : BorderWidths, screen_w : Double, screen_h : Double) -> (Array[Double], Array[Int])fn render_text(text_renderer : TextRenderer, text : String, size_px : Double, x : Double, y : Double, dst : ImageHandle, shader : ShaderHandle, color_hex : Int, screen_w : Double, screen_h : Double) -> Array[DrawTrianglesCommand]UI primitive builders (rounded rects, scissor stack, text layout) on top of mizchi/gfx, mizchi/text, mizchi/font (extracted from kagura)
Dependencies