oxygengine-ha-renderer 0.30.0

Hardware Accelerated renderer module for Oxygengine
Documentation
use crate::math::Rgba;
use core::{
    prefab::{Prefab, PrefabComponent},
    Ignite,
};
use serde::{Deserialize, Serialize};

#[derive(Ignite, Debug, Default, Copy, Clone, Serialize, Deserialize)]
pub struct HaGizmo {
    #[serde(default)]
    pub visible: bool,
    #[serde(default = "HaGizmo::default_color")]
    pub color: Rgba,
}

impl HaGizmo {
    fn default_color() -> Rgba {
        Rgba::new(1.0, 0.0, 1.0, 1.0)
    }
}

impl Prefab for HaGizmo {}
impl PrefabComponent for HaGizmo {}