Crate sdl2 [] [src]

Modules

audio

Audio Functions

clipboard
controller
cpuinfo
event

Event Handling

filesystem
gesture
haptic

Haptic Functions

hint
joystick
keyboard
messagebox
mouse
pixels
rect
render

2D accelerated rendering

rwops
surface
timer
touch
version

Querying SDL Version

video

Structs

AudioSubsystem
ErrorMessage

A message with information about an error that SDL has encountered.

EventPump

A thread-safe type that encapsulates SDL event-pumping functions.

EventSubsystem
GameControllerSubsystem
HapticSubsystem
JoystickSubsystem
Sdl

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

TimerSubsystem
VideoSubsystem

Enums

Error

Functions

clear_error
get_error
init

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

set_error
set_error_from_code

Type Definitions

SdlResult