Skip to content

egormkn/SDLXX

Repository files navigation

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

  • Provides object-oriented bindings for SDL2 and its extension libraries
  • Uses RAII idiom and C++ smart pointers for safe management of SDL resources
  • Supports vcpkg manifest mode

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
  1. 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.