mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
68 lines
2.3 KiB
C++
68 lines
2.3 KiB
C++
#include "path_constraint_pose.h"
|
|
#include <spine/spine.h>
|
|
|
|
using namespace spine;
|
|
|
|
spine_path_constraint_pose spine_path_constraint_pose_create(void) {
|
|
return (spine_path_constraint_pose) new (__FILE__, __LINE__) PathConstraintPose();
|
|
}
|
|
|
|
void spine_path_constraint_pose_dispose(spine_path_constraint_pose self) {
|
|
delete (PathConstraintPose *) self;
|
|
}
|
|
|
|
void spine_path_constraint_pose_set(spine_path_constraint_pose self, spine_path_constraint_pose pose) {
|
|
PathConstraintPose *_self = (PathConstraintPose *) self;
|
|
_self->set(*((PathConstraintPose *) pose));
|
|
}
|
|
|
|
float spine_path_constraint_pose_get_position(spine_path_constraint_pose self) {
|
|
PathConstraintPose *_self = (PathConstraintPose *) self;
|
|
return _self->getPosition();
|
|
}
|
|
|
|
void spine_path_constraint_pose_set_position(spine_path_constraint_pose self, float position) {
|
|
PathConstraintPose *_self = (PathConstraintPose *) self;
|
|
_self->setPosition(position);
|
|
}
|
|
|
|
float spine_path_constraint_pose_get_spacing(spine_path_constraint_pose self) {
|
|
PathConstraintPose *_self = (PathConstraintPose *) self;
|
|
return _self->getSpacing();
|
|
}
|
|
|
|
void spine_path_constraint_pose_set_spacing(spine_path_constraint_pose self, float spacing) {
|
|
PathConstraintPose *_self = (PathConstraintPose *) self;
|
|
_self->setSpacing(spacing);
|
|
}
|
|
|
|
float spine_path_constraint_pose_get_mix_rotate(spine_path_constraint_pose self) {
|
|
PathConstraintPose *_self = (PathConstraintPose *) self;
|
|
return _self->getMixRotate();
|
|
}
|
|
|
|
void spine_path_constraint_pose_set_mix_rotate(spine_path_constraint_pose self, float mixRotate) {
|
|
PathConstraintPose *_self = (PathConstraintPose *) self;
|
|
_self->setMixRotate(mixRotate);
|
|
}
|
|
|
|
float spine_path_constraint_pose_get_mix_x(spine_path_constraint_pose self) {
|
|
PathConstraintPose *_self = (PathConstraintPose *) self;
|
|
return _self->getMixX();
|
|
}
|
|
|
|
void spine_path_constraint_pose_set_mix_x(spine_path_constraint_pose self, float mixX) {
|
|
PathConstraintPose *_self = (PathConstraintPose *) self;
|
|
_self->setMixX(mixX);
|
|
}
|
|
|
|
float spine_path_constraint_pose_get_mix_y(spine_path_constraint_pose self) {
|
|
PathConstraintPose *_self = (PathConstraintPose *) self;
|
|
return _self->getMixY();
|
|
}
|
|
|
|
void spine_path_constraint_pose_set_mix_y(spine_path_constraint_pose self, float mixY) {
|
|
PathConstraintPose *_self = (PathConstraintPose *) self;
|
|
_self->setMixY(mixY);
|
|
}
|