bevy/src/render/rect.rs
2020-01-10 22:42:54 -08:00

17 lines
305 B
Rust

use crate::math::{Vec2, Vec4};
pub struct Rect {
pub position: Vec2,
pub dimensions: Vec2,
pub color: Vec4,
}
impl Rect {
pub fn new(position: Vec2, dimensions: Vec2, color: Vec4) -> Self {
Rect {
position,
dimensions,
color,
}
}
}