Crate fermium[−][src]
Expand description
Bindings to the SDL2 C library.
This crate bundles a copy of the SDL2 source code and builds it
automatically via build.rs
. No special setup is required on your part.
Building SDL2 takes about a minute on an average development machine, so the “first time” compilation of this crate can seem quite slow.
Crate Features
cargo_check
: This causes the crate to skip building SDL2 entirely. This allows thecargo check
command (and similar commands that don’t build an executable, such ascargo doc
) to execute much faster.
Modules
Audio playback.
Support module for pixel blending.
Interact with the system clipboard.
Get some useful info about the current CPU.
SDL uses a thread-local buffer to store the current error string.
Module for event handling.
Filesystem helper functions.
The SDL “game controller” API lets you view any joystick as being (approximately) an XBox 360 controller.
Module for touch gestures.
SDL configuration variables
Module for SDL joystick event handling.
Interactions with the keyboard.
Logical key mappings (changes by locale).
Module for loading “shared objects” (aka dynamic libraries / DLLs).
Allows the creation of message boxes, for short messages to the user.
Mouse control and interaction.
Module for pixel editing.
Platform based functions.
Lets you get power info about the system.
This is a module that re-exports every sub-module of the crate.
Quit stuff.
Operations for SDL’s rectangle type.
SDL’s portable 2D rendering functions.
Allows for interaction with things you can read and write from.
Physical key mappings (ignores locale).
Lets SDL use various sensors (such as the accelerometer in a phone).
The “standard include” which almost every other include tends to use.
Module for SDL’s in-memory bitmap type.
SDL’s custom system window manager hooks.
Timer related functionality.
Module for touch interface interactions.
Lets you get info about the runtime SDL version.
Module for interacting with the video subsystem.
Functions to make Vulkan and SDL work together.
Structs
SDL2’s initialization flags.
Enums
Constants
SDL_INIT_GAMECONTROLLER
implies SDL_INIT_JOYSTICK
SDL_INIT_JOYSTICK
implies SDL_INIT_EVENTS
compatibility; this flag is ignored.
SDL_INIT_VIDEO
implies SDL_INIT_EVENTS
Functions
This function initializes specific SDL subsystems
This function cleans up specific SDL subsystems.
This function returns a mask of the specified subsystems which have previously been initialized.