Trait glin::buffer::Backend[][src]

pub trait Backend: Debug {
    fn id(&self) -> GLuint;
fn bind(&self, target: GLenum);
fn unbind(&self, target: GLenum);
unsafe fn load(&mut self, data: *const c_void, len: usize, usage: GLenum);
unsafe fn load_target(
        &mut self,
        data: *const c_void,
        len: usize,
        usage: GLenum,
        target: GLenum
    );
unsafe fn update(&mut self, data: *const c_void, len: usize, offset: usize);
unsafe fn unmap(&self);
unsafe fn map_range(
        &self,
        offset: GLintptr,
        length: GLsizeiptr,
        flags: GLenum
    ) -> *const c_void;
fn copy_to(
        &self,
        dst: &mut dyn Backend,
        read_offset: usize,
        write_offset: usize,
        size: usize
    );
unsafe fn get_parameter_iv(
        &self,
        parameter: GLenum,
        len: usize
    ) -> Vec<GLint>; }

Required methods

fn id(&self) -> GLuint[src]

fn bind(&self, target: GLenum)[src]

fn unbind(&self, target: GLenum)[src]

unsafe fn load(&mut self, data: *const c_void, len: usize, usage: GLenum)[src]

unsafe fn load_target(
    &mut self,
    data: *const c_void,
    len: usize,
    usage: GLenum,
    target: GLenum
)
[src]

unsafe fn update(&mut self, data: *const c_void, len: usize, offset: usize)[src]

unsafe fn unmap(&self)[src]

unsafe fn map_range(
    &self,
    offset: GLintptr,
    length: GLsizeiptr,
    flags: GLenum
) -> *const c_void
[src]

fn copy_to(
    &self,
    dst: &mut dyn Backend,
    read_offset: usize,
    write_offset: usize,
    size: usize
)
[src]

unsafe fn get_parameter_iv(&self, parameter: GLenum, len: usize) -> Vec<GLint>[src]

Loading content...

Implementors

Loading content...