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]

[src]

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

[src]

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

Trait Implementations

impl Clone for Projection
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Projection
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Projection
[src]

[src]

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

[src]

This method tests for !=.