egormkn / SDLXX

:space_invader: Modern C++ wrapper for Simple DirectMedia Layer (SDL2)
https://egormkn.github.io/sdlxx
zlib License
11 stars 3 forks source link
animation audio directx game game-engine gamedev gui image mixer network opengl physics physics-2d rendering sdl sdl2 ttf

SDLXX

Build

Description

SDLXX is a modern C++ wrapper for the widely used SDL library and its extensions: SDL_image, SDL_mixer, SDL_net, SDL_ttf.

It is designed to provide safe access to audio, keyboard, mouse, joystick, network and graphics hardware.

Features

Examples

Here is an example of the game created using SDLXX:

Game screenshot

Alternatives

There are some other projects on Github that aim to provide a similar functionality:

Development

1) Clone the repository with vcpkg submodule:

git clone --recurse-submodules https://github.com/egormkn/SDLXX.git

2) Open a project in IDE (VSCode/CLion/QtCreator/...) or use CMake to build from command line:

cd SDLXX
cmake -S . -B build -D BUILD_EXAMPLES=ON
cmake --build build

License

This library is distributed under the terms of the ZLib License.