Removed spine namespace from spine-c.

Didn't make any sense for a C API and complicated integration with ObjC.
This commit is contained in:
NathanSweet 2013-05-08 20:09:10 +02:00
parent 3736352c09
commit cdadffc156
46 changed files with 23 additions and 209 deletions

View File

@ -27,7 +27,6 @@
#define SPINE_ANIMATION_H_
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -132,7 +131,6 @@ void AttachmentTimeline_setFrame (AttachmentTimeline* self, int frameIndex, floa
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_ANIMATION_H_ */

View File

@ -29,7 +29,6 @@
#include <spine/AnimationStateData.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -66,7 +65,6 @@ int/*bool*/AnimationState_isComplete (AnimationState* self);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_ANIMATIONSTATE_H_ */

View File

@ -30,7 +30,6 @@
#include <spine/SkeletonData.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -49,7 +48,6 @@ float AnimationStateData_getMix (AnimationStateData* self, Animation* from, Anim
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_ANIMATIONSTATEDATA_H_ */

View File

@ -27,7 +27,6 @@
#define SPINE_ATLAS_H_
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -106,7 +105,6 @@ AtlasRegion* Atlas_findRegion (const Atlas* self, const char* name);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_ATLAS_H_ */

View File

@ -30,7 +30,6 @@
#include <spine/Atlas.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -43,7 +42,6 @@ AtlasAttachmentLoader* AtlasAttachmentLoader_create (Atlas* atlas);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_ATLASATTACHMENTLOADER_H_ */

View File

@ -27,7 +27,6 @@
#define SPINE_ATTACHMENT_H_
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -49,7 +48,6 @@ void Attachment_dispose (Attachment* self);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_ATTACHMENT_H_ */

View File

@ -30,7 +30,6 @@
#include <spine/Skin.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -52,7 +51,6 @@ Attachment* AttachmentLoader_newAttachment (AttachmentLoader* self, Skin* skin,
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_ATTACHMENTLOADER_H_ */

View File

@ -29,7 +29,6 @@
#include <spine/BoneData.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -59,7 +58,6 @@ void Bone_updateWorldTransform (Bone* self, int/*bool*/flipX, int/*bool*/flipY);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_BONE_H_ */

View File

@ -27,7 +27,6 @@
#define SPINE_BONEDATA_H_
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -46,7 +45,6 @@ void BoneData_dispose (BoneData* self);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_BONEDATA_H_ */

View File

@ -31,7 +31,6 @@
#include <spine/Slot.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -60,7 +59,6 @@ void RegionAttachment_computeVertices (RegionAttachment* self, Slot* slot, float
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_REGIONATTACHMENT_H_ */

View File

@ -31,7 +31,6 @@
#include <spine/Skin.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -91,7 +90,6 @@ void Skeleton_update (Skeleton* self, float deltaTime);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_SKELETON_H_*/

View File

@ -32,7 +32,7 @@
#include <spine/Animation.h>
#ifdef __cplusplus
namespace spine {extern "C" {
extern "C" {
#endif
typedef struct {
@ -64,7 +64,7 @@ Skin* SkeletonData_findSkin (const SkeletonData* self, const char* skinName);
Animation* SkeletonData_findAnimation (const SkeletonData* self, const char* animationName);
#ifdef __cplusplus
}}
}
#endif
#endif /* SPINE_SKELETONDATA_H_ */

View File

@ -33,7 +33,6 @@
#include <spine/Animation.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -52,7 +51,6 @@ SkeletonData* SkeletonJson_readSkeletonDataFile (SkeletonJson* self, const char*
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_SKELETONJSON_H_ */

View File

@ -29,7 +29,6 @@
#include <spine/Attachment.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -52,7 +51,6 @@ void Skin_attachAll (const Skin* self, struct Skeleton* skeleton, const Skin* ol
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_SKIN_H_ */

View File

@ -31,7 +31,6 @@
#include <spine/SlotData.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -58,7 +57,6 @@ void Slot_setToSetupPose (Slot* self);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_SLOT_H_ */

View File

@ -29,7 +29,6 @@
#include <spine/BoneData.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -48,7 +47,6 @@ void SlotData_setAttachmentName (SlotData* self, const char* attachmentName);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_SLOTDATA_H_ */

View File

@ -89,7 +89,6 @@
#include <spine/AttachmentLoader.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -145,7 +144,6 @@ void _CurveTimeline_deinit (CurveTimeline* self);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_EXTENSION_H_ */

View File

@ -27,10 +27,6 @@
#include <math.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
Animation* Animation_create (const char* name, int timelineCount) {
Animation* self = NEW(Animation);
MALLOC_STR(self->name, name);
@ -497,7 +493,3 @@ void AttachmentTimeline_setFrame (AttachmentTimeline* self, int frameIndex, floa
else
self->attachmentNames[frameIndex] = 0;
}
#ifdef __cplusplus
}
#endif

View File

@ -26,10 +26,6 @@
#include <spine/AnimationState.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
typedef struct _Entry _Entry;
struct _Entry {
Animation* animation;
@ -177,7 +173,3 @@ void AnimationState_apply (AnimationState* self, Skeleton* skeleton) {
int/*bool*/AnimationState_isComplete (AnimationState* self) {
return !self->animation || self->time >= self->animation->duration;
}
#ifdef __cplusplus
}
#endif

View File

@ -26,10 +26,6 @@
#include <spine/AnimationStateData.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
typedef struct _ToEntry _ToEntry;
struct _ToEntry {
Animation* animation;
@ -148,7 +144,3 @@ float AnimationStateData_getMix (AnimationStateData* self, Animation* from, Anim
}
return 0;
}
#ifdef __cplusplus
}
#endif

View File

@ -27,10 +27,6 @@
#include <ctype.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
AtlasPage* AtlasPage_create (const char* name) {
AtlasPage* self = NEW(AtlasPage);
MALLOC_STR(self->name, name);
@ -337,7 +333,3 @@ AtlasRegion* Atlas_findRegion (const Atlas* self, const char* name) {
}
return 0;
}
#ifdef __cplusplus
}
#endif

View File

@ -26,10 +26,6 @@
#include <spine/AtlasAttachmentLoader.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
Attachment* _AtlasAttachmentLoader_newAttachment (AttachmentLoader* loader, Skin* skin, AttachmentType type, const char* name) {
AtlasAttachmentLoader* self = SUB_CAST(AtlasAttachmentLoader, loader);
switch (type) {
@ -63,7 +59,3 @@ AtlasAttachmentLoader* AtlasAttachmentLoader_create (Atlas* atlas) {
self->atlas = atlas;
return self;
}
#ifdef __cplusplus
}
#endif

View File

@ -27,10 +27,6 @@
#include <spine/extension.h>
#include <spine/Slot.h>
#ifdef __cplusplus
namespace spine {
#endif
typedef struct _AttachmentVtable {
void (*dispose) (Attachment* self);
} _AttachmentVtable;
@ -54,7 +50,3 @@ void Attachment_dispose (Attachment* self) {
VTABLE(Attachment, self) ->dispose(self);
FREE(self);
}
#ifdef __cplusplus
}
#endif

View File

@ -27,10 +27,6 @@
#include <stdio.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
typedef struct _AttachmentLoaderVtable {
Attachment* (*newAttachment) (AttachmentLoader* self, Skin* skin, AttachmentType type, const char* name);
void (*dispose) (AttachmentLoader* self);
@ -75,7 +71,3 @@ void _AttachmentLoader_setUnknownTypeError (AttachmentLoader* self, AttachmentTy
sprintf(buffer, "%d", type);
_AttachmentLoader_setError(self, "Unknown attachment type: ", buffer);
}
#ifdef __cplusplus
}
#endif

View File

@ -27,10 +27,6 @@
#include <math.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
static int yDown;
void Bone_setYDown (int value) {
@ -97,7 +93,3 @@ void Bone_updateWorldTransform (Bone* self, int flipX, int flipY) {
CONST_CAST(float, self->m11) = -self->m11;
}
}
#ifdef __cplusplus
}
#endif

View File

@ -26,10 +26,6 @@
#include <spine/BoneData.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
BoneData* BoneData_create (const char* name, BoneData* parent) {
BoneData* self = NEW(BoneData);
MALLOC_STR(self->name, name);
@ -43,7 +39,3 @@ void BoneData_dispose (BoneData* self) {
FREE(self->name);
FREE(self);
}
#ifdef __cplusplus
}
#endif

View File

@ -29,10 +29,6 @@
#include <ctype.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
static const char* ep;
const char* Json_getError (void) {
@ -373,7 +369,3 @@ int Json_getInt (Json* value, const char* name, int defaultValue) {
value = Json_getItem(value, name);
return value ? (int)value->valuefloat : defaultValue;
}
#ifdef __cplusplus
}
#endif

View File

@ -26,7 +26,6 @@
#define SPINE_JSON_H_
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
@ -77,7 +76,6 @@ const char* Json_getError (void);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_JSON_H_ */

View File

@ -27,10 +27,6 @@
#include <math.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
RegionAttachment* RegionAttachment_create (const char* name) {
RegionAttachment* self = NEW(RegionAttachment);
self->scaleX = 1;
@ -106,7 +102,3 @@ void RegionAttachment_computeVertices (RegionAttachment* self, Slot* slot, float
vertices[VERTEX_X4] = offset[VERTEX_X4] * bone->m00 + offset[VERTEX_Y4] * bone->m01 + bone->worldX;
vertices[VERTEX_Y4] = offset[VERTEX_X4] * bone->m10 + offset[VERTEX_Y4] * bone->m11 + bone->worldY;
}
#ifdef __cplusplus
}
#endif

View File

@ -27,10 +27,6 @@
#include <string.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
Skeleton* Skeleton_create (SkeletonData* data) {
int i, ii;
@ -201,7 +197,3 @@ int Skeleton_setAttachment (Skeleton* self, const char* slotName, const char* at
void Skeleton_update (Skeleton* self, float deltaTime) {
self->time += deltaTime;
}
#ifdef __cplusplus
}
#endif

View File

@ -27,10 +27,6 @@
#include <string.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
SkeletonData* SkeletonData_create () {
return NEW(SkeletonData);
}
@ -97,7 +93,3 @@ Animation* SkeletonData_findAnimation (const SkeletonData* self, const char* ani
if (strcmp(self->animations[i]->name, animationName) == 0) return self->animations[i];
return 0;
}
#ifdef __cplusplus
}
#endif

View File

@ -32,10 +32,6 @@
#include <spine/RegionAttachment.h>
#include <spine/AtlasAttachmentLoader.h>
#ifdef __cplusplus
namespace spine {
#endif
typedef struct {
SkeletonJson super;
int ownsLoader;
@ -415,7 +411,3 @@ SkeletonData* SkeletonJson_readSkeletonData (SkeletonJson* self, const char* jso
Json_dispose(root);
return skeletonData;
}
#ifdef __cplusplus
}
#endif

View File

@ -26,10 +26,6 @@
#include <spine/Skin.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
typedef struct _Entry _Entry;
struct _Entry {
int slotIndex;
@ -103,7 +99,3 @@ void Skin_attachAll (const Skin* self, Skeleton* skeleton, const Skin* oldSkin)
entry = entry->next;
}
}
#ifdef __cplusplus
}
#endif

