Skip to main content

repose_core/
render_api.rs

1use crate::units::Px;
2use crate::view::Scene;
3
4#[derive(Clone, Copy)]
5pub struct GlyphRasterConfig {
6    /// Rasterization size in physical pixels.
7    pub px: Px,
8}
9
10pub trait RenderBackend {
11    fn configure_surface(&mut self, width: u32, height: u32);
12    fn frame(&mut self, scene: &Scene, glyph_cfg: GlyphRasterConfig);
13}