2014-02-01 01:27:58 +01:00

23 lines
509 B
C++

#ifndef _EXAMPLELAYER_H_
#define _EXAMPLELAYER_H_
#include "cocos2d.h"
#include <spine/spine-cocos2dx.h>
class ExampleLayer: public cocos2d::CCLayerColor {
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_