Expand description
A binding for the library SDL2_image
Note that you need to build with the
feature image
for this module to be enabled,
like so:
$ cargo build --features "image"
If you want to use this with from inside your own crate, you will need to add this in your Cargo.toml
[dependencies.sdl2]
version = ...
default-features = false
features = ["image"]
Structs
InitFlags are passed to init() to control which subsystem functionality to load.
Context manager for sdl2_image
to manage quitting. Can’t do much with it but
keep it alive while you are using it.
Traits
Static method extensions for creating Surfaces
Method extensions for creating Textures from a TextureCreator
Method extensions to Surface for saving to disk
Functions
Returns the version of the dynamically linked SDL_image
library
Initializes SDL2_image
with InitFlags
.
If not every flag is set it returns an error