View File

@ -27,10 +27,6 @@
#include <spine/extension.h>
#include <spine/Skeleton.h>
#ifdef __cplusplus
namespace spine {
#endif
typedef struct {
Slot super;
float attachmentTime;
@ -81,7 +77,3 @@ void Slot_setToSetupPose (Slot* self) {
}
Slot_setAttachment(self, attachment);
}
#ifdef __cplusplus
}
#endif

View File

@ -26,10 +26,6 @@
#include <spine/SlotData.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
SlotData* SlotData_create (const char* name, BoneData* boneData) {
SlotData* self = NEW(SlotData);
MALLOC_STR(self->name, name);
@ -54,7 +50,3 @@ void SlotData_setAttachmentName (SlotData* self, const char* attachmentName) {
else
CONST_CAST(char*, self->attachmentName) = 0;
}
#ifdef __cplusplus
}
#endif

View File

@ -26,10 +26,6 @@
#include <spine/extension.h>
#include <stdio.h>
#ifdef __cplusplus
namespace spine {
#endif
static void* (*mallocFunc) (size_t size) = malloc;
static void (*freeFunc) (void* ptr) = free;
@ -67,7 +63,3 @@ char* _readFile (const char* path, int* length) {
return data;
}
#ifdef __cplusplus
}
#endif

