Crate sdl2 [] [src]

Modules

audio

Audio Functions

clipboard
controller
cpuinfo
event

Event Handling

filesystem
gesture
haptic

Haptic Functions

joystick
keyboard
keycode
messagebox
mouse
pixels
rect
render

2D accelerated rendering

rwops
scancode
surface
timer
touch
version

Querying SDL Version

video

Structs

InitBuilder

The type that allows you to build the SDL2 context.

Sdl

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

Subsystem

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

Enums

Error

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