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

Methods

impl Projection
[src]

Creates an orthographic projection with the given left, right, top, and bottom plane distances.

Creates a perspective projection with the given aspect ratio and field-of-view.

Trait Implementations

impl Clone for Projection
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Projection
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Projection
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<Projection> for Matrix4<f32>
[src]

Performs the conversion.

impl From<Projection> for Camera
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Projection

impl Sync for Projection