This commit is contained in:
2026-01-24 01:00:21 +01:00
parent c2b9bb3aa1
commit 2a62e53ed5
3 changed files with 68 additions and 14 deletions
+5
View File
@@ -1,10 +1,12 @@
use std::sync::Arc;
pub mod component;
pub mod engine;
pub mod state;
pub mod prelude {
pub use crate::component::*;
pub use crate::engine::*;
pub use crate::state::*;
pub use crate::{DrawContext, View};
}
@@ -23,6 +25,9 @@ pub struct DrawContext {
used: Size,
}
#[derive(Debug, Clone)]
pub struct RenderContext {}
impl DrawContext {
pub fn new(width: u16, height: u16) -> Self {
Self {