Skip to content

Configuration

Albin Johansson edited this page Apr 2, 2023 · 1 revision

The library can be configured in various ways at compile-time using the following macros. For technical reasons, these macros are used to opt-out of certain features, rather than opt-in. All library macros feature a CENTURION_ prefix. Remember, you have to define these macros before you include any library headers. When using CMake, you can use target_compile_definitions to define macros without having to worry about the #include order.

CENTURION_NO_PRAGMA_ONCE

Excludes the #pragma once directive in the centurion.hpp header.

CENTURION_NO_DEBUG_LOG_MACROS

Excludes all debug-only logging macros, such as CENTURION_LOG_INFO.

CENTURION_NO_SDL_IMAGE

Excludes all library components that rely on the SDL_image library.

CENTURION_NO_SDL_MIXER

Excludes all library components that rely on the SDL_mixer library.

CENTURION_NO_SDL_TTF

Excludes all library components that rely on the SDL_ttf library.

CENTURION_NO_VULKAN

Excludes all library components related to Vulkan.

CENTURION_NO_OPENGL

Excludes all library components related to OpenGL.