diff runners/src/bin/anmrenderer.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/anmrenderer.rs@a662dddd4a2b
children
line wrap: on
line diff
copy from examples/anmrenderer.rs
copy to runners/src/bin/anmrenderer.rs
--- a/examples/anmrenderer.rs
+++ b/runners/src/bin/anmrenderer.rs
@@ -8,18 +8,16 @@ use luminance::tess::{Mode, TessBuilder}
 use luminance::texture::Dim2;
 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::{AnmRunner, Sprite, Vertex as FakeVertex};
-use touhou::util::math::{perspective, setup_camera};
-use touhou::util::prng::Prng;
+use touhou_formats::th06::anm0::Anm0;
+use touhou_interpreters::th06::anm0::{AnmRunner, Sprite, Vertex as FakeVertex};
+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_anm_image, LoadedTexture};
+use touhou_runners::common::{load_file_into_vec, load_anm_image, LoadedTexture};
 
 const VS: &str = r#"
 in ivec3 in_position;