#[repr(C)]pub struct VertexLayout {
pub fields: VertexAttributeVec,
}Expand description
Describes the vertex layout and offsets
Fields§
§fields: VertexAttributeVecImplementations§
Source§impl VertexLayout
impl VertexLayout
Sourcepub fn bind(&self, gl_context: &Rc<GenericGlContext>, program_id: GLuint)
pub fn bind(&self, gl_context: &Rc<GenericGlContext>, program_id: GLuint)
Submits the vertex buffer description to OpenGL
Sourcepub fn unbind(&self, gl_context: &Rc<GenericGlContext>, program_id: GLuint)
pub fn unbind(&self, gl_context: &Rc<GenericGlContext>, program_id: GLuint)
Unsets the vertex buffer description
Trait Implementations§
Source§impl Clone for VertexLayout
impl Clone for VertexLayout
Source§fn clone(&self) -> VertexLayout
fn clone(&self) -> VertexLayout
Returns a duplicate 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 moreSource§impl Debug for VertexLayout
impl Debug for VertexLayout
Source§impl Hash for VertexLayout
impl Hash for VertexLayout
Source§impl Ord for VertexLayout
impl Ord for VertexLayout
Source§fn cmp(&self, other: &VertexLayout) -> Ordering
fn cmp(&self, other: &VertexLayout) -> 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 VertexLayout
impl PartialEq for VertexLayout
Source§impl PartialOrd for VertexLayout
impl PartialOrd for VertexLayout
impl Eq for VertexLayout
impl StructuralPartialEq for VertexLayout
Auto Trait Implementations§
impl Freeze for VertexLayout
impl RefUnwindSafe for VertexLayout
impl Send for VertexLayout
impl Sync for VertexLayout
impl Unpin for VertexLayout
impl UnwindSafe for VertexLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more