module SDL
Defined in:
color.crevents.cr
hint.cr
image.cr
mix.cr
mix/channel.cr
mix/music.cr
mix/sample.cr
pixels.cr
rect.cr
renderer.cr
rwops.cr
screensaver.cr
sdl.cr:1
sdl.cr:25
surface.cr
texture.cr
ttf.cr
window.cr
Constant Summary
-
DONTFREE =
LibSDL::DONTFREE
-
PREALLOC =
LibSDL::PREALLOC
-
RLEACCEL =
LibSDL::RLEACCEL
-
SWSURFACE =
LibSDL::SWSURFACE
Class Method Summary
- .displays : Array(Display)
- .get_current_display_mode(display_index : Int32) : LibSDL::DisplayMode
- .get_desktop_display_mode(display_index : Int32) : LibSDL::DisplayMode
- .init(flags : Init)
- .init?(flag : Init)
- .load_bmp(path)
- .quit(flags : Init | Nil = nil)
- .set_hint(name, value)
Macro Summary
-
pointer_or_null(variable, type)
Internal macro to return either a pointer to a struct or return or null pointer.
Class Method Detail
Macro Detail
macro pointer_or_null(variable, type)
#
Internal macro to return either a pointer to a struct or return or null pointer. This compiler gymnastic is mostly required to pass a reference to Rect which may be nil.
:nodoc: