gled 2.28.5

gled is an application for creating animations and effects on artnet or dmx installations
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::{App, svg::Svg};

impl App {
    pub fn svg(&self) -> Option<&Svg> {
        self.project
            .as_ref()
            .and_then(|project| project.svg.as_ref())
    }

    pub fn svg_texture(&mut self, context: &egui::Context) -> Option<egui::TextureHandle> {
        self.project
            .as_mut()?
            .svg
            .as_mut()?
            .image(context, &mut self.extract_output)
    }
}