[][src]Struct azul_core::gl::VertexBuffer

pub struct VertexBuffer<T: VertexLayoutDescription> {
    pub vertex_buffer_id: GLuint,
    pub vertex_buffer_len: usize,
    pub gl_context: Rc<dyn Gl>,
    pub vao: VertexArrayObject,
    pub vertex_buffer_type: PhantomData<T>,
    pub index_buffer_id: GLuint,
    pub index_buffer_len: usize,
    pub index_buffer_format: IndexBufferFormat,
}

Fields

vertex_buffer_id: GLuintvertex_buffer_len: usizegl_context: Rc<dyn Gl>vao: VertexArrayObjectvertex_buffer_type: PhantomData<T>index_buffer_id: GLuintindex_buffer_len: usizeindex_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]

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]

impl<T: VertexLayoutDescription> Ord for VertexBuffer<T>[src]

impl<T: VertexLayoutDescription> PartialEq<VertexBuffer<T>> for VertexBuffer<T>[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

impl<T> !UnwindSafe for VertexBuffer<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.