better & more fine grained redraw system (should allow movement)

This commit is contained in:
2025-09-07 23:33:36 -04:00
parent d4690401eb
commit 09f4de619e
6 changed files with 308 additions and 215 deletions

View File

@@ -4,7 +4,7 @@ use crate::{
};
#[repr(C)]
#[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable, Default)]
#[derive(Debug, Copy, Clone, PartialEq, bytemuck::Pod, bytemuck::Zeroable, Default)]
pub struct UiPos {
pub anchor: Vec2,
pub offset: Vec2,
@@ -132,7 +132,7 @@ impl UIScalar {
}
#[repr(C)]
#[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)]
#[derive(Debug, Copy, Clone, PartialEq, bytemuck::Pod, bytemuck::Zeroable)]
pub struct UiRegion {
pub top_left: UiPos,
pub bot_right: UiPos,