Struct tea::vertex::VertexArray
source · pub struct VertexArray(_);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<VertexArray> for VertexArray
impl PartialEq<VertexArray> for VertexArray
source§fn eq(&self, other: &VertexArray) -> bool
fn eq(&self, other: &VertexArray) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<VertexArray> for VertexArray
impl PartialOrd<VertexArray> for VertexArray
source§fn partial_cmp(&self, other: &VertexArray) -> Option<Ordering>
fn partial_cmp(&self, other: &VertexArray) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for VertexArray
impl StructuralEq for VertexArray
impl StructuralPartialEq for VertexArray
Auto Trait Implementations§
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