The one exception type thrown in this wrapper.
A failing SDL function should always throw a SDL2Exception.
Owns both the loader, logging, keyboard state...
This object is passed around to other SDL wrapper objects
to ensure library loading.
Load SDL2 library, redirect logging to our logger.
You can pass a null logger if you don't want logging.
You can specify a minimum version of SDL2 you wish your project to support.
Creating this object doesn't initialize any SDL subsystem!
Logger logger | The logger to redirect logging to. |
SharedLibVersion sdl2Version | The version of SDL2 to load. Defaults to SharedLibVersion(2, 0, 2). |
Initialize a subsystem. By default, all SDL subsystems are uninitialized.
Get next SDL event.
Input state gets updated and window callbacks are called too.
Wait for next SDL event.
Input state gets updated and window callbacks are called too.
Wait for next SDL event, with a timeout.
Input state gets updated and window callbacks are called too.
Process all pending SDL events.
Input state gets updated. You would typically look at event instead of calling
this function.
Start text input.
Stops text input.
Sets clipboard content.
Crash if the GC is running.
Useful in destructors to avoid reliance GC resource release.