Skip to content

C++ API ​

Start here when integrating Fx2D into another CMake project. The public API has two layers:

  1. The integration reference on this site explains which header and library target to use.
  2. The generated symbol reference documents every public class, struct, enum, and member from include/Fx2D/.

Choose an integration path ​

You are building…IncludeLink targetNext
A visual app backed by a YAML sceneFx2D/Core.hFx2DlibRenderer integration
A headless YAML simulationFx2D/Scene.h + Fx2D/YamlUtils.hFx2Dlib built with FX2D_HEADLESS=ONHeadless integration
A programmatic physics worldFx2D/Scene.h, Fx2D/Entity.hFx2Dlib built with FX2D_HEADLESS=ONHeaders and entry points
A specific engine featureIts focused public headerFx2DlibHeader map

Generated symbol reference ​

Use the generated reference when you need signatures, fields, inheritance, or every member of a type. It is built from the repository headers during each Pages deployment.

Fx2Dlib is the repository’s CMake target. Fx2D does not currently ship an installed find_package(Fx2D) package, so consume it with add_subdirectory or CMake FetchContent as shown in linking Fx2D.

Released under the BSD-3-Clause License.