spine-runtimes/spine-c/include/spine/RegionAttachment.h
2013-03-30 04:14:51 +01:00

29 lines
576 B
C++

#ifndef SPINE_REGIONATTACHMENT_H_
#define SPINE_REGIONATTACHMENT_H_
#include <spine/Attachment.h>
#include <spine/Atlas.h>
#ifdef __cplusplus
namespace spine {
extern "C" {
#endif
typedef struct RegionAttachment RegionAttachment;
struct RegionAttachment {
Attachment super;
float x, y, scaleX, scaleY, rotation, width, height;
float offset[8];
};
void RegionAttachment_updateOffset (RegionAttachment* attachment);
RegionAttachment* RegionAttachment_create (const char* name, AtlasRegion* region);
#ifdef __cplusplus
}
}
#endif
#endif /* SPINE_REGIONATTACHMENT_H_ */