Mercurial > touhou
diff runners/src/bin/stdrenderer.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/stdrenderer.rs@a662dddd4a2b |
children |
line wrap: on
line diff
copy from examples/stdrenderer.rs copy to runners/src/bin/stdrenderer.rs --- a/examples/stdrenderer.rs +++ b/runners/src/bin/stdrenderer.rs @@ -8,20 +8,18 @@ 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::th06::std::{Stage, Position, Box2D}; -use touhou::th06::std_vm::StageRunner; -use touhou::util::prng::Prng; -use touhou::util::math::perspective; +use touhou_formats::th06::anm0::Anm0; +use touhou_formats::th06::std::{Stage, Position, Box2D}; +use touhou_interpreters::th06::anm0::{AnmRunner, Sprite, Vertex as FakeVertex}; +use touhou_interpreters::th06::std::StageRunner; +use touhou_utils::prng::Prng; +use touhou_utils::math::perspective; 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;