spine-runtimes/spine-c/src/generated/alpha_timeline.h

50 lines
3.0 KiB
C

#ifndef SPINE_SPINE_ALPHA_TIMELINE_H
#define SPINE_SPINE_ALPHA_TIMELINE_H
#include "../base.h"
#include "types.h"
#include "arrays.h"
#ifdef __cplusplus
extern "C" {
#endif
SPINE_C_API spine_alpha_timeline spine_alpha_timeline_create(size_t frameCount, size_t bezierCount, int slotIndex);
SPINE_C_API void spine_alpha_timeline_dispose(spine_alpha_timeline self);
SPINE_C_API spine_rtti spine_alpha_timeline_get_rtti(spine_alpha_timeline self);
SPINE_C_API void spine_alpha_timeline_apply(spine_alpha_timeline self, spine_skeleton skeleton, float lastTime, float time,
/*@null*/ spine_array_event events, float alpha, spine_mix_blend blend, spine_mix_direction direction,
bool appliedPose);
SPINE_C_API int spine_alpha_timeline_get_slot_index(spine_alpha_timeline self);
SPINE_C_API void spine_alpha_timeline_set_slot_index(spine_alpha_timeline self, int inValue);
SPINE_C_API void spine_alpha_timeline_set_frame(spine_alpha_timeline self, size_t frame, float time, float value);
SPINE_C_API float spine_alpha_timeline_get_curve_value(spine_alpha_timeline self, float time);
SPINE_C_API float spine_alpha_timeline_get_relative_value(spine_alpha_timeline self, float time, float alpha, spine_mix_blend blend, float current,
float setup);
SPINE_C_API float spine_alpha_timeline_get_absolute_value_1(spine_alpha_timeline self, float time, float alpha, spine_mix_blend blend, float current,
float setup);
SPINE_C_API float spine_alpha_timeline_get_absolute_value_2(spine_alpha_timeline self, float time, float alpha, spine_mix_blend blend, float current,
float setup, float value);
SPINE_C_API float spine_alpha_timeline_get_scale_value(spine_alpha_timeline self, float time, float alpha, spine_mix_blend blend,
spine_mix_direction direction, float current, float setup);
SPINE_C_API void spine_alpha_timeline_set_linear(spine_alpha_timeline self, size_t frame);
SPINE_C_API void spine_alpha_timeline_set_stepped(spine_alpha_timeline self, size_t frame);
SPINE_C_API void spine_alpha_timeline_set_bezier(spine_alpha_timeline self, size_t bezier, size_t frame, float value, float time1, float value1,
float cx1, float cy1, float cx2, float cy2, float time2, float value2);
SPINE_C_API float spine_alpha_timeline_get_bezier_value(spine_alpha_timeline self, float time, size_t frame, size_t valueOffset, size_t i);
SPINE_C_API spine_array_float spine_alpha_timeline_get_curves(spine_alpha_timeline self);
SPINE_C_API size_t spine_alpha_timeline_get_frame_entries(spine_alpha_timeline self);
SPINE_C_API size_t spine_alpha_timeline_get_frame_count(spine_alpha_timeline self);
SPINE_C_API spine_array_float spine_alpha_timeline_get_frames(spine_alpha_timeline self);
SPINE_C_API float spine_alpha_timeline_get_duration(spine_alpha_timeline self);
SPINE_C_API spine_array_property_id spine_alpha_timeline_get_property_ids(spine_alpha_timeline self);
SPINE_C_API spine_rtti spine_alpha_timeline_rtti(void);
#ifdef __cplusplus
}
#endif
#endif /* SPINE_SPINE_ALPHA_TIMELINE_H */