mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-12-22 20:28:21 -06:00
griffi-gh
8baa85998b
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 commit3d01377eb2
. commit3d01377eb2
Author: griffi-gh <prasol258@gmail.com> Date: Fri Sep 27 21:42:58 2024 +0200 wip integrate hui-painter instead of `hui::draw`
37 lines
673 B
Rust
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
|
|
// }
|
|
}
|