#[repr(C)]pub struct SDL_Texture {
pub format: SDL_PixelFormat,
pub w: c_int,
pub h: c_int,
pub refcount: c_int,
}Expand description
An efficient driver-specific representation of pixel data
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_CreateTexture See Also: SDL_CreateTextureFromSurface See Also: SDL_CreateTextureWithProperties See Also: SDL_DestroyTexture
Fields§
§format: SDL_PixelFormat< The format of the texture, read-only
w: c_int< The width of the texture, read-only.
h: c_int< The height of the texture, read-only.
refcount: c_int< Application reference count, used when freeing texture
Trait Implementations§
Source§impl Clone for SDL_Texture
impl Clone for SDL_Texture
Source§fn clone(&self) -> SDL_Texture
fn clone(&self) -> SDL_Texture
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_Texture
impl Debug for SDL_Texture
Source§impl Default for SDL_Texture
impl Default for SDL_Texture
Source§impl Hash for SDL_Texture
impl Hash for SDL_Texture
impl Copy for SDL_Texture
Auto Trait Implementations§
impl Freeze for SDL_Texture
impl RefUnwindSafe for SDL_Texture
impl Send for SDL_Texture
impl Sync for SDL_Texture
impl Unpin for SDL_Texture
impl UnsafeUnpin for SDL_Texture
impl UnwindSafe for SDL_Texture
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