gled-ui 2.33.0

gled's egui interface, shared by the desktop app and the browser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! What the editors keep decoded or rasterized between frames.

use crate::canvas::images::Images;
use crate::canvas::model_textures::ModelTextures;

/// Pictures and fixture models, as textures.
#[derive(Debug, Default)]
pub(crate) struct Caches {
    pub(crate) images: Images,
    pub(crate) models: ModelTextures,
}

impl Caches {
    /// Call once per frame, before anything is drawn from the caches.
    pub(crate) fn begin_frame(&mut self) {
        self.models.begin_frame();
    }
}