Struct gltf::buffer::Buffer
[−]
[src]
pub struct Buffer<'a> { /* fields omitted */ }
A buffer points to binary data representing geometry, animations, or skins.
Methods
impl<'a> Buffer<'a>
[src]
fn index(&self) -> usize
[src]
Returns the internal JSON index.
fn uri(&self) -> &str
[src]
Returns the uniform resource identifier for the buffer data.
Notes
When the buffer is sourced from the BIN
section of binary glTF, the
fragment "#bin"
is returned. This is non-standard according to the
glTF specification.
fn length(&self) -> usize
[src]
The length of the buffer in bytes.
fn extras(&self) -> &Extras
[src]
Optional application specific data.
Trait Implementations
impl<'a> Clone for Buffer<'a>
[src]
fn clone(&self) -> Buffer<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more