Module sdl2::sdl [] [src]

Structs

InitFlag
Sdl

The SDL context type. Initialize with sdl2::init().

Subsystem

A RAII value representing initalized SDL subsystems. See sdl2::Sdl::init_subsystem().

Enums

Error

Constants

INIT_AUDIO
INIT_EVENTS
INIT_EVERYTHING
INIT_GAME_CONTROLLER
INIT_HAPTIC
INIT_JOYSTICK
INIT_NOPARACHUTE
INIT_TIMER
INIT_VIDEO

Functions

clear_error
get_error
get_ticks
init

Initializes the SDL library. This must be called before using any other SDL function.

set_error
set_error_from_code

Type Definitions

SdlResult