SDL2.this

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!

class SDL2
this
(
Logger logger
,
SharedLibVersion sdl2Version = SharedLibVersion(2, 0, 2)
)

Parameters

logger Logger

The logger to redirect logging to.

sdl2Version SharedLibVersion

The version of SDL2 to load. Defaults to SharedLibVersion(2, 0, 2).

Throws

SDL2Exception on error.

See Also

Meta