aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:23 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:23 +0100
commit0353181306702c40ad0fe482b5c2b159b46794a4 (patch)
tree33acc6a9e8ea4705884cf93b78cf869008f71832 /examples
parent664f0b0777ba96298b29f0c753d52a81cbb233f1 (diff)
refactor(all): rename some crates
Diffstat (limited to 'examples')
-rw-r--r--examples/render-quad/Cargo.toml4
-rw-r--r--examples/render-quad/src/main.rs53
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::*;