Trait Camera

Source
pub trait Camera {
    // Required methods
    fn matrix(&self, w: f32, h: f32) -> Mat4;
    fn depth(&self) -> bool;

    // Provided method
    fn position(&self) -> Option<Vec3> { ... }
}

Required Methods§

Source

fn matrix(&self, w: f32, h: f32) -> Mat4

Source

fn depth(&self) -> bool

Provided Methods§

Source

fn position(&self) -> Option<Vec3>

Implementors§