pub enum ColorFormat {
R,
RG,
RGB,
RGBA,
}Expand description
Kinds of ColorFormats.
Variants§
R
Red only ColorFormat.
RG
Red and green ColorFormat.
RGB
Red, green and blue ColorFormat.
RGBA
Red, green, blue and alpha ColorFormat.
Implementations§
Source§impl ColorFormat
impl ColorFormat
Sourcepub fn components(n_components: usize) -> ColorFormat
pub fn components(n_components: usize) -> ColorFormat
Creates a ColorFormat with n_components, where n_components can be anything from 0 to
3. Any value above it will be clipped to 3.
Sourcepub fn get_format(&self) -> u32
pub fn get_format(&self) -> u32
Gets OpenGL internal enumeration.
Trait Implementations§
Source§impl Clone for ColorFormat
impl Clone for ColorFormat
Source§fn clone(&self) -> ColorFormat
fn clone(&self) -> ColorFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ColorFormat
impl RefUnwindSafe for ColorFormat
impl Send for ColorFormat
impl Sync for ColorFormat
impl Unpin for ColorFormat
impl UnwindSafe for ColorFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more