Window with textured polygon

This commit is contained in:
Keavon Chambers
2020-04-26 00:28:13 -07:00
commit b30ee294a6
17 changed files with 2804 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
pub struct GUIRect {
pub corners: Corners<(f32, f32)>,
pub corners_radius: Corners<f32>,
pub sides_inset: Sides<f32>,
pub border: f32,
pub border_color: wgpu::Color,
pub fill_color: wgpu::Color,
pub fill_texture: Option<wgpu::Texture>,
}
pub struct Corners<T> {
pub top_left: T,
pub top_right: T,
pub bottom_right: T,
pub bottom_left: T,
}
pub struct Sides<T> {
pub top: T,
pub right: T,
pub bottom: T,
pub left: T,
}