#[repr(C)]pub struct VertexArrayObject {
pub vertex_layout: VertexLayout,
pub vao_id: GLuint,
pub gl_context: GlContextPtr,
pub refcount: *const AtomicUsize,
pub run_destructor: bool,
}Fields§
§vertex_layout: VertexLayout§vao_id: GLuint§gl_context: GlContextPtr§refcount: *const AtomicUsize§run_destructor: boolImplementations§
Source§impl VertexArrayObject
impl VertexArrayObject
pub fn new( vertex_layout: VertexLayout, vao_id: GLuint, gl_context: GlContextPtr, ) -> Self
Trait Implementations§
Source§impl Clone for VertexArrayObject
impl Clone for VertexArrayObject
Source§impl Debug for VertexArrayObject
impl Debug for VertexArrayObject
Source§impl Drop for VertexArrayObject
impl Drop for VertexArrayObject
Source§impl PartialEq for VertexArrayObject
impl PartialEq for VertexArrayObject
Source§impl PartialOrd for VertexArrayObject
impl PartialOrd for VertexArrayObject
impl StructuralPartialEq for VertexArrayObject
Auto Trait Implementations§
impl Freeze for VertexArrayObject
impl RefUnwindSafe for VertexArrayObject
impl !Send for VertexArrayObject
impl !Sync for VertexArrayObject
impl Unpin for VertexArrayObject
impl UnwindSafe for VertexArrayObject
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