Mercurial > touhou
diff runners/src/bin/eclrenderer.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/eclrenderer.rs@a662dddd4a2b |
children |
line wrap: on
line diff
copy from examples/eclrenderer.rs copy to runners/src/bin/eclrenderer.rs --- a/examples/eclrenderer.rs +++ b/runners/src/bin/eclrenderer.rs @@ -8,21 +8,19 @@ 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::{Sprite, Vertex as FakeVertex}; -use touhou::th06::ecl::{Ecl, Rank}; -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}; +use touhou_interpreters::th06::anm0::{Sprite, 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_anm_image, LoadedTexture}; +use touhou_runners::common::{load_file_into_vec, load_anm_image, LoadedTexture}; const VS: &str = r#" in ivec3 in_position;