|
@@ -41,7 +41,7 @@ extern "C" {
|
|
|
typedef struct spTimeline spTimeline;
|
|
|
struct spSkeleton;
|
|
|
|
|
|
-typedef struct {
|
|
|
+typedef struct spAnimation {
|
|
|
const char* const name;
|
|
|
float duration;
|
|
|
|
|
@@ -114,7 +114,7 @@ typedef spTimeline Timeline;
|
|
|
|
|
|
/**/
|
|
|
|
|
|
-typedef struct {
|
|
|
+typedef struct spCurveTimeline {
|
|
|
spTimeline super;
|
|
|
float* curves; /* type, x, y, ... */
|
|
|
} spCurveTimeline;
|
|
@@ -143,7 +143,11 @@ typedef struct spBaseTimeline {
|
|
|
int const framesCount;
|
|
|
float* const frames; /* time, angle, ... for rotate. time, x, y, ... for translate and scale. */
|
|
|
int boneIndex;
|
|
|
-} spRotateTimeline;
|
|
|
+} spBaseTimeline;
|
|
|
+
|
|
|
+/**/
|
|
|
+
|
|
|
+typedef struct spBaseTimeline spRotateTimeline;
|
|
|
|
|
|
spRotateTimeline* spRotateTimeline_create (int framesCount);
|
|
|
|
|
@@ -185,7 +189,7 @@ typedef spScaleTimeline ScaleTimeline;
|
|
|
|
|
|
/**/
|
|
|
|
|
|
-typedef struct {
|
|
|
+typedef struct spColorTimeline {
|
|
|
spCurveTimeline super;
|
|
|
int const framesCount;
|
|
|
float* const frames; /* time, r, g, b, a, ... */
|
|
@@ -204,7 +208,7 @@ typedef spColorTimeline ColorTimeline;
|
|
|
|
|
|
/**/
|
|
|
|
|
|
-typedef struct {
|
|
|
+typedef struct spAttachmentTimeline {
|
|
|
spTimeline super;
|
|
|
int const framesCount;
|
|
|
float* const frames; /* time, ... */
|
|
@@ -225,7 +229,7 @@ typedef spAttachmentTimeline AttachmentTimeline;
|
|
|
|
|
|
/**/
|
|
|
|
|
|
-typedef struct {
|
|
|
+typedef struct spEventTimeline {
|
|
|
spTimeline super;
|
|
|
int const framesCount;
|
|
|
float* const frames; /* time, ... */
|
|
@@ -244,7 +248,7 @@ typedef spEventTimeline EventTimeline;
|
|
|
|
|
|
/**/
|
|
|
|
|
|
-typedef struct {
|
|
|
+typedef struct spDrawOrderTimeline {
|
|
|
spTimeline super;
|
|
|
int const framesCount;
|
|
|
float* const frames; /* time, ... */
|
|
@@ -264,7 +268,7 @@ typedef spDrawOrderTimeline DrawOrderTimeline;
|
|
|
|
|
|
/**/
|
|
|
|
|
|
-typedef struct {
|
|
|
+typedef struct spFFDTimeline {
|
|
|
spCurveTimeline super;
|
|
|
int const framesCount;
|
|
|
float* const frames; /* time, ... */
|
|
@@ -286,7 +290,7 @@ typedef spFFDTimeline FFDTimeline;
|
|
|
|
|
|
/**/
|
|
|
|
|
|
-typedef struct {
|
|
|
+typedef struct spIkConstraintTimeline {
|
|
|
spCurveTimeline super;
|
|
|
int const framesCount;
|
|
|
float* const frames; /* time, mix, bendDirection, ... */
|
|
@@ -306,7 +310,7 @@ typedef spIkConstraintTimeline IkConstraintTimeline;
|
|
|
|
|
|
/**/
|
|
|
|
|
|
-typedef struct {
|
|
|
+typedef struct spFlipTimeline {
|
|
|
spTimeline super;
|
|
|
int const x;
|
|
|
int const framesCount;
|