diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/render-quad/Cargo.toml | 4 | ||||
-rw-r--r-- | examples/render-quad/src/main.rs | 53 |
2 files changed, 31 insertions, 26 deletions
diff --git a/examples/render-quad/Cargo.toml b/examples/render-quad/Cargo.toml index 9988c66..0c4306d 100644 --- a/examples/render-quad/Cargo.toml +++ b/examples/render-quad/Cargo.toml @@ -5,13 +5,13 @@ authors = ["Oscar <oscar.shrimpton.personal@gmail.com>"] edition = "2018" [dependencies] -stockton-render = { path = "../../stockton-render", features = ["vulkan"] } +stockton-skeleton = { path = "../../stockton-skeleton", features = ["vulkan"] } stockton-input = { path = "../../stockton-input" } stockton-input-codegen = { path = "../../stockton-input-codegen" } stockton-types = { path = "../../stockton-types" } stockton-levels = { path = "../../stockton-levels" } stockton-contrib = { path = "../../stockton-contrib", features = ["delta_time", "flycam"] } -stockton-passes = { path = "../../stockton-passes" } +stockton-render = { path = "../../stockton-render" } winit = "^0.21" log = "0.4.0" simplelog = "^0.10" diff --git a/examples/render-quad/src/main.rs b/examples/render-quad/src/main.rs index 6e192dc..618779e 100644 --- a/examples/render-quad/src/main.rs +++ b/examples/render-quad/src/main.rs @@ -6,35 +6,40 @@ extern crate stockton_input_codegen; #[macro_use] extern crate legion; -use anyhow::{Context, Result}; -use log::warn; -use std::collections::BTreeMap; -use stockton_passes::camera::calc_vp_matrix_system; -use stockton_passes::window::{process_window_events_system, UiState, WindowEvent, WindowFlow}; -use winit::event_loop::ControlFlow; - -use std::path::Path; -use std::sync::{Arc, RwLock}; -use stockton_levels::parts::data::{Geometry, Vertex}; -use stockton_levels::types::Rgba; -use stockton_passes::{ +use std::{ + collections::BTreeMap, + path::Path, + sync::{Arc, RwLock}, +}; + +use stockton_contrib::{delta_time::*, flycam::*}; +use stockton_input::{Axis, InputManager, Mouse}; +use stockton_levels::{ + parts::data::{Geometry, Vertex}, + types::Rgba, +}; +use stockton_render::{ + camera::calc_vp_matrix_system, level::{LevelDrawPass, LevelDrawPassConfig}, ui::UiDrawPass, + window::{process_window_events_system, UiState, WindowEvent, WindowFlow}, +}; +use stockton_skeleton::{ + draw_passes::ConsDrawPass, error::full_error_display, texture::resolver::FsResolver, Renderer, +}; +use stockton_types::{ + components::{CameraSettings, CameraVPMatrix, Transform}, + Session, Vector2, Vector3, }; -use stockton_render::{draw_passes::ConsDrawPass, texture::resolver::FsResolver}; -use winit::{event::Event, event_loop::EventLoop, window::WindowBuilder}; +use anyhow::{Context, Result}; use egui::{containers::CentralPanel, Frame}; -use stockton_contrib::delta_time::*; -use stockton_contrib::flycam::*; - -use stockton_input::{Axis, InputManager, Mouse}; - -use stockton_render::error::full_error_display; -use stockton_render::Renderer; - -use stockton_types::components::{CameraSettings, CameraVPMatrix, Transform}; -use stockton_types::{Session, Vector2, Vector3}; +use log::warn; +use winit::{ + event::Event, + event_loop::{ControlFlow, EventLoop}, + window::WindowBuilder, +}; mod level; use level::*; |