View File

@ -65,7 +65,7 @@
location.y -= [[director runningScene]position].y;
location.x -= animationNode.position.x;
location.y -= animationNode.position.y;
if (CGRectContainsPoint(skeletonNode.boundingBox, location)) NSLog(@"Clicked!");
if (CGRectContainsPoint(animationNode.boundingBox, location)) NSLog(@"Clicked!");
return YES;
}
#endif

View File

@ -157,6 +157,8 @@
43C32A36170D0A4D004A9460 /* spineboy.atlas in Resources */ = {isa = PBXBuildFile; fileRef = 43C32A30170D0A4D004A9460 /* spineboy.atlas */; };
43C32A37170D0A4D004A9460 /* spineboy.json in Resources */ = {isa = PBXBuildFile; fileRef = 43C32A31170D0A4D004A9460 /* spineboy.json */; };
43C32A38170D0A4D004A9460 /* spineboy.png in Resources */ = {isa = PBXBuildFile; fileRef = 43C32A32170D0A4D004A9460 /* spineboy.png */; };
43D3163A173ACAE00028AA22 /* CCSkeleton.m in Sources */ = {isa = PBXBuildFile; fileRef = 43D31637173ACAE00028AA22 /* CCSkeleton.m */; };
43D3163B173ACAE00028AA22 /* CCSkeletonAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = 43D31639173ACAE00028AA22 /* CCSkeletonAnimation.m */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
@ -470,6 +472,10 @@
43C32A30170D0A4D004A9460 /* spineboy.atlas */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = spineboy.atlas; sourceTree = "<group>"; };
43C32A31170D0A4D004A9460 /* spineboy.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = spineboy.json; sourceTree = "<group>"; };
43C32A32170D0A4D004A9460 /* spineboy.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = spineboy.png; sourceTree = "<group>"; };
43D31636173ACAE00028AA22 /* CCSkeleton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CCSkeleton.h; path = src/spine/CCSkeleton.h; sourceTree = "<group>"; };
43D31637173ACAE00028AA22 /* CCSkeleton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CCSkeleton.m; path = src/spine/CCSkeleton.m; sourceTree = "<group>"; };
43D31638173ACAE00028AA22 /* CCSkeletonAnimation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CCSkeletonAnimation.h; path = src/spine/CCSkeletonAnimation.h; sourceTree = "<group>"; };
43D31639173ACAE00028AA22 /* CCSkeletonAnimation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CCSkeletonAnimation.m; path = src/spine/CCSkeletonAnimation.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -952,6 +958,10 @@
children = (
43BFBE0D170A778A00ECBACB /* spine-cocos2d-iphone.m */,
43BFBE0E170A778A00ECBACB /* spine-cocos2d-iphone.h */,
43D31636173ACAE00028AA22 /* CCSkeleton.h */,
43D31637173ACAE00028AA22 /* CCSkeleton.m */,
43D31638173ACAE00028AA22 /* CCSkeletonAnimation.h */,
43D31639173ACAE00028AA22 /* CCSkeletonAnimation.m */,
);
name = "spine-cocos2d-iphone";
path = ..;
@ -1183,6 +1193,8 @@
43BFBE0F170A778A00ECBACB /* spine-cocos2d-iphone.m in Sources */,
43C32A1B170B1295004A9460 /* AppDelegate.m in Sources */,
43C32A20170B1295004A9460 /* main.m in Sources */,
43D3163A173ACAE00028AA22 /* CCSkeleton.m in Sources */,
43D3163B173ACAE00028AA22 /* CCSkeletonAnimation.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View File

@ -26,10 +26,6 @@
#import <spine/spine.h>
#import "cocos2d.h"
#ifdef __cplusplus
using namespace spine;
#endif
/**
Draws a skeleton.
*/

View File

@ -27,10 +27,6 @@
#import <spine/CCSkeleton.h>
#import "cocos2d.h"
#ifdef __cplusplus
using namespace spine;
#endif
/**
Draws an animated skeleton, providing a simple API for applying one or more animations and queuing animations to be played later.
*/

View File

@ -26,10 +26,6 @@
#include <spine/spine-cocos2d-iphone.h>
#include <spine/extension.h>
#ifdef __cplusplus
namespace spine {
#endif
void _AtlasPage_createTexture (AtlasPage* self, const char* path) {
CCTexture2D* texture = [[CCTextureCache sharedTextureCache] addImage:@(path)];
CCTextureAtlas* textureAtlas = [[CCTextureAtlas alloc] initWithTexture:texture capacity:4];

View File

@ -119,17 +119,17 @@ void CCSkeletonAnimation::setAnimationStateData (AnimationStateData* stateData,
states[stateIndex] = state;
}
void CCSkeletonAnimation::setMix (char* fromAnimation, char* toAnimation, float duration, int stateIndex) {
void CCSkeletonAnimation::setMix (const char* fromAnimation, const char* toAnimation, float duration, int stateIndex) {
CCAssert(stateIndex >= 0 && stateIndex < (int)states.size(), "stateIndex out of range.");
AnimationStateData_setMixByName(states[stateIndex]->data, fromAnimation, toAnimation, duration);
}
void CCSkeletonAnimation::setAnimation (char* name, bool loop, int stateIndex) {
void CCSkeletonAnimation::setAnimation (const char* name, bool loop, int stateIndex) {
CCAssert(stateIndex >= 0 && stateIndex < (int)states.size(), "stateIndex out of range.");
AnimationState_setAnimationByName(states[stateIndex], name, loop);
}
void CCSkeletonAnimation::addAnimation (char* name, bool loop, float delay, int stateIndex) {
void CCSkeletonAnimation::addAnimation (const char* name, bool loop, float delay, int stateIndex) {
CCAssert(stateIndex >= 0 && stateIndex < (int)states.size(), "stateIndex out of range.");
AnimationState_addAnimationByName(states[stateIndex], name, loop, delay);
}

View File

@ -53,9 +53,9 @@ public:
void addAnimationState (AnimationStateData* stateData = 0);
void setAnimationStateData (AnimationStateData* stateData, int stateIndex = 0);
void setMix (char* fromAnimation, char* toAnimation, float duration, int stateIndex = 0);
void setAnimation (char* name, bool loop, int stateIndex = 0);
void addAnimation (char* name, bool loop, float delay = 0, int stateIndex = 0);
void setMix (const char* fromAnimation, const char* toAnimation, float duration, int stateIndex = 0);
void setAnimation (const char* name, bool loop, int stateIndex = 0);
void addAnimation (const char* name, bool loop, float delay = 0, int stateIndex = 0);
void clearAnimation (int stateIndex = 0);
protected:

View File

@ -28,8 +28,6 @@
USING_NS_CC;
namespace spine {
void _AtlasPage_createTexture (AtlasPage* self, const char* path) {
CCTexture2D* texture = CCTextureCache::sharedTextureCache()->addImage(path);
CCTextureAtlas* textureAtlas = CCTextureAtlas::createWithTexture(texture, 4);
@ -96,5 +94,3 @@ void RegionAttachment_updateQuad (RegionAttachment* self, Slot* slot, ccV3F_C4B_
quad->br.texCoords.u = self->uvs[VERTEX_X4];
quad->br.texCoords.v = self->uvs[VERTEX_Y4];
}
}

View File

@ -31,10 +31,6 @@
#include <spine/CCSkeleton.h>
#include <spine/CCSkeletonAnimation.h>
namespace spine {
void RegionAttachment_updateQuad (RegionAttachment* self, Slot* slot, cocos2d::ccV3F_C4B_T2F_Quad* quad);
}
#endif /* SPINE_COCOS2DX_H_ */

View File

@ -33,8 +33,6 @@
using namespace sf;
namespace spine {
void _AtlasPage_createTexture (AtlasPage* self, const char* path) {
Texture* texture = new Texture();
if (!texture->loadFromFile(path)) return;
@ -54,6 +52,8 @@ char* _Util_readFile (const char* path, int* length) {
/**/
namespace spine {
SkeletonDrawable::SkeletonDrawable (SkeletonData* skeletonData, AnimationStateData* stateData) :
timeScale(1),
vertexArray(new VertexArray(Quads, skeletonData->boneCount * 4)) {