pub struct Layer<'l, V, T> { /* private fields */ }
Expand description
The frame layer. Can be created from a Frame
instance.
Implementations§
source§impl<'l, V, T> Layer<'l, V, T>
impl<'l, V, T> Layer<'l, V, T>
sourcepub fn bind_instance(&mut self, handle: InstanceHandle) -> Result<(), Error>
pub fn bind_instance(&mut self, handle: InstanceHandle) -> Result<(), Error>
sourcepub fn draw(&mut self, handle: MeshHandle<V, T>) -> Result<(), Error>
pub fn draw(&mut self, handle: MeshHandle<V, T>) -> Result<(), Error>
Draws a mesh.
Errors
Returns Error::ResourceNotFound
if given mesh handler was deleted.
Returns Error::InstanceNotSet
if no any instance is set.
Call bind_instance
to set an instance.