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§
- Init
Flag - InitFlags are passed to init() to control which subsystem functionality to load.
- Sdl2
Image Context - Context manager for
sdl2_image
to manage quitting. Can’t do much with it but keep it alive while you are using it.
Traits§
- ImageR
Wops - Load
Surface - Static method extensions for creating Surfaces
- Load
Texture - Method extensions for creating Textures from a
TextureCreator
- Save
Surface - Method extensions to Surface for saving to disk
Functions§
- get_
linked_ version - Returns the version of the dynamically linked
SDL_image
library - init
- Initializes
SDL2_image
withInitFlags
. If not every flag is set it returns an error