Struct gltf::Camera [−][src]
pub struct Camera<'a> { /* fields omitted */ }
A camera's projection. A node can reference a camera to apply a transform to place the camera in the scene.
Methods
impl<'a> Camera<'a>
[src]
impl<'a> Camera<'a>
pub fn index(&self) -> usize
[src]
pub fn index(&self) -> usize
Returns the internal JSON index.
pub fn name(&self) -> Option<&str>
[src]
pub fn name(&self) -> Option<&str>
Optional user-defined name for this object.
pub fn projection(&self) -> Projection
[src]
pub fn projection(&self) -> Projection
Returns the camera's projection.
pub fn extras(&self) -> &Extras
[src]
pub fn extras(&self) -> &Extras
Optional application specific data.
Trait Implementations
impl<'a> Clone for Camera<'a>
[src]
impl<'a> Clone for Camera<'a>
fn clone(&self) -> Camera<'a>
[src]
fn clone(&self) -> Camera<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for Camera<'a>
[src]
impl<'a> Debug for Camera<'a>