Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/nla_private.h
| Show All 26 Lines | |||||
| #include "BLI_bitmap.h" | #include "BLI_bitmap.h" | ||||
| #include "BLI_ghash.h" | #include "BLI_ghash.h" | ||||
| #include "RNA_types.h" | #include "RNA_types.h" | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct AnimationEvalContext; | |||||
| /* --------------- NLA Evaluation DataTypes ----------------------- */ | /* --------------- NLA Evaluation DataTypes ----------------------- */ | ||||
| /* used for list of strips to accumulate at current time */ | /* used for list of strips to accumulate at current time */ | ||||
| typedef struct NlaEvalStrip { | typedef struct NlaEvalStrip { | ||||
| struct NlaEvalStrip *next, *prev; | struct NlaEvalStrip *next, *prev; | ||||
| NlaTrack *track; /* track that this strip belongs to */ | NlaTrack *track; /* track that this strip belongs to */ | ||||
| NlaStrip *strip; /* strip that's being used */ | NlaStrip *strip; /* strip that's being used */ | ||||
| ▲ Show 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | |||||
| /* convert from strip time <-> global time */ | /* convert from strip time <-> global time */ | ||||
| float nlastrip_get_frame(NlaStrip *strip, float cframe, short mode); | float nlastrip_get_frame(NlaStrip *strip, float cframe, short mode); | ||||
| /* --------------- NLA Evaluation (very-private stuff) ----------------------- */ | /* --------------- NLA Evaluation (very-private stuff) ----------------------- */ | ||||
| /* these functions are only defined here to avoid problems with the order | /* these functions are only defined here to avoid problems with the order | ||||
| * in which they get defined. */ | * in which they get defined. */ | ||||
| NlaEvalStrip *nlastrips_ctime_get_strip( | NlaEvalStrip *nlastrips_ctime_get_strip(ListBase *list, | ||||
| ListBase *list, ListBase *strips, short index, float ctime, const bool flush_to_original); | ListBase *strips, | ||||
| short index, | |||||
| const struct AnimationEvalContext *anim_eval_context, | |||||
| const bool flush_to_original); | |||||
| void nlastrip_evaluate(PointerRNA *ptr, | void nlastrip_evaluate(PointerRNA *ptr, | ||||
| NlaEvalData *channels, | NlaEvalData *channels, | ||||
| ListBase *modifiers, | ListBase *modifiers, | ||||
| NlaEvalStrip *nes, | NlaEvalStrip *nes, | ||||
| NlaEvalSnapshot *snapshot, | NlaEvalSnapshot *snapshot, | ||||
| const struct AnimationEvalContext *anim_eval_context, | |||||
| const bool flush_to_original); | const bool flush_to_original); | ||||
| void nladata_flush_channels(PointerRNA *ptr, | void nladata_flush_channels(PointerRNA *ptr, | ||||
| NlaEvalData *channels, | NlaEvalData *channels, | ||||
| NlaEvalSnapshot *snapshot, | NlaEvalSnapshot *snapshot, | ||||
| const bool flush_to_original); | const bool flush_to_original); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __NLA_PRIVATE_H__ */ | #endif /* __NLA_PRIVATE_H__ */ | ||||