[−][src]Struct azul_core::gl::VertexBuffer
Fields
vertex_buffer_id: GLuint
vertex_buffer_len: usize
gl_context: Rc<dyn Gl>
vao: VertexArrayObject
vertex_buffer_type: PhantomData<T>
index_buffer_id: GLuint
index_buffer_len: usize
index_buffer_format: IndexBufferFormat
Implementations
impl<T: VertexLayoutDescription> VertexBuffer<T>
[src]
pub fn new(
shader: &GlShader,
vertices: &[T],
indices: &[u32],
index_buffer_format: IndexBufferFormat
) -> Self
[src]
shader: &GlShader,
vertices: &[T],
indices: &[u32],
index_buffer_format: IndexBufferFormat
) -> Self
Trait Implementations
impl<T: VertexLayoutDescription> Debug for VertexBuffer<T>
[src]
impl<T: VertexLayoutDescription> Display for VertexBuffer<T>
[src]
impl<T: VertexLayoutDescription> Drop for VertexBuffer<T>
[src]
impl<T: VertexLayoutDescription> Eq for VertexBuffer<T>
[src]
impl<T: VertexLayoutDescription> Hash for VertexBuffer<T>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: VertexLayoutDescription> Ord for VertexBuffer<T>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: VertexLayoutDescription> PartialEq<VertexBuffer<T>> for VertexBuffer<T>
[src]
fn eq(&self, other: &VertexBuffer<T>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: VertexLayoutDescription> PartialOrd<VertexBuffer<T>> for VertexBuffer<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for VertexBuffer<T>
impl<T> !Send for VertexBuffer<T>
impl<T> !Sync for VertexBuffer<T>
impl<T> Unpin for VertexBuffer<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for VertexBuffer<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,