#[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.
§Availability
This enum is available since SDL 3.4.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
INVALID | SDL_TEXTURE_ADDRESS_INVALID | |
AUTO | SDL_TEXTURE_ADDRESS_AUTO | Wrapping is enabled if texture coordinates are outside [0, 1], this is the default |
CLAMP | SDL_TEXTURE_ADDRESS_CLAMP | Texture coordinates are clamped to the [0, 1] range |
WRAP | SDL_TEXTURE_ADDRESS_WRAP | The texture is repeated (tiled) |
Tuple Fields§
§0: c_intImplementations§
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
Available on crate feature debug-impls only.
impl Debug for SDL_TextureAddressMode
Available on crate feature
debug-impls only.Source§impl Default for SDL_TextureAddressMode
impl Default for SDL_TextureAddressMode
Source§fn default() -> SDL_TextureAddressMode
fn default() -> SDL_TextureAddressMode
Returns the “default value” for a type. Read more
Source§impl From<SDL_TextureAddressMode> for c_int
impl From<SDL_TextureAddressMode> for c_int
Source§fn from(value: SDL_TextureAddressMode) -> Self
fn from(value: SDL_TextureAddressMode) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_TextureAddressMode
Available on crate feature metadata only.
impl GroupMetadata for SDL_TextureAddressMode
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_TextureAddressMode
impl Hash for SDL_TextureAddressMode
Source§impl Ord for SDL_TextureAddressMode
impl Ord for SDL_TextureAddressMode
Source§fn cmp(&self, other: &SDL_TextureAddressMode) -> Ordering
fn cmp(&self, other: &SDL_TextureAddressMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<SDL_TextureAddressMode> for c_int
impl PartialEq<SDL_TextureAddressMode> for c_int
Source§impl PartialEq<i32> for SDL_TextureAddressMode
impl PartialEq<i32> for SDL_TextureAddressMode
Source§impl PartialEq for SDL_TextureAddressMode
impl PartialEq for SDL_TextureAddressMode
Source§impl PartialOrd for SDL_TextureAddressMode
impl PartialOrd 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 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