1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use crate::{
    components::material_instance::HaMaterialInstance, material::domains::gizmo::GizmoFactory,
};

#[derive(Debug, Default, Clone)]
pub struct Gizmos {
    pub factory: GizmoFactory,
    pub material: HaMaterialInstance,
}

impl Gizmos {
    pub fn new(material: HaMaterialInstance) -> Self {
        Self {
            factory: Default::default(),
            material,
        }
    }

    pub fn with_capacity(
        vertex_capacity: usize,
        index_capacity: usize,
        material: HaMaterialInstance,
    ) -> Self {
        Self {
            factory: GizmoFactory::with_capacity(vertex_capacity, index_capacity),
            material,
        }
    }
}