diff runners/src/bin/stagerunner.rs @ 757:21b186be2590

Split the Rust version into multiple crates.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 05 Jan 2021 02:16:32 +0100
parents examples/stagerunner.rs@a662dddd4a2b
children
line wrap: on
line diff
copy from examples/stagerunner.rs
copy to runners/src/bin/stagerunner.rs
--- a/examples/stagerunner.rs
+++ b/runners/src/bin/stagerunner.rs
@@ -8,21 +8,19 @@ use luminance::tess::{Mode, TessBuilder}
 use luminance::texture::Dim2Array;
 use luminance_derive::{Semantics, Vertex, UniformInterface};
 use luminance_glfw::{Action, Key, WindowEvent, GlfwSurface, Surface, WindowDim, WindowOpt};
-use touhou::th06::anm0::Anm0;
-use touhou::th06::anm0_vm::Vertex as FakeVertex;
-use touhou::th06::ecl::{Ecl, Rank, MainInstruction};
-use touhou::th06::ecl_vm::EclRunner;
-use touhou::th06::enemy::{Enemy, Game, Position};
-use touhou::util::math::{perspective, setup_camera};
-use touhou::util::prng::Prng;
+use touhou_formats::th06::anm0::Anm0;
+use touhou_formats::th06::ecl::{Ecl, Rank, MainInstruction};
+use touhou_interpreters::th06::anm0::Vertex as FakeVertex;
+use touhou_interpreters::th06::ecl::EclRunner;
+use touhou_interpreters::th06::enemy::{Enemy, Game, Position};
+use touhou_utils::math::{perspective, setup_camera};
+use touhou_utils::prng::Prng;
 use std::cell::RefCell;
 use std::rc::Rc;
 use std::env;
 use std::path::Path;
 
-#[path = "common.rs"]
-mod common;
-use common::{load_file_into_vec, load_multiple_anm_images, LoadedTexture};
+use touhou_runners::common::{load_file_into_vec, load_multiple_anm_images, LoadedTexture};
 
 const VS: &str = r#"
 in ivec3 in_position;