Struct rin_graphics::camera::arcball_camera::Builder[][src]

pub struct Builder { /* fields omitted */ }

Implementations

impl Builder[src]

pub fn new<S: StreamExt<'static, Event>>(
    events_stream: S,
    window_size: Vec2<i32>
) -> Builder
[src]

Create an ArcballCameraBuilder from a window event stream and a window size

pub fn from_window<W: WindowExt>(window: &mut W) -> Builder[src]

Creates an arcball camera Builder using a window to extract the needed info

Takes event_stream and viewport from the window passed as parameter

pub fn from_camera_view_events<S, C, V>(
    camera: C,
    event_stream: S,
    view_events: V,
    window_size: Vec2<i32>
) -> ArcballCamera<C> where
    S: StreamExt<'static, Event>,
    V: StreamExt<'static, ViewsEvent>,
    C: CameraExt
[src]

pub fn from_camera<S, C>(
    camera: C,
    event_stream: S,
    window_size: Vec2<i32>
) -> ArcballCamera<C> where
    S: StreamExt<'static, Event>,
    C: CameraExt
[src]

Create an ArcballCameraBuilder from an already existing camera

pub fn clip_planes(self, znear: f32, zfar: f32) -> Builder[src]

Near and far clip planes

pub fn up_axis(self, up: Unit<Vec3>) -> Builder[src]

Up vector (defaults to Vec3::y_axis())

pub fn position(self, pos: Pnt3) -> Builder[src]

Position of the camera (defaults to origin)

pub fn look_at(self, target: Pnt3) -> Builder[src]

Position the camera will look at (defaults to pnt3(0., 0., -1))

pub fn fov(self, fov: Deg<f32>) -> Builder[src]

pub fn aspect_ratio(self, aspect_ratio: f32) -> Builder[src]

Aspect ratio of the viewport

pub fn do_roll(self, do_roll: bool) -> Builder[src]

If the resulting camera will roll around the relative z axis when left mouse dragging outside a circle with a radius of the height of the screen (defaults to false)

pub fn view_events<S: StreamExt<'static, ViewsEvent>>(
    self,
    view_events: S
) -> Builder
[src]

Custom view events to change the default keyboard mappings or use something enterely different from key presses

pub fn build(self) -> Result<ArcballCamera>[src]

Create the arcball camera

Auto Trait Implementations

impl !RefUnwindSafe for Builder

impl !Send for Builder

impl !Sync for Builder

impl Unpin for Builder

impl !UnwindSafe for Builder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]