NathanSweet 2bff08de4b Prefixed all spine-c structs and functions with "sp".
Holy refuctoring! Sorry for the change, but some libraries were having naming conflicts. You can define SPINE_SHORT_NAMES before including spine-c headers if you want to use structs and functions without the "sp" prefix, as it was before.
2013-10-09 03:43:16 +02:00

23 lines
504 B
C++

#ifndef _EXAMPLELAYER_H_
#define _EXAMPLELAYER_H_
#include "cocos2d.h"
#include <spine/spine-cocos2dx.h>
class ExampleLayer: public cocos2d::CCLayer {
public:
static cocos2d::CCScene* scene ();
virtual bool init ();
virtual void update (float deltaTime);
CREATE_FUNC (ExampleLayer);
private:
spine::CCSkeletonAnimation* skeletonNode;
void animationStateEvent (spine::CCSkeletonAnimation* node, int trackIndex, spEventType type, spEvent* event, int loopCount);
};
#endif // _EXAMPLELAYER_H_