kubi/kubi-ui/src/draw.rs

23 lines
341 B
Rust
Raw Normal View History

2023-11-21 07:08:22 -06:00
use glam::{Vec2, vec2, Vec4};
#[derive(Clone, Copy, Debug)]
pub enum UiDrawCall {
///Filled, colored rectangle
Rectangle {
///Position in pixels
position: Vec2,
///Size in pixels
size: Vec2,
///Color (RGBA)
color: Vec4,
}
}
pub struct UiDrawCalls {
pub calls: Vec<UiDrawCall>,
}
pub struct UiDrawPlan {
}