MCPcopy Create free account
hub / github.com/kiibohd/controller / AnimationStackElement

Class AnimationStackElement

Macro/PixelMap/pixel.h:200–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198
199// Animation stack element
200typedef struct AnimationStackElement {
201 TriggerMacro *trigger; // TriggerMacro that added element, set to 0 if unused
202 // If set to 1 in default settings, animation is enabled at start time
203 uint16_t index; // Animation id
204 uint16_t pos; // Current fundamental frame (XXX Make 32bit?)
205 uint8_t subpos; // If framedelay is set, current delay position
206 // Counts down up to framedelay.
207 uint8_t loops; // # of loops to run animation, 0 indicates infinite
208 uint8_t framedelay; // # of frames to delay the animation per frame of the animation
209 // 0 - Full speed
210 // 1 - Half speed
211 // 2 - 1/3 speed
212 // etc.
213 PixelFrameOption frameoption; // Frame processing options
214 PixelFrameFunction ffunc; // Frame tweening function
215 PixelPixelFunction pfunc; // Pixel tweening function
216 // TODO ffunc and pfunc args
217 AnimationReplaceType replace; // Replace type for stack element
218 AnimationPlayState state; // Animation state
219} AnimationStackElement;
220
221// Animation stack
222#define Pixel_AnimationStackSize Pixel_AnimationStackSize_define

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…