#[repr(transparent)]pub struct SDL_BlendOperation(pub c_uint);Expand description
The blend operation used when combining source and destination pixel components.
Available Since: This enum is available since SDL 3.2.0.
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_BlendOperation
impl SDL_BlendOperation
Sourcepub const SDL_BLENDOPERATION_ADD: SDL_BlendOperation
pub const SDL_BLENDOPERATION_ADD: SDL_BlendOperation
< dst + src: supported by all renderers
Sourcepub const SDL_BLENDOPERATION_SUBTRACT: SDL_BlendOperation
pub const SDL_BLENDOPERATION_SUBTRACT: SDL_BlendOperation
< src - dst : supported by D3D, OpenGL, OpenGLES, and Vulkan
Sourcepub const SDL_BLENDOPERATION_REV_SUBTRACT: SDL_BlendOperation
pub const SDL_BLENDOPERATION_REV_SUBTRACT: SDL_BlendOperation
< dst - src : supported by D3D, OpenGL, OpenGLES, and Vulkan
Sourcepub const SDL_BLENDOPERATION_MINIMUM: SDL_BlendOperation
pub const SDL_BLENDOPERATION_MINIMUM: SDL_BlendOperation
< min(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan
Sourcepub const SDL_BLENDOPERATION_MAXIMUM: SDL_BlendOperation
pub const SDL_BLENDOPERATION_MAXIMUM: SDL_BlendOperation
< max(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan
Trait Implementations§
Source§impl Clone for SDL_BlendOperation
impl Clone for SDL_BlendOperation
Source§fn clone(&self) -> SDL_BlendOperation
fn clone(&self) -> SDL_BlendOperation
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 moreSource§impl Debug for SDL_BlendOperation
impl Debug for SDL_BlendOperation
Source§impl Hash for SDL_BlendOperation
impl Hash for SDL_BlendOperation
Source§impl PartialEq for SDL_BlendOperation
impl PartialEq for SDL_BlendOperation
impl Copy for SDL_BlendOperation
impl Eq for SDL_BlendOperation
impl StructuralPartialEq for SDL_BlendOperation
Auto Trait Implementations§
impl Freeze for SDL_BlendOperation
impl RefUnwindSafe for SDL_BlendOperation
impl Send for SDL_BlendOperation
impl Sync for SDL_BlendOperation
impl Unpin for SDL_BlendOperation
impl UnsafeUnpin for SDL_BlendOperation
impl UnwindSafe for SDL_BlendOperation
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