Mario Zechner acbcfeb44d [cpp] Still compute RegionAttachment offsets when the region is null, see #2887
- Includes a massive refactor of the TextureRegion/AtlasRegion hierarchy to be in line with Java implementation
- Exact line by line port of RegionAttachment#updateRegion and MeshAttachment#updateRegion using new region implementations
2025-07-15 14:22:19 +02:00
..
2025-04-05 13:42:13 -04:00
2025-07-15 11:49:15 +02:00

spine-cpp

The spine-cpp runtime provides basic functionality to load and manipulate spine skeletal animation data using C++. It does not perform rendering but can be extended to enable spine animations for other projects that utilize C++.

Licensing

You are welcome to evaluate the Spine Runtimes and the examples we provide in this repository free of charge.

You can integrate the Spine Runtimes into your software free of charge, but users of your software must have their own Spine license. Please make your users aware of this requirement! This option is often chosen by those making development tools, such as an SDK, game toolkit, or software library.

In order to distribute your software containing the Spine Runtimes to others that don't have a Spine license, you need a Spine license at the time of integration. Then you can distribute your software containing the Spine Runtimes however you like, provided others don't modify it or use it to create new software. If others want to do that, they'll need their own Spine license.

For the official legal terms governing the Spine Runtimes, please read the Spine Runtimes License Agreement and Section 2 of the Spine Editor License Agreement.

Spine version

spine-cpp works with data exported from spine 4.3.xx.

spine-cpp supports all spine features.

Setup

Manual Copy

  1. Download the spine Runtimes source using git or by downloading it as a zip via the download button above.
  2. Copy the contents of the spine-cpp/spine-cpp/src and spine-cpp/spine-cpp/include directories into your project. Be sure your header search is configured to find the contents of the spine-cpp/spine-cpp/include directory. Note that the includes use spine/Xxx.h, so the spine directory cannot be omitted when copying the files.

CMake

You can use CMake's FetchContent to include spine-cpp in your project:

include(FetchContent)
FetchContent_Declare(
  spine-runtimes
  GIT_REPOSITORY https://github.com/EsotericSoftware/spine-runtimes.git
  GIT_TAG 4.3
)
FetchContent_MakeAvailable(spine-runtimes)

add_subdirectory(${spine-runtimes_SOURCE_DIR}/spine-cpp ${spine-runtimes_BINARY_DIR}/spine-cpp)
target_link_libraries(your_target PRIVATE spine-cpp)

Usage

Please see the spine-cpp guide for full documentation

Runtimes extending spine-cpp