mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-01 19:28:43 -06:00
23 lines
341 B
Rust
23 lines
341 B
Rust
|
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 {
|
||
|
|
||
|
}
|