Crate sdl2 [] [src]

Reexports

pub extern crate libc;
pub extern crate sdl2_sys as sys;

Modules

audio

Audio Functions

clipboard
controller
cpuinfo
event

Event Handling

filesystem
gesture
gfx

A binding for the library SDL2_gfx

haptic

Haptic Functions

hint
image

A binding for the library SDL2_image

joystick
keyboard
log
messagebox
mixer

A binding for the library SDL2_mixer

mouse
pixels
rect

Rectangles and points.

render

2D accelerated rendering

rwops
surface
timer
touch
ttf

A binding for the library SDL2_ttf

version

Querying SDL Version

video

Structs

AudioSubsystem
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
IntegerOrSdlError

A given integer was so big that its representation as a C integer would be negative.

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