sdl2 -
This is a low-level wrapper of the SDL 2.0 library (as sdl2
) and SDL_image 2.0 (as sdl2::image
).
The main entry point of this project, sdl2
, exposes some features of the base
library: video, events, syswm, etc. The alternative entry point sdl2::image
offers
mainly SDLSurface::load
to load images from PNG, JPG or TIF files.
You can also import sdl2::all
to get sdl2
and all its sister libraries, which is only
sdl2::image
at this point.
Examples
See the minimal
example within this project at examples/minimal
for a simple example
of how to use this project.
Content
- sdl2: This is a low-level wrapper of the SDL 2.0 library (as
sdl2
) and SDL_image 2.0 (assdl2::image
). (lib/sdl2)- all: Unites the main
sdl2
module and its sister librarysdl2::image
(lib/sdl2/all.nit) - events: SDL 2 events and related services (lib/sdl2/events.nit)
- examples (lib/sdl2/examples)
- minimal (lib/sdl2/examples/minimal)
- src (lib/sdl2/examples/minimal/src)
- minimal: An example to test and demonstrate the
sdl2
lib withimage
andevents
(lib/sdl2/examples/minimal/src/minimal.nit)
- minimal: An example to test and demonstrate the
- src (lib/sdl2/examples/minimal/src)
- minimal (lib/sdl2/examples/minimal)
- image: Services of the SDL_image 2.0 library (lib/sdl2/image.nit)
- mixer: SDL2 mixer with sample/sounds and music (lib/sdl2/mixer.nit)
- sdl2: Simple DirectMedia Layer (SDL) 2.0 services for easy window creation and 2D drawing (lib/sdl2/sdl2.nit)
- sdl2_base: Basic SDL 2 features (lib/sdl2/sdl2_base.nit)
- syswm: Window manager related SDL 2 services (lib/sdl2/syswm.nit)
- all: Unites the main