hUI/hui-painter/src/lib.rs
griffi-gh 8baa85998b Squashed commit of the following:
commit 79098b2523f6009824d3992dc98c24944d49c784
Author: griffi-gh <prasol258@gmail.com>
Date:   Sat Sep 28 10:46:00 2024 +0200

    Revert "wip integrate hui-painter instead of `hui::draw`"

    This reverts commit 3d01377eb2.

commit 3d01377eb2
Author: griffi-gh <prasol258@gmail.com>
Date:   Fri Sep 27 21:42:58 2024 +0200

    wip integrate hui-painter instead of `hui::draw`
2024-09-28 10:49:01 +02:00

37 lines
673 B
Rust

pub mod paint;
pub mod texture;
pub mod text;
pub mod util;
use text::FontManager;
use texture::TextureAtlas;
/// Painter instance, stores textures and fonts needed for rendering
#[derive(Default)]
pub struct PainterInstance {
pub atlas: TextureAtlas,
pub fonts: FontManager,
}
impl PainterInstance {
pub fn new() -> Self {
Self::default()
}
// pub fn atlas(&self) -> &TextureAtlas {
// &self.atlas
// }
// pub fn atlas_mut(&mut self) -> &mut TextureAtlas {
// &mut self.atlas
// }
// pub fn fonts(&self) -> &FontManager {
// &self.fonts
// }
// pub fn fonts_mut(&mut self) -> &mut FontManager {
// &mut self.fonts
// }
}