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
\brief 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 Debug for SDL_TextureModulate
impl Debug for SDL_TextureModulate
source§impl Hash for SDL_TextureModulate
impl Hash for SDL_TextureModulate
source§impl PartialEq for SDL_TextureModulate
impl PartialEq for SDL_TextureModulate
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)