diff runners/src/bin/menu.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/menu.rs@a662dddd4a2b
children
line wrap: on
line diff
copy from examples/menu.rs
copy to runners/src/bin/menu.rs
--- a/examples/menu.rs
+++ b/runners/src/bin/menu.rs
@@ -9,19 +9,17 @@ 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::pbg3;
-use touhou::th06::anm0::Anm0;
-use touhou::th06::anm0_vm::{AnmRunner, Sprite, Vertex as FakeVertex};
-use touhou::util::math::{perspective, setup_camera, ortho_2d};
-use touhou::util::prng::Prng;
+use touhou_formats::th06::pbg3;
+use touhou_formats::th06::anm0::Anm0;
+use touhou_interpreters::th06::anm0::{AnmRunner, Sprite, Vertex as FakeVertex};
+use touhou_utils::math::{perspective, setup_camera, ortho_2d};
+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::LoadedTexture;
+use touhou_runners::common::{self, LoadedTexture};
 
 const VS: &str = r#"
 in ivec3 in_position;