Struct winit_input_helper::Camera[][src]

pub struct Camera {
    pub zoom: f32,
    pub pan: (f32, f32),
}

Specify the camera state, to convert mouse to game coordinates TODO: Document values required TODO: Either:

  • generaralize to 3D
  • Create a second API for 3D and document as 2D only

Fields

Auto Trait Implementations

impl Send for Camera

impl Sync for Camera