|
|
8 năm trước cách đây | |
|---|---|---|
| .. | ||
| data | 8 năm trước cách đây | |
| example | 8 năm trước cách đây | |
| src | 8 năm trước cách đây | |
| CMakeLists.txt | 9 năm trước cách đây | |
| LICENSE | 9 năm trước cách đây | |
| README.md | 9 năm trước cách đây | |
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.5.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 zipspine-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 zipBrowse Source and select the directory spine-runtimesBrowse 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-get install -y libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libglew1.5-dev libjpeg8-dev libsndfile1-dev libopenal-dev libudev-dev libxcb-image0-dev libjpeg-dev libflac-devsudo apt-get install -y cmakegit clone https://github.com/esotericsoftware/spine-runtimes) or download it as a zipcd into the spine-runtimes/spine-sfml foldermkdir build && cd build && cmake ../.. to generate Make filesmake to compile the examplecd spine-sfml-example && ./spine-sfml-examplebrew install cmakegit clone https://github.com/esotericsoftware/spine-runtimes) or download it as a zipcd into the spine-runtimes/spine-sfml foldermkdir build && cd build && cmake -G Xcode ../.. to generate an Xcode project called spine.xcodeprojspine-runtimes/spine-sfml/build/ALL_BUILD to spine-sfml-exampleRun button or type CMD+R to run the example