pub struct VertexArray(/* private fields */);Implementations§
Source§impl VertexArray
impl VertexArray
pub fn new() -> Result<VertexArray, String>
pub fn check_bind(&self)
pub fn setup_for<T: VertexData>(&self)
pub fn enable_attrib(&self, index: u32)
pub fn attrib_pointer<T: GlAttrib>(&self, index: u32, stride: i32, start: i32)
Trait Implementations§
Source§impl Debug for VertexArray
impl Debug for VertexArray
Source§impl Default for VertexArray
impl Default for VertexArray
Source§fn default() -> VertexArray
fn default() -> VertexArray
Returns the “default value” for a type. Read more
Source§impl Drop for VertexArray
impl Drop for VertexArray
Source§impl GlTarget for VertexArray
impl GlTarget for VertexArray
Source§impl Ord for VertexArray
impl Ord for VertexArray
Source§fn cmp(&self, other: &VertexArray) -> Ordering
fn cmp(&self, other: &VertexArray) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VertexArray
impl PartialEq for VertexArray
Source§impl PartialOrd for VertexArray
impl PartialOrd for VertexArray
impl Eq for VertexArray
impl StructuralPartialEq for VertexArray
Auto Trait Implementations§
impl Freeze for VertexArray
impl RefUnwindSafe for VertexArray
impl Send for VertexArray
impl Sync for VertexArray
impl Unpin for VertexArray
impl UnwindSafe for VertexArray
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