icon_animation_i.h 350 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "icon_animation.h"
  3. #include <stdint.h>
  4. struct IconAnimation {
  5. const Icon* icon;
  6. uint8_t frame;
  7. uint32_t tick;
  8. };
  9. /*
  10. * Get pointer to current frame data
  11. */
  12. const uint8_t* icon_animation_get_data(IconAnimation* instance);
  13. /*
  14. * Advance to next frame
  15. */
  16. void icon_animation_next_frame(IconAnimation* instance);