mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
29 lines
576 B
C++
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_ */
|