Struct gltf::v1::camera::Camera [] [src]

pub struct Camera {
    pub orthographic: Option<Orthographic>,
    pub perspective: Option<Perspective>,
    pub kind: CameraType,
    pub name: Option<String>,
}

Fields

An orthographic camera containing properties to create an orthographic projection matrix.

A perspective camera containing properties to create a perspective projection matrix.

Specifies if the camera uses a perspective or orthographic projection.

Based on this, either the camera's perspective or orthographic property will be defined.

The user-defined name of this object.

This is not necessarily unique, e.g., a camera and a buffer could have the same name, or two cameras could even have the same name.

Trait Implementations

impl Debug for Camera
[src]

Formats the value using the given formatter.

impl Default for Camera
[src]

Returns the "default value" for a type. Read more