Enum glitter::image_data::TexelFormat
[−]
[src]
pub enum TexelFormat { Alpha, RGB, RGBA, }
The different texel formats.
Variants
Alpha
A texel contains only an alpha component.
RGB
A texel contains red, green, and blue components.
RGBA
A texel contains red, green, blue, and alpha components.
Methods
impl TexelFormat
[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 TexelFormat
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for TexelFormat
[src]
fn clone(&self) -> TexelFormat
[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 TexelFormat
[src]
impl PartialEq for TexelFormat
[src]
fn eq(&self, __arg_0: &TexelFormat) -> 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 !=
.