#[repr(transparent)]pub struct SDL_TextureAddressMode(pub c_int);Expand description
The addressing mode for a texture when used in SDL_RenderGeometry().
This affects how texture coordinates are interpreted outside of [0, 1]
Texture wrapping is always supported for power of two texture sizes, and is supported for other texture sizes if SDL_PROP_RENDERER_TEXTURE_WRAPPING_BOOLEAN is set to true.
Available Since: This enum is available since SDL 3.4.0.
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_TextureAddressMode
impl SDL_TextureAddressMode
pub const SDL_TEXTURE_ADDRESS_INVALID: SDL_TextureAddressMode
Sourcepub const SDL_TEXTURE_ADDRESS_AUTO: SDL_TextureAddressMode
pub const SDL_TEXTURE_ADDRESS_AUTO: SDL_TextureAddressMode
< Wrapping is enabled if texture coordinates are outside [0, 1], this is the default
Sourcepub const SDL_TEXTURE_ADDRESS_CLAMP: SDL_TextureAddressMode
pub const SDL_TEXTURE_ADDRESS_CLAMP: SDL_TextureAddressMode
< Texture coordinates are clamped to the [0, 1] range
Sourcepub const SDL_TEXTURE_ADDRESS_WRAP: SDL_TextureAddressMode
pub const SDL_TEXTURE_ADDRESS_WRAP: SDL_TextureAddressMode
< The texture is repeated (tiled)
Trait Implementations§
Source§impl Clone for SDL_TextureAddressMode
impl Clone for SDL_TextureAddressMode
Source§fn clone(&self) -> SDL_TextureAddressMode
fn clone(&self) -> SDL_TextureAddressMode
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_TextureAddressMode
impl Debug for SDL_TextureAddressMode
Source§impl Hash for SDL_TextureAddressMode
impl Hash for SDL_TextureAddressMode
Source§impl PartialEq for SDL_TextureAddressMode
impl PartialEq for SDL_TextureAddressMode
impl Copy for SDL_TextureAddressMode
impl Eq for SDL_TextureAddressMode
impl StructuralPartialEq for SDL_TextureAddressMode
Auto Trait Implementations§
impl Freeze for SDL_TextureAddressMode
impl RefUnwindSafe for SDL_TextureAddressMode
impl Send for SDL_TextureAddressMode
impl Sync for SDL_TextureAddressMode
impl Unpin for SDL_TextureAddressMode
impl UnsafeUnpin for SDL_TextureAddressMode
impl UnwindSafe for SDL_TextureAddressMode
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