aboutsummaryrefslogtreecommitdiff
path: root/examples/render-quad
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:24 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:24 +0100
commit6367a9ba5a549b62f01da61fb50323877b9f52ff (patch)
treeeb83ed6487f2ec35f9ea1e97124c9a173b8ceef0 /examples/render-quad
parentf84ec1a3e077fa0f2e9cd310b6e32e81f1bc1129 (diff)
refactor(all): move types to -skeleton
Diffstat (limited to 'examples/render-quad')
-rw-r--r--examples/render-quad/Cargo.toml1
-rw-r--r--examples/render-quad/src/level.rs5
-rw-r--r--examples/render-quad/src/main.rs8
3 files changed, 6 insertions, 8 deletions
diff --git a/examples/render-quad/Cargo.toml b/examples/render-quad/Cargo.toml
index 0c4306d..99cf38e 100644
--- a/examples/render-quad/Cargo.toml
+++ b/examples/render-quad/Cargo.toml
@@ -8,7 +8,6 @@ edition = "2018"
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-render = { path = "../../stockton-render" }
diff --git a/examples/render-quad/src/level.rs b/examples/render-quad/src/level.rs
index d10c3b6..74d1cc3 100644
--- a/examples/render-quad/src/level.rs
+++ b/examples/render-quad/src/level.rs
@@ -2,6 +2,7 @@ use stockton_levels::parts::{
data::{FaceRef, Geometry, TextureRef},
HasFaces, HasTextures, HasVisData, IsFace, IsTexture,
};
+use stockton_skeleton::components::{CameraSettings, Transform};
pub struct DemoLevel {
pub faces: Box<[Face]>,
@@ -70,8 +71,8 @@ impl<'a> HasVisData<'a> for DemoLevel {
fn get_visible(
&'a self,
- _transform: &stockton_types::components::Transform,
- _settings: &stockton_types::components::CameraSettings,
+ _transform: &Transform,
+ _settings: &CameraSettings,
) -> Self::Faces {
0..self.faces.len() as u32
}
diff --git a/examples/render-quad/src/main.rs b/examples/render-quad/src/main.rs
index 0b7f3be..c5d52a9 100644
--- a/examples/render-quad/src/main.rs
+++ b/examples/render-quad/src/main.rs
@@ -15,7 +15,7 @@ use std::{
use stockton_contrib::{delta_time::*, flycam::*};
use stockton_input::{Axis, InputManager, Mouse};
use stockton_levels::{
- parts::data::{Geometry, Vertex},
+ parts::{data::{Geometry, Vertex}, FsResolver},
types::Rgba,
};
use stockton_render::{
@@ -24,11 +24,9 @@ use stockton_render::{
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::{
+ draw_passes::ConsDrawPass, error::full_error_display, Renderer,
+ Session, types::*,
components::{CameraSettings, Transform},
- Session, Vector2, Vector3,
};
use anyhow::{Context, Result};