aboutsummaryrefslogtreecommitdiff
path: root/examples/render-quad/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/render-quad/src')
-rw-r--r--examples/render-quad/src/level.rs5
-rw-r--r--examples/render-quad/src/main.rs8
2 files changed, 6 insertions, 7 deletions
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};