module SDL

Defined in:

color.cr
events.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

Macro Summary

Class Method Detail

def self.init(flags : Init) #

[View source]
def self.init?(flag : Init) #

[View source]
def self.load_bmp(path) #

[View source]
def self.quit(flags : Init | Nil = nil) #

[View source]
def self.set_hint(name, value) #

[View source]

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:


[View source]