AnimationController
kn::AnimationController Declared in kraken/animation/AnimationController.hpp
At a glance
19 membersloopingvariableAnimationControllerfunction~AnimationControllerfunctionaddStripfunctionaddStripsfunctionsetfunctionplayfunctionreplayfunctionplayFromfunctiongetFrameAreafunctiongetFrameIndexfunctiongetProgressfunctionsetPlaybackSpeedfunctiongetPlaybackSpeedfunctionisFinishedfunctiongetCurrentAnimationNamefunctionrewindfunctionpausefunctionresumefunctionReference
C++ APIlooping
variablebool looping = trueNo description in the source header.
AnimationController
functionNo description in the source header.
~AnimationController
functionNo description in the source header.
addStrip
functionvoid addStrip(uint16_t frameWidth, uint16_t frameHeight, const SheetStrip &strip, uint8_t stripIndex=0)No description in the source header.
addStrips
functionvoid addStrips(uint16_t frameWidth, uint16_t frameHeight, const std::vector< SheetStrip > &strips)No description in the source header.
set
functionvoid set(const std::string &name)No description in the source header.
play
functionvoid play(const std::string &name)No description in the source header.
replay
functionvoid replay(const std::string &name)No description in the source header.
playFrom
functionvoid playFrom(int frameIndex)No description in the source header.
getFrameArea
functionconst Rect & getFrameArea() constNo description in the source header.
getFrameIndex
functionint getFrameIndex() constNo description in the source header.
getProgress
functiondouble getProgress() constNo description in the source header.
setPlaybackSpeed
functionvoid setPlaybackSpeed(double speed)No description in the source header.
getPlaybackSpeed
functiondouble getPlaybackSpeed() constNo description in the source header.
isFinished
functionbool isFinished() constNo description in the source header.
getCurrentAnimationName
functionstd::string getCurrentAnimationName() constNo description in the source header.
rewind
functionvoid rewind()No description in the source header.
pause
functionvoid pause()No description in the source header.
resume
functionvoid resume()No description in the source header.