Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub trait Camera {
fn viewport(&self) -> Option<(i32, i32, i32, i32)>;
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Camera2D {
/// Rotation in degrees.
pub rotation: f32,
Expand Down Expand Up @@ -183,7 +183,7 @@ pub enum Projection {
Orthographics,
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Camera3D {
/// Camera position.
pub position: Vec3,
Expand Down