class

GSDL::Texture

Inherits Reference < Object

Constructors

from_surface(surface : Surface) : Texture
Source
new(width : Num, height : Num, format : PixelFormat = PixelFormat::RGBA8888, access : TextureAccess = TextureAccess::Static)
Source
new(texture : SDL3::Texture)
Source

Instance methods

alpha_mod=(alpha : UInt8)
Source
atlas_handle
Source
atlas_handle=(atlas_handle : SDL3::Texture | Nil)
Source
atlas_rect
Source
atlas_rect=(atlas_rect : FRect | Nil)
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
scale_mode
Source
scale_mode=(scale_mode : LibSDL3::ScaleMode) : Bool
Source
size
Source
tint
Source
tint=(color : Color)
Source
to_sdl
Source
unlock
Source
update(rect : LibSDL3::Rect | Nil, pixels : Pointer(Void), pitch : Int32) : Bool
Source
width
Source