Enum sdl2_sys::SDL_TextureModulate
source · #[repr(u32)]pub enum SDL_TextureModulate {
SDL_TEXTUREMODULATE_NONE = 0,
SDL_TEXTUREMODULATE_COLOR = 1,
SDL_TEXTUREMODULATE_ALPHA = 2,
}
Expand description
The texture channel modulation used in SDL_RenderCopy().
Variants§
SDL_TEXTUREMODULATE_NONE = 0
< No modulation
SDL_TEXTUREMODULATE_COLOR = 1
< srcC = srcC * color
SDL_TEXTUREMODULATE_ALPHA = 2
< srcA = srcA * alpha
Trait Implementations§
source§impl Clone for SDL_TextureModulate
impl Clone for SDL_TextureModulate
source§fn clone(&self) -> SDL_TextureModulate
fn clone(&self) -> SDL_TextureModulate
Returns a copy 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 moresource§impl Hash for SDL_TextureModulate
impl Hash for SDL_TextureModulate
source§impl PartialEq for SDL_TextureModulate
impl PartialEq for SDL_TextureModulate
source§fn eq(&self, other: &SDL_TextureModulate) -> bool
fn eq(&self, other: &SDL_TextureModulate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_TextureModulate
impl Eq for SDL_TextureModulate
impl StructuralPartialEq for SDL_TextureModulate
Auto Trait Implementations§
impl Freeze for SDL_TextureModulate
impl RefUnwindSafe for SDL_TextureModulate
impl Send for SDL_TextureModulate
impl Sync for SDL_TextureModulate
impl Unpin for SDL_TextureModulate
impl UnwindSafe for SDL_TextureModulate
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