Struct gltf_json::camera::Camera [−][src]
pub struct Camera {
pub name: Option<String>,
pub orthographic: Option<Orthographic>,
pub perspective: Option<Perspective>,
pub type_: Checked<Type>,
pub extensions: Option<Camera>,
pub extras: Extras,
}
Expand description
A camera’s projection.
A node can reference a camera to apply a transform to place the camera in the scene.
Fields
name: Option<String>
Optional user-defined name for this object.
orthographic: Option<Orthographic>
An orthographic camera containing properties to create an orthographic projection matrix.
perspective: Option<Perspective>
A perspective camera containing properties to create a perspective projection matrix.
type_: Checked<Type>
Specifies if the camera uses a perspective or orthographic projection.
extensions: Option<Camera>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Camera
impl UnwindSafe for Camera
Blanket Implementations
Mutably borrows from an owned value. Read more