gled-core 2.30.2

The engine of gled without a user interface: inputs, timing, rendering, Art-Net/DMX output and storage
Documentation
//! The LED output: reading frames back from the GPU and sending them.

pub(crate) mod extract_output;
pub(crate) mod output;
pub(crate) mod output_sender;

use gled_gpu::{layout::LampLayout, render_to_output::positions::Positions};
use gled_model::asset::group::Group;

use crate::runtime::svg::CurrentSvg;

/// The lamp layout of the SVG parsed last.
#[derive(Debug, Clone, Copy, Default)]
pub(crate) struct CurrentLayout;

impl LampLayout for CurrentLayout {
    fn positions(&self, group: &Group) -> Positions {
        CurrentSvg::positions(group)
    }

    fn preview_positions(&self) -> Positions {
        CurrentSvg::preview_positions()
    }
}