PixSpace/src/viewer.rs

22 lines
376 B
Rust
Raw Normal View History

2022-12-06 15:44:16 +01:00
use bevy::{prelude::*, window::PresentMode, render::camera::CameraProjectionPlugin};
use offaxis::{offaxis_camera_setup, OffAxisProjection};
#[derive(Component)]
struct Viewer;
#[derive(Component)]
pub struct Viewer {
position: Vec3,
orientation: Quat,
}
impl Viewer {
fn default() -> Self {
Self {
position: Vec3::ZERO,
}
}
}