27 constexpr
auto PARAM_ANIMATION_FRAME =
"animation-frame";
28 constexpr
auto PARAM_PLAY_ANIMATION =
"play-animation";
36 _parameters.add_options()(PARAM_ANIMATION_FRAME, po::value<uint32_t>(&_current),
37 "Scene animation frame [uint]")(PARAM_PLAY_ANIMATION,
38 po::bool_switch(&_playing)->default_value(
false),
39 "Start animation playback");
45 CORE_INFO(
"Animation frame : " << _current);
64 throw std::logic_error(
"Animation delta cannot be set to 0");
70 if (_playing && _canUpdateFrame())
76 if (_canUpdateFrame())
80 bool AnimationParameters::_canUpdateFrame()
const
po::options_description _parameters
uint32_t getFrame() const
void setDelta(const int32_t delta)
void jumpFrames(int frames)
void setFrame(uint32_t value)
bool hasIsReadyCallback() const
void _updateValue(T &member, const T &newValue, const bool triggerCallback=true)
void markModified(const bool triggerCallback=true)