feat(input): mouse pointer

This commit is contained in:
Nova
2022-09-13 16:40:59 -04:00
parent 342a413b9a
commit 4d897f4fcd
8 changed files with 171 additions and 119 deletions

View File

@@ -16,6 +16,13 @@ pub struct Spatial {
}
impl Spatial {
pub fn new(node: Weak<Node>, parent: Option<Arc<Spatial>>, transform: Mat4) -> Arc<Self> {
Arc::new(Spatial {
node,
parent: Mutex::new(parent),
transform: Mutex::new(transform),
})
}
pub fn add_to(
node: &Arc<Node>,
parent: Option<Arc<Spatial>>,