#[repr(C)]pub struct VertexBuffer {
pub vertex_buffer_id: GLuint,
pub vertex_buffer_len: usize,
pub vao: VertexArrayObject,
pub index_buffer_id: GLuint,
pub index_buffer_len: usize,
pub index_buffer_format: IndexBufferFormat,
pub refcount: *const AtomicUsize,
pub run_destructor: bool,
}Fields§
§vertex_buffer_id: GLuint§vertex_buffer_len: usize§vao: VertexArrayObject§index_buffer_id: GLuint§index_buffer_len: usize§index_buffer_format: IndexBufferFormat§refcount: *const AtomicUsize§run_destructor: boolImplementations§
Source§impl VertexBuffer
impl VertexBuffer
pub fn new<T: VertexLayoutDescription>( gl_context: GlContextPtr, shader_program_id: GLuint, vertices: &[T], indices: &[u32], index_buffer_format: IndexBufferFormat, ) -> Self
pub fn new_raw( vertex_buffer_id: GLuint, vertex_buffer_len: usize, vao: VertexArrayObject, index_buffer_id: GLuint, index_buffer_len: usize, index_buffer_format: IndexBufferFormat, ) -> Self
Trait Implementations§
Source§impl Clone for VertexBuffer
impl Clone for VertexBuffer
Source§impl Debug for VertexBuffer
impl Debug for VertexBuffer
Source§impl Display for VertexBuffer
impl Display for VertexBuffer
Source§impl Drop for VertexBuffer
impl Drop for VertexBuffer
Source§impl Hash for VertexBuffer
impl Hash for VertexBuffer
Source§impl Ord for VertexBuffer
impl Ord for VertexBuffer
Source§impl PartialEq for VertexBuffer
impl PartialEq for VertexBuffer
Source§impl PartialOrd for VertexBuffer
impl PartialOrd for VertexBuffer
impl Eq for VertexBuffer
Auto Trait Implementations§
impl Freeze for VertexBuffer
impl RefUnwindSafe for VertexBuffer
impl !Send for VertexBuffer
impl !Sync for VertexBuffer
impl Unpin for VertexBuffer
impl UnwindSafe for VertexBuffer
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