Skip to content

armgit / BUI

Public Imported from GitHub
0

Blender's GPU Accelerated UI, Decoupled from it's original codebase. Supports Rust, Python, JS, React, C & C++. Twice as good as GPUI

565 B
Raw Blame
//! The `site_plain_html` page inside `styled`: the same markup, drawn in
//! Blender's theme with Blender's widgets (dark or light: BUI_THEME).
//!
//! ```text
//! cargo run --release --example site_styled
//! ```

#[path = "site/common.rs"]
mod common;
#[path = "site/form_page.rs"]
mod form_page;

use blenderui::prelude::*;

struct Page;

impl Render for Page {
    fn render(&mut self, _: &mut Window, _: &mut Context<Self>) -> impl IntoElement {
        form_page::page(true)
    }
}

fn main() {
    common::run(560.0, 520.0, "Export Animation", || Page);
}