summaryrefslogtreecommitdiff
path: root/crates/renderer/src/main.rs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-06-09 03:20:53 -0400
committerLLLL Colonq <llll@colonq>2026-06-09 03:20:53 -0400
commit9065f3c9765123f5f5bc503407c493fdb7c79488 (patch)
treea442c9be93715217fd6e05b1bab2a20dc2fe7d18 /crates/renderer/src/main.rs
parent01899d77e0e04a470fbc1ca000fef6e467334516 (diff)
Initial handcam stuff
Diffstat (limited to 'crates/renderer/src/main.rs')
-rw-r--r--crates/renderer/src/main.rs23
1 files changed, 6 insertions, 17 deletions
diff --git a/crates/renderer/src/main.rs b/crates/renderer/src/main.rs
index cd5c1b0..d9ff83d 100644
--- a/crates/renderer/src/main.rs
+++ b/crates/renderer/src/main.rs
@@ -12,36 +12,25 @@ mod ffi;
mod texture_server;
use teleia::*;
-use clap::{command, Command, Arg};
-use std::io::Write as _;
+use clap::{command, Command};
pub fn main() -> Erm<()> {
let matches = command!()
.propagate_version(true)
.subcommand_required(true)
.arg_required_else_help(true)
- .subcommand(
- Command::new("overlay")
- .about("Run the full-screen transparent overlay")
- )
- .subcommand(
- Command::new("model-terminal")
- .about("Run the LCOLONQ model renderer in a terminal")
- )
- .subcommand(
- Command::new("repair-card")
- .arg(Arg::new("path"))
- .about("Repair the TCG card at the given path.")
- )
+ .subcommand(Command::new("overlay").about("Run the full-screen transparent overlay"))
+ .subcommand(Command::new("model-terminal").about("Run the LCOLONQ model renderer in a terminal"))
.get_matches();
match matches.subcommand() {
Some(("overlay", _cm)) => {
- teleia::run("LCOLONQ", 1920, 1080, teleia::Options::OVERLAY, |ctx| {
- overlay::Overlays::new(ctx, vec![
+ teleia::run("LCOLONQ", 1920, 1080, teleia::Options::OVERLAY, |ctx, st| {
+ overlay::Overlays::new(ctx, st, vec![
Box::new(overlay::automata::Overlay::new(ctx)),
Box::new(overlay::shader::Overlay::new(ctx)),
Box::new(overlay::tcg::Overlay::new(ctx)),
Box::new(overlay::clippy::Overlay::new(ctx)),
+ Box::new(overlay::handcam::Overlay::new(ctx)),
Box::new(overlay::combo::Overlay::new(ctx)),
Box::new(overlay::drawing::Overlay::new(ctx)),
Box::new(overlay::asset::Overlay::new(ctx)),