|
hace 6 años | |
---|---|---|
.. | ||
data | hace 6 años | |
example | hace 6 años | |
src | hace 6 años | |
CMakeLists.txt | hace 7 años | |
LICENSE | hace 7 años | |
README.md | hace 7 años |
The spine-sfml runtime provides functionality to load, manipulate and render Spine skeletal animation data using SFML. spine-sfml is based on spine-c.
This Spine Runtime may only be used for personal or internal use, typically to evaluate Spine before purchasing. If you would like to incorporate a Spine Runtime into your applications, distribute software containing a Spine Runtime, or modify a Spine Runtime, then you will need a valid Spine license. Please see the Spine Runtimes Software License for detailed information.
The Spine Runtimes are developed with the intent to be used with data exported from Spine. By purchasing Spine, Section 2
of the Spine Software License grants the right to create and distribute derivative works of the Spine Runtimes.
spine-sfml works with data exported from Spine 3.6.xx.
spine-sfml supports all Spine features.
spine-sfml does not yet support loading the binary format.
git clone https://github.com/esotericsoftware/spine-runtimes
) or download it as a zip via the download button above.spine-c/spine-c/src/spine
and spine-sfml/src/spine
to your projectspine-c/spine-c/include
to your header search path. Note that includes are specified as #inclue <spine/file.h>
, so the spine
directory cannot be omitted when copying the source files.See the Spine Runtimes documentation on how to use the APIs or check out the Spine SFML example.
The Spine SFML example works on Windows, Linux and Mac OS X.
git clone https://github.com/esotericsoftware/spine-runtimes
) or download it as a zip via the download button above.Browse Source
and select the directory spine-runtimes
Browse Build
and select the spine-runtimes/spine-sfml/build
directory. You can create the build
folder directly in the file dialog via New Folder
.Configure
. Then click Generate
. This will create a Visual Studio 2015 solution file called spine.sln
in spine-runtimes/spine-sfml/build
and also download the SFML dependencies.spine.sln
file in Visual Studio 2015spine-sfml-example
project in the solution explorer and select Set as Startup Project
from the context menuspine-sfml-example
project in the solution explorer and select Properties
from the context menuDebugging
in the left-hand list, then set Working Directory
to $(OutputPath)
Local Windows Debugger
to run the exampleThe entire example code is contained in main.cpp
sudo apt install libsfml-dev
sudo apt-get install -y cmake
git clone https://github.com/esotericsoftware/spine-runtimes
) or download it as a zip via the download button above.cd
into the spine-runtimes/spine-sfml
foldermkdir build && cd build && cmake ../..
to generate Make filesmake
to compile the examplecd spine-sfml && ./spine-sfml-example
brew install cmake
git clone https://github.com/esotericsoftware/spine-runtimes
) or download it as a zip via the download button above.cd
into the spine-runtimes/spine-sfml
foldermkdir build && cd build && cmake -G Xcode ../..
to generate an Xcode project called spine.xcodeproj
spine-runtimes/spine-sfml/build/
ALL_BUILD
to spine-sfml-example
Run
button or type CMD+R
to run the example