Struct amethyst_renderer::Camera [] [src]

pub struct Camera {
    pub proj: Matrix4<f32>,
}

Camera struct.

Fields

Graphical projection of the camera.

Methods

impl Camera
[src]

[src]

Create a normalized camera for 2D.

Will use an orthographic projection with lower left corner being (-1., -1.) and upper right (1., 1.). View transformation will be multiplicative identity.

[src]

Create a standard camera for 3D.

Will use a perspective projection with aspect from the given screen dimensions and a field of view of 60 degrees. View transformation will be multiplicative identity.

Trait Implementations

impl From<Projection> for Camera
[src]

[src]

Performs the conversion.

impl Clone for Camera
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Camera
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Camera
[src]

[src]

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

[src]

This method tests for !=.

impl Component for Camera
[src]

Associated storage type for this component.