mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Closes #1058, spine-sfml.h doesn't define SPINE_SHORT_NAMES to avoid API collisions.
This commit is contained in:
parent
c3e1f9bc15
commit
a3653ce51b
@ -1,3 +1,10 @@
|
||||
# 3.7
|
||||
|
||||
## C
|
||||
### SFML
|
||||
* `spine-sfml.h` no longer defines `SPINE_SHORT_NAMES` to avoid collisions with other APIs. See #1058.
|
||||
|
||||
|
||||
# 3.6
|
||||
|
||||
## AS3
|
||||
|
||||
@ -30,6 +30,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
#define SPINE_SHORT_NAMES
|
||||
#include <spine/spine-sfml.h>
|
||||
#include <SFML/Graphics.hpp>
|
||||
#include <SFML/Window/Mouse.hpp>
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*****************************************************************************/
|
||||
|
||||
#define SPINE_SHORT_NAMES
|
||||
#include <spine/spine-sfml.h>
|
||||
|
||||
#ifndef SPINE_MESH_VERTEX_COUNT_MAX
|
||||
|
||||
@ -31,7 +31,6 @@
|
||||
#ifndef SPINE_SFML_H_
|
||||
#define SPINE_SFML_H_
|
||||
|
||||
#define SPINE_SHORT_NAMES
|
||||
#include <spine/spine.h>
|
||||
#include <spine/extension.h>
|
||||
#include <SFML/Graphics/Vertex.hpp>
|
||||
@ -46,13 +45,13 @@ namespace spine {
|
||||
|
||||
class SkeletonDrawable: public sf::Drawable {
|
||||
public:
|
||||
Skeleton* skeleton;
|
||||
AnimationState* state;
|
||||
spSkeleton* skeleton;
|
||||
spAnimationState* state;
|
||||
float timeScale;
|
||||
sf::VertexArray* vertexArray;
|
||||
spVertexEffect* vertexEffect;
|
||||
|
||||
SkeletonDrawable (SkeletonData* skeleton, AnimationStateData* stateData = 0);
|
||||
SkeletonDrawable (spSkeletonData* skeleton, spAnimationStateData* stateData = 0);
|
||||
~SkeletonDrawable ();
|
||||
|
||||
void update (float deltaTime);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user