mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
43 lines
1.0 KiB
C++
43 lines
1.0 KiB
C++
#include "attachment.h"
|
|
#include <spine/spine.h>
|
|
|
|
using namespace spine;
|
|
|
|
void spine_attachment_dispose(spine_attachment self) {
|
|
delete (Attachment *) self;
|
|
}
|
|
|
|
spine_rtti spine_attachment_get_rtti(spine_attachment self) {
|
|
Attachment *_self = (Attachment *) self;
|
|
return (spine_rtti) &_self->getRTTI();
|
|
}
|
|
|
|
const char *spine_attachment_get_name(spine_attachment self) {
|
|
Attachment *_self = (Attachment *) self;
|
|
return _self->getName().buffer();
|
|
}
|
|
|
|
spine_attachment spine_attachment_copy(spine_attachment self) {
|
|
Attachment *_self = (Attachment *) self;
|
|
return (spine_attachment) &_self->copy();
|
|
}
|
|
|
|
int spine_attachment_get_ref_count(spine_attachment self) {
|
|
Attachment *_self = (Attachment *) self;
|
|
return _self->getRefCount();
|
|
}
|
|
|
|
void spine_attachment_reference(spine_attachment self) {
|
|
Attachment *_self = (Attachment *) self;
|
|
_self->reference();
|
|
}
|
|
|
|
void spine_attachment_dereference(spine_attachment self) {
|
|
Attachment *_self = (Attachment *) self;
|
|
_self->dereference();
|
|
}
|
|
|
|
spine_rtti spine_attachment_rtti(void) {
|
|
return (spine_rtti) &Attachment::rtti;
|
|
}
|