♻️ Refactor RenderState and GpuState

This commit is contained in:
Belén Albeza 2024-11-14 11:47:10 +01:00
parent 966e942a7f
commit 3e06c17a38
3 changed files with 63 additions and 61 deletions

View file

@ -27,10 +27,6 @@ impl<'a> State<'a> {
}
}
pub fn set_surface(&mut self, surface: skia::Surface) {
self.render_state.surface = surface;
}
pub fn use_shape(&'a mut self, id: Uuid) {
if !self.shapes.contains_key(&id) {
let new_shape = Shape::new(id);