Struct ren::prelude::VertexArrayDesc
source · pub struct VertexArrayDesc<'gl, 'a> { /* private fields */ }
Implementations§
source§impl<'gl, 'a> VertexArrayDesc<'gl, 'a>
impl<'gl, 'a> VertexArrayDesc<'gl, 'a>
pub fn new() -> Self
pub fn with_buffer(self, buffer: &'a Buffer<'gl>) -> Self
pub fn with_bind_point(self, bind_point: AttribBindPoint) -> Self
pub fn with_binding(self, binding: AttribBinding) -> Self
pub fn with_attrib(self, attrib: Attrib) -> Self
pub unsafe fn apply(&self, vao: u32)
Trait Implementations§
source§impl<'gl, 'a> AsRef<VertexArrayDesc<'gl, 'a>> for VertexArrayDesc<'gl, 'a>
impl<'gl, 'a> AsRef<VertexArrayDesc<'gl, 'a>> for VertexArrayDesc<'gl, 'a>
source§fn as_ref(&self) -> &VertexArrayDesc<'gl, 'a>
fn as_ref(&self) -> &VertexArrayDesc<'gl, 'a>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'gl, 'a> Clone for VertexArrayDesc<'gl, 'a>
impl<'gl, 'a> Clone for VertexArrayDesc<'gl, 'a>
source§fn clone(&self) -> VertexArrayDesc<'gl, 'a>
fn clone(&self) -> VertexArrayDesc<'gl, 'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'gl, 'a> RefUnwindSafe for VertexArrayDesc<'gl, 'a>
impl<'gl, 'a> Send for VertexArrayDesc<'gl, 'a>
impl<'gl, 'a> Sync for VertexArrayDesc<'gl, 'a>
impl<'gl, 'a> Unpin for VertexArrayDesc<'gl, 'a>
impl<'gl, 'a> UnwindSafe for VertexArrayDesc<'gl, 'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more