class

SDL3::Surface

Inherits Reference < Object

Constructors

new(width : Int32 = 0, height : Int32 = 0, format : LibSDL3::PixelFormat = LibSDL3::PixelFormat::RGBA8888)
Source
new(ptr : Pointer(LibSDL3::Surface))
Source

Class methods

create_text_engine
Source
load_bmp(file : String)
Source
load_bmp_io(io_stream : IOStream, close_io : Bool = false)
Source
load_io(io_stream : IOStream, close_io : Bool = false)
Source
load_png(file : String)
Source
load_png_io(io_stream : IOStream, close_io : Bool = false)
Source

Instance methods

blit(source_rect : LibSDL3::Rect | Nil, dest_rect : LibSDL3::Rect | Nil, dest_surface : Surface) : Bool
Source
destroy
Source
draw_text(text : TTF::Text, x : Float32, y : Float32) : Bool
Source
fill(color : Color)
Source
fill_rect(rect : LibSDL3::Rect, color : Color)
Source
find_property(name : String) : Bool
Source
format
Source
height
Source
properties
Source
to_unsafe
Source
width
Source