feat: bootstrap namespace-driven Tessera renderer

This commit is contained in:
2026-10-04 19:32:04 +08:00
commit 2f4c8f0fe2
14 changed files with 4262 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
mod api;
mod app;
mod compiler;
mod developer_tools;
mod display_list;
mod document;
mod geometry;
mod scene;
mod software_renderer;
use std::sync::{Arc, RwLock};
use anyhow::Result;
use app::{AppEvent, TesseraApp};
use document::NamespaceState;
use winit::event_loop::{ControlFlow, EventLoop};
fn main() -> Result<()> {
let event_loop = EventLoop::<AppEvent>::with_user_event().build()?;
event_loop.set_control_flow(ControlFlow::Wait);
let namespace = Arc::new(RwLock::new(NamespaceState::default()));
api::start(namespace.clone(), event_loop.create_proxy())?;
event_loop.run_app(&mut TesseraApp::new(namespace))?;
Ok(())
}