Box2D
3.2.0
A 2D 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
// Box2D compile-time options.
7
//
8
// Normally set by the CMake BOX2D_* options. If you build Box2D 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 Box2D at them from your build:
12
//
13
// #define BOX2D_USER_CONFIG "my_box2d_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 BOX2D_DOUBLE_PRECISION
19
20
// Build the scalar fallback instead of AVX2/SSE2/NEON.
21
// #define BOX2D_DISABLE_SIMD
22
23
// Enable internal validation in debug builds.
24
// #define BOX2D_VALIDATE
25
26
// Decorate the public API with your own export macro instead of Box2D's
27
// box2d_EXPORTS/BOX2D_DLL scheme, for example when compiling Box2D into another
28
// shared library. A single value cannot switch between dllexport and dllimport,
29
// so this suits embedding more than shipping Box2D as its own DLL.
30
// #define BOX2D_EXPORT MYENGINE_API
include
box2d
config.h
Generated by
1.18.0