Skip to content
Albin Johansson edited this page May 3, 2021 · 18 revisions

Welcome to the Centurion wiki!

Doxygen documentation for the latest stable release can be found here!

About Centurion

Centurion is a modern C++ header-only library built on top of SDL2 in order to improve type-safety, memory safety and overall ease-of-use. It can be used for creating windows, 2D-rendering, keyboard input, mouse input, sound effects, music, etc. In other words, most of the things you can do with SDL2!

Why Centurion?

Centurion is written in modern C++17, which means that the API is much more expressive, type-safe and easy-to-use than raw SDL2, which is written in C. By using Centurion effectively, there’s no need to worry about memory leaks and ownership of resources! By using Centurion you will write type-safe, expressive and efficient code. Furthermore, Centurion is distributed as a single header, which makes installing the library to your project very simple.

Getting Started

Hopefully, you’re at least a little bit interested in the library by now! If you have SDL2 installed, all you need to do is to download the centurion.hpp file in the include directory, which contains the entire Centurion library, and include it in your project!

Clone this wiki locally