Enum amethyst_renderer::Projection
[−]
[src]
pub enum Projection { Orthographic(Ortho<f32>), Perspective(PerspectiveFov<f32>), }
The projection mode of a Camera
.
TODO: Remove and integrate with Camera
.
Variants
Orthographic(Ortho<f32>)
Perspective(PerspectiveFov<f32>)
A realistic perspective projection.
Methods
impl Projection
[src]
fn orthographic(l: f32, r: f32, t: f32, b: f32) -> Projection
[src]
Creates an orthographic projection with the given left, right, top, and bottom plane distances.
fn perspective<D: Into<Deg<f32>>>(aspect: f32, fov: D) -> Projection
[src]
Creates a perspective projection with the given aspect ratio and field-of-view.
Trait Implementations
impl Clone for Projection
[src]
fn clone(&self) -> Projection
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Projection
[src]
impl PartialEq for Projection
[src]
fn eq(&self, __arg_0: &Projection) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Projection) -> bool
[src]
This method tests for !=
.