Enum glitter::buffer::BufferDataUsage
[−]
[src]
pub enum BufferDataUsage { StreamDraw, StaticDraw, DynamicDraw, }
Provides a hint to the OpenGL driver for how a buffer will be used.
Variants
StreamDraw
Indicates that a buffer will be set once and drawn only a few times.
StaticDraw
Indicates that a buffer will be set once and drawn many times
DynamicDraw
Indicates that a buffer will be set and modified repeatedly and drawn many times.
Methods
impl BufferDataUsage
[src]
pub fn from_gl(gl_enum: GLenum) -> Result<Self, ()>
[src]
Convert from a raw OpenGL integer value to an enum variant. Returns an error if the value is not a valid enum variant.
pub fn gl_enum(&self) -> GLenum
[src]
Return the OpenGL integer value for a given enum variant.
Trait Implementations
impl Debug for BufferDataUsage
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for BufferDataUsage
[src]
fn clone(&self) -> BufferDataUsage
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for BufferDataUsage
[src]
impl PartialEq for BufferDataUsage
[src]
fn eq(&self, __arg_0: &BufferDataUsage) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.