Trait rin_graphics::camera::CameraExt[][src]

pub trait CameraExt: NodeRef + NodeMut {
Show methods fn projection(&self) -> Mat4;
fn view(&self) -> Mat4;
fn projection_view(&self) -> Mat4;
fn fov(&self) -> Option<Deg<f32>>;
fn width(&self) -> Option<f32>;
fn near_far_clip(&self) -> (f32, Option<f32>);
fn near_clip(&self) -> f32;
fn far_clip(&self) -> Option<f32>;
fn target(&self) -> &Pnt3;
fn up(&self) -> &Unit<Vec3>;
fn aspect_ratio(&self) -> f32;
fn set_near(&mut self, near: f32);
fn set_far(&mut self, far: f32);
fn set_near_far(&mut self, near: f32, far: f32);
fn set_aspect_ratio(&mut self, aspect: f32);
fn set_target(&mut self, target: Pnt3);
fn set_reversed_z(&mut self, reversed_z: bool);
fn reversed_z(&self) -> bool;
fn far_at_infinity(&self) -> bool;
fn hfov(&self) -> Option<Deg<f32>>;
fn focal_length(&self) -> Option<f32>;
fn sensor_width_mm(&self) -> Option<f32>;
fn enable_depth_clamp(&mut self);
fn disable_depth_clamp(&mut self);
fn depth_clamp(&self) -> bool;
fn update(&mut self) -> bool;
}

Required methods

fn projection(&self) -> Mat4[src]

fn view(&self) -> Mat4[src]

fn projection_view(&self) -> Mat4[src]

fn fov(&self) -> Option<Deg<f32>>[src]

fn width(&self) -> Option<f32>[src]

fn near_far_clip(&self) -> (f32, Option<f32>)[src]

fn near_clip(&self) -> f32[src]

fn far_clip(&self) -> Option<f32>[src]

fn target(&self) -> &Pnt3[src]

fn up(&self) -> &Unit<Vec3>[src]

fn aspect_ratio(&self) -> f32[src]

fn set_near(&mut self, near: f32)[src]

fn set_far(&mut self, far: f32)[src]

fn set_near_far(&mut self, near: f32, far: f32)[src]

fn set_aspect_ratio(&mut self, aspect: f32)[src]

fn set_target(&mut self, target: Pnt3)[src]

fn set_reversed_z(&mut self, reversed_z: bool)[src]

fn reversed_z(&self) -> bool[src]

fn far_at_infinity(&self) -> bool[src]

fn hfov(&self) -> Option<Deg<f32>>[src]

Horizontal field of view

fn focal_length(&self) -> Option<f32>[src]

Return the camera focal length

fn sensor_width_mm(&self) -> Option<f32>[src]

Return the camera sensor width

fn enable_depth_clamp(&mut self)[src]

Enables depth clamping

Doesn’t really change the projection or view matrices of the camera but can be use as a flag to signal a renderer to do depth clamping.

fn disable_depth_clamp(&mut self)[src]

Disables depth clamping

Doesn’t really change the projection or view matrices of the camera but can be use as a flag to signal a renderer to not do depth clamping.

fn depth_clamp(&self) -> bool[src]

Returns if depth clamping is enabled

Doesn’t really change the projection or view matrices of the camera but can be use as a flag to signal a renderer to do depth clamping or not.

fn update(&mut self) -> bool[src]

Loading content...

Implementors

impl CameraExt for Camera[src]

impl CameraExt for OrthoCamera[src]

impl<C: CameraExt + NodeMut> CameraExt for ArcballCamera<C>[src]

Loading content...