class

SDL3::Texture

Inherits Reference < Object

Constructors

new(ptr : Pointer(LibSDL3::Texture))
Source

Class methods

create(renderer : Renderer, format : PixelFormat = PixelFormat::RGBA8888, access : TextureAccess = TextureAccess::Static, w : Int32 = 1, h : Int32 = 1)
Source
from_surface(renderer : Renderer, surface : Surface)
Source

Instance methods

alpha_mod=(alpha : UInt8)
Source
blend_mode
Source
blend_mode=(blend_mode : LibSDL3::BlendMode)
Source
color_mod=(color : Color)
Source
destroy
Source
height
Source
lock(rect : LibSDL3::Rect | Nil) : Tuple(Pointer(Void), Int32)
Source
properties
Source
scale_mode
Source
scale_mode=(scale_mode : LibSDL3::ScaleMode) : Bool
Source
size
Source
tint
Source
tint=(color : Color)
Source
to_unsafe
Source
unlock
Source
update(rect : LibSDL3::Rect | Nil, pixels : Pointer(Void), pitch : Int32) : Bool
Source
width
Source