Struct kiss3d::planar_camera::Sidescroll[][src]

pub struct Sidescroll { /* fields omitted */ }

A 2D camera that can be zoomed and panned.

Methods

impl Sidescroll
[src]

Create a new arc-ball camera.

The point the arc-ball is looking at.

Get a mutable reference to the point the camera is looking at.

Gets the zoom of the camera.

Sets the zoom of the camera.

Move the camera such that it is centered on a specific point.

The button used to drag the Sidescroll camera.

Set the button used to drag the Sidescroll camera. Use None to disable dragging.

Trait Implementations

impl Clone for Sidescroll
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Sidescroll
[src]

Formats the value using the given formatter. Read more

impl PlanarCamera for Sidescroll
[src]

Handle a mouse event.

Upload the camera view and projection to the gpu. This can be called multiple times on the render loop. Read more

Update the camera. This is called once at the beginning of the render loop.

Computes the 2D world-space coordiates corresponding to the given screen-space coordiates.

Auto Trait Implementations

impl Send for Sidescroll

impl Sync for Sidescroll