[][src]Struct ruckus::buffers::VertexBuffer

pub struct VertexBuffer {
    pub draw_prim: DrawPrimitive,
    pub layout: Vec<VertexAttribute>,
    // some fields omitted
}

Fields

draw_prim: DrawPrimitivelayout: Vec<VertexAttribute>

Implementations

impl VertexBuffer[src]

pub fn new_as_quad(useage: DrawUsage) -> Self[src]

Returns VertexBuffer with default quad verts put into an OpenGL VBO instead of a runtime array

pub fn zeroed<T>(count: u32, usage: DrawUsage, draw_prim: DrawPrimitive) -> Self[src]

pub fn vertex2d_attributes() -> Vec<VertexAttribute>[src]

pub fn new<T>(verts: &[T], usage: DrawUsage) -> Self[src]

Uses default Float Datatype

pub fn new_with_prim<T>(
    verts: &[T],
    usage: DrawUsage,
    draw_prim: DrawPrimitive
) -> Self
[src]

pub fn alloc<T>(&mut self, verts: &[T], usage: DrawUsage)[src]

Uses default Float Datatype

pub fn write<T>(&self, verts: &[T], offset: isize)[src]

pub fn copy_data(
    &self,
    other: &VertexBuffer,
    read_offset: isize,
    write_offset: isize,
    size: isize
)
[src]

pub fn vert_count(&self) -> u32[src]

pub unsafe fn map_buffer(&self, access: BufferAccess) -> *mut c_void[src]

pub unsafe fn unmap(&self)[src]

pub fn apply(&self)[src]

pub fn unbind(&self)[src]

Trait Implementations

impl Drop for VertexBuffer[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.