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 image offers mainly SDLSurface::load to load images from PNG, JPG or TIF files.

You can also import all to get sdl2 and all its sister libraries, which is only 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.

All subgroups and modules

module all

sdl2 :: all

Unites the main sdl2 module and its sister library sdl2::image
module events

sdl2 :: events

SDL 2 events and related services
module image

sdl2 :: image

Services of the SDL_image 2.0 library
module mixer

sdl2 :: mixer

SDL2 mixer with sample/sounds and music
module sdl2

sdl2 :: sdl2

Simple DirectMedia Layer (SDL) 2.0 services for easy window creation and 2D drawing
module sdl2_base

sdl2 :: sdl2_base

Basic SDL 2 features
module syswm

sdl2 :: syswm

Window manager related SDL 2 services
package_diagram sdl2\> sdl2 core core sdl2\>->core gamnit gamnit gamnit->sdl2\> linux linux gamnit->linux glesv2\>examples\> examples glesv2\>examples\>->sdl2\> linux->sdl2\> sdl2\>examples\>minimal\>src\> src sdl2\>examples\>minimal\>src\>->sdl2\> android android android->gamnit android... ... android...->android

Ancestors

group codecs

core > codecs

Group module for all codec-related manipulations
group collection

core > collection

This module define several collection classes.
group text

core > text

All the classes and methods related to the manipulation of text entities

Parents

group core

core

Nit common library of core classes and methods

Children

group gamnit

gamnit

Portable game and multimedia framework for Nit
group linux

linux

Implementation of app.nit for the Linux platform
group src

sdl2 > examples > minimal > src

Descendants

group android

android

Android platform support and APIs
group bundle

android > bundle

A mapping class of String to various value types used by the
group depth

gamnit > depth

gamnit depth, a framework to create portable 3D games in Nit.
group egl

egl

Interface between rendering APIs (OpenGL, OpenGL ES, etc.) and the native windowing system.
group examples

app > examples

group flat

gamnit > flat

Simple API for 2D games, built around Sprite and App::update
group glesv2

glesv2

OpenGL graphics rendering library for embedded systems, version 2.0
group intent

android > intent

Services allowing to launch activities and start/stop services using
group notification

android > notification

Services to show notification in the Android status bar
group service

android > service

Android service support for app.nit centered around the class Service
group shared_preferences

android > shared_preferences

Services allowing to save and load datas to internal android device
group src

android > examples > src

group ui

android > ui

Views and services to use the Android native user interface
group virtual_gamepad

gamnit > virtual_gamepad

Virtual gamepad mapped to keyboard keys for quick and dirty mobile support