module

SDL3

Constants

ShardFile = "shard.yml"

Class methods

add_event_watch(filter : LibSDL3::SDL_EventFilter, userdata : Pointer(Void) | Nil) : Bool
Source
clear_error
Source
color(r : UInt8 = 0, g : UInt8 = 0, b : UInt8 = 0, a : UInt8 = 255) : Color
Source
color_all(value : UInt8, a : UInt8 = 255) : Color
Source
delay(ms : UInt32)
Source
fcolor(r : Float32 = 0_f32, g : Float32 = 0_f32, b : Float32 = 0_f32, a : Float32 = 1_f32) : Color
Source
fcolor_all(value : Float32, a : Float32 = 1_f32) : Color
Source
get_error
Source
get_key_from_scancode(scancode : LibSDL3::Scancode, modstate : LibSDL3::Keymod, key_event : Bool)
Source
get_key_name(key : LibSDL3::Keycode)
Source
get_keyboard_state
Source
get_mod_state
Source
get_renderer_info
Source
get_scancode_from_key(key : LibSDL3::Keycode)
Source
get_scancode_name(scancode : LibSDL3::Scancode)
Source
get_ticks
Source
log(message : String)
Source
map_rgb(format : Pointer(LibSDL3::PixelFormatDetails), r : UInt8, g : UInt8, b : UInt8)
Source
poll_event(event : Pointer(LibSDL3::Event))
Source
pump_events
Source
push_event(event : Pointer(LibSDL3::Event))
Source
remove_event_watch(filter : LibSDL3::SDL_EventFilter, userdata : Pointer(Void) | Nil)
Source
render_drivers
Source
render_text(renderer : Renderer, font : TTF::Font, text : String, x : Int32, y : Int32)
Source
revision
Source
revision_number
Source
set_log_priority(category : LibSDL3::LogCategory, priority : LibSDL3::LogPriority)
Source
start_text_input(window : Window)
Source
stop_text_input(window : Window)
Source
text_input_active(window : Window)
Source
version
Source

Instance methods

init(flags : LibSDL3::InitFlags)
Source
init
Source
init?(flags : LibSDL3::InitFlags)
Source
init?
Source
quit
Source
set_hint(name : String, value : String)
Source

Nested types