mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 11:01:36 +08:00
38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
#include "constraint.h"
|
|
#include <spine/spine.h>
|
|
|
|
using namespace spine;
|
|
|
|
void spine_constraint_dispose(spine_constraint self) {
|
|
delete (Constraint *) self;
|
|
}
|
|
|
|
spine_rtti spine_constraint_get_rtti(spine_constraint self) {
|
|
Constraint *_self = (Constraint *) self;
|
|
return (spine_rtti) &_self->getRTTI();
|
|
}
|
|
|
|
spine_constraint_data spine_constraint_get_data(spine_constraint self) {
|
|
Constraint *_self = (Constraint *) self;
|
|
return (spine_constraint_data) &_self->getData();
|
|
}
|
|
|
|
void spine_constraint_sort(spine_constraint self, spine_skeleton skeleton) {
|
|
Constraint *_self = (Constraint *) self;
|
|
_self->sort(*((Skeleton *) skeleton));
|
|
}
|
|
|
|
bool spine_constraint_is_source_active(spine_constraint self) {
|
|
Constraint *_self = (Constraint *) self;
|
|
return _self->isSourceActive();
|
|
}
|
|
|
|
void spine_constraint_update(spine_constraint self, spine_skeleton skeleton, spine_physics physics) {
|
|
Constraint *_self = (Constraint *) self;
|
|
_self->update(*((Skeleton *) skeleton), (Physics) physics);
|
|
}
|
|
|
|
spine_rtti spine_constraint_rtti(void) {
|
|
return (spine_rtti) &Constraint::rtti;
|
|
}
|