FuncDoodle
Loading...
Searching...
No Matches
Player.h File Reference

Defines AnimationPlayer, responsible for animation playback control. More...

#include "Project/Project.h"
#include "Util/Ptr.h"

Go to the source code of this file.

Classes

class  FuncDoodle::AnimationPlayer
 Responsible for playing a users' animation. More...

Namespaces

namespace  FuncDoodle
 The FuncDoodle C++ namespace.

Detailed Description

Defines AnimationPlayer, responsible for animation playback control.

This file contains the AnimationPlayer class, which manages playback of a ProjectFile animation over time.

Responsibilities include:

  • Controlling play/pause state of the animation
  • Advancing frames based on elapsed time
  • Managing current frame index
  • Rewinding and resetting playback state

The player operates directly on a ProjectFile instance and maintains internal timing state used for frame progression.

Note
m_CurFrame is always expected to be a valid index within the project frame list.
Playback timing is accumulated using m_TimeElapsed.