Struct octoon::cameras::orthographic::OrthographicCamera
source · pub struct OrthographicCamera { /* private fields */ }
Implementations
sourceimpl OrthographicCamera
impl OrthographicCamera
pub fn new(width: f32, height: f32, film_size: f32, focal_length: f32) -> Self
pub fn aperture(&self) -> f32
pub fn shutter_speed(&self) -> f32
pub fn iso(&self) -> f32
pub fn set_aperture(&mut self, aperture: f32)
pub fn set_shutter_speed(&mut self, shutter_speed: f32)
pub fn set_iso(&mut self, iso: f32)
pub fn set_fov(&mut self, fov: f32)
pub fn fov(&self) -> f32
Trait Implementations
sourceimpl Camera for OrthographicCamera
impl Camera for OrthographicCamera
fn film_size(&self) -> f32
fn focal_length(&self) -> f32
fn width(&self) -> f32
fn height(&self) -> f32
fn clear_color(&self) -> (f32, f32, f32, f32)
fn viewport(&self) -> (f32, f32, f32, f32)
fn set_width(&mut self, width: f32)
fn set_height(&mut self, height: f32)
fn set_clear_color(&mut self, r: f32, g: f32, b: f32, a: f32)
fn set_viewport(&mut self, x: f32, y: f32, z: f32, w: f32)
fn view(&self) -> &float4x4
fn view_inverse(&self) -> &float4x4
fn projection(&self) -> &float4x4
fn view_projection(&self) -> &float4x4
fn exposure(&self) -> f32
fn ratio(&self) -> f32
fn focal_distance(&self) -> f32
sourceimpl Debug for OrthographicCamera
impl Debug for OrthographicCamera
sourceimpl Default for OrthographicCamera
impl Default for OrthographicCamera
sourcefn default() -> OrthographicCamera
fn default() -> OrthographicCamera
Returns the “default value” for a type. Read more
sourceimpl Downcast for OrthographicCamera
impl Downcast for OrthographicCamera
sourceimpl From<OrthographicCamera> for Arc<RefCell<dyn Camera + 'static>>
impl From<OrthographicCamera> for Arc<RefCell<dyn Camera + 'static>>
sourcefn from(camera: OrthographicCamera) -> Self
fn from(camera: OrthographicCamera) -> Self
Converts to this type from the input type.
sourceimpl From<OrthographicCamera> for Arc<dyn Camera + 'static>
impl From<OrthographicCamera> for Arc<dyn Camera + 'static>
sourcefn from(camera: OrthographicCamera) -> Self
fn from(camera: OrthographicCamera) -> Self
Converts to this type from the input type.
sourceimpl From<OrthographicCamera> for Rc<RefCell<dyn Camera + 'static>>
impl From<OrthographicCamera> for Rc<RefCell<dyn Camera + 'static>>
sourcefn from(camera: OrthographicCamera) -> Self
fn from(camera: OrthographicCamera) -> Self
Converts to this type from the input type.
sourceimpl From<OrthographicCamera> for Rc<dyn Camera + 'static>
impl From<OrthographicCamera> for Rc<dyn Camera + 'static>
sourcefn from(camera: OrthographicCamera) -> Self
fn from(camera: OrthographicCamera) -> Self
Converts to this type from the input type.
sourceimpl Object for OrthographicCamera
impl Object for OrthographicCamera
fn translate(&self) -> &float3
fn scale(&self) -> &float3
fn rotation(&self) -> &float3
fn transform(&self) -> &float4x4
fn transform_inverse(&self) -> &float4x4
fn set_translate(&mut self, pos: float3)
fn set_scale(&mut self, sz: float3)
fn set_rotation(&mut self, rot: float3)
fn up(&self) -> float3
fn right(&self) -> float3
fn forward(&self) -> float3
fn set_up(&mut self, speed: float3)
fn set_right(&mut self, speed: float3)
fn set_forward(&mut self, speed: float3)
sourceimpl UpdateEvent for OrthographicCamera
impl UpdateEvent for OrthographicCamera
Auto Trait Implementations
impl RefUnwindSafe for OrthographicCamera
impl Send for OrthographicCamera
impl Sync for OrthographicCamera
impl Unpin for OrthographicCamera
impl UnwindSafe for OrthographicCamera
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.