Struct glin::buffer_object::Builder[][src]

pub struct Builder<'a>(_);

Methods

impl<'a> Builder<'a>
[src]

[]

Creates a new buffer and allocates it with enough capacity to hold len elements of type T

equivalent to glGenBuffers/glCreateBuffers + gl(Named)BufferData

[]

Creates a new buffer and allocates it with enough capacity to hold len elements of type T

equivalent to glGenBuffers/glCreateBuffers + gl(Named)BufferData. target specifies the target to which to bind the buffer before creation. This is only useful with no DSA where in certain platforms you can't change the target initially bound

[]

Creates an empty buffer

Call load after empty to actually allocate the buffer with enough capacity

equivalent to glGenBuffers/glCreateBuffers

[]

Creates an empty buffer

Call load after empty to actually allocate the buffer with enough capacity

equivalent to glGenBuffers/glCreateBuffers

[]

Creates a buffer, allocates it and loads the data passed as parameter in it

equivalent to glGenBuffers/glCreateBuffers + gl(Named)BufferData

[]

Creates a buffer, allocates it and loads the data passed as parameter in it

equivalent to glGenBuffers/glCreateBuffers + gl(Named)BufferData

[]

Allocates a buffer with enough capacity to hold len elemnts of type T

see gl(Named)BufferStorage

[]

Allocates a buffer with enough capacity to hold len elemnts of type T

see gl(Named)BufferStorage

[]

Allocates a buffer and loads the passed data in it

see gl(Named)BufferStorage

Auto Trait Implementations

impl<'a> !Send for Builder<'a>

impl<'a> !Sync for Builder<'a>