Box3D 0.1.0
A 3D physics engine for games
Loading...
Searching...
No Matches
config.h
1// SPDX-FileCopyrightText: 2026 Erin Catto
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
6// Box3D compile-time options.
7//
8// Normally set by the CMake BOX3D_* options. If you build Box3D without its
9// CMake (dropping the sources into another project), set them here so the
10// library and your code agree. Edit this file, or keep your settings elsewhere
11// and point Box3D at them from your build:
12//
13// #define BOX3D_USER_CONFIG "my_box3d_config.h"
14//
15// A define passed on the compiler command line still wins over this file.
16
17// Large world mode. Stores world positions in double precision. Affects ABI.
18//#define BOX3D_DOUBLE_PRECISION
19
20// Build the scalar fallback instead of SSE2/NEON.
21//#define BOX3D_DISABLE_SIMD
22
23// Enable internal validation in debug builds.
24//#define BOX3D_VALIDATE
25
26// Decorate the public API with your own export macro instead of Box3D's
27// box3d_EXPORTS/BOX3D_DLL scheme, for example when compiling Box3D into another
28// shared library. A single value cannot switch between dllexport and dllimport,
29// so this suits embedding more than shipping Box3D as its own DLL.
30//#define BOX3D_EXPORT MYENGINE_API
31