Skip to content

Headers and entry points ​

Fx2D is a C++20 static library. Include the narrowest public header that fits the job; every public header lives under include/Fx2D/.

Pick the top-level include ​

Visual YAML application ​

cpp
#include "Fx2D/Core.h"

Core.h is the convenience include for a complete visual application. It brings in the scene, YAML builder, and raylib/ImGui renderer. It therefore requires a non-headless build.

Headless YAML application ​

cpp
#include "Fx2D/Scene.h"
#include "Fx2D/YamlUtils.h"

This is the right split for testing, simulation, or data collection. It can load a Scene.yml, but does not include raylib, Dear ImGui, or rlImGui.

Programmatic simulation ​

cpp
#include "Fx2D/Scene.h"
#include "Fx2D/Entity.h"

Add Geometry.h when constructing shapes explicitly, and Joints.h when creating joints in C++.

Public header map ​

HeaderProvidesUse it for
Core.hScene + YAML + rendererThe all-in-one visual entry point.
Scene.hFxScene, groups, contact events, queriesOwning and stepping a physics world.
Entity.hFxEntity, FxVisualShapeBodies, material properties, forces, and impulses.
Geometry.hFxShape, FxAABB, FxRayHitCircles, capsules, polygons, chains, and query data.
Joints.hFxJoint, revolute/prismatic jointsConstraints and motor control.
YamlUtils.hFxYAML::buildScene and buildersLoading YAML scenes or pieces of a scene.
Renderer.hFxRylbRendererWindow, camera, input polling, and draw callbacks.
Input.hFxInput, FxKey, FxMouseButtonRenderer-agnostic input and headless input injection.
Math.hFxVec*, FxMat*, FxArrayEngine math types and shape construction data.

Direct type routes ​

The generated API opens directly to these core types:

These links stay on the symbol route; they do not redirect to the docs landing page.

Released under the BSD-3-Clause License.