PixelLightAPI
.
|
Animation information. More...
#include <AnimationInfo.h>
Public Types | |
enum | EFlags { Loop = 1<<0, PingPong = 1<<1 } |
Animation flags. More... | |
Public Member Functions | |
PLRENDERER_API | AnimationInfo () |
Constructor. | |
virtual PLRENDERER_API | ~AnimationInfo () |
Destructor. | |
PLCore::uint32 | GetType () const |
Returns the type of the animation. | |
void | SetType (PLCore::uint32 nType=0) |
Sets the animation type. | |
PLCore::uint32 | GetStartFrame () const |
Returns the animation start frame. | |
PLRENDERER_API void | SetStartFrame (PLCore::uint32 nStartFrame=0) |
Sets the animation start frame. | |
PLCore::uint32 | GetEndFrame () const |
Returns the animation end frame. | |
PLRENDERER_API void | SetEndFrame (PLCore::uint32 nEndFrame=0) |
Sets the animation end frame. | |
PLCore::uint32 | GetNumOfFrames () const |
Returns the number of animation frames. | |
float | GetSpeed () const |
Get the animation speed. | |
void | SetSpeed (float fSpeed=24.0f) |
Set the animation speed. | |
PLCore::uint32 | GetFlags () const |
Get the animation information flags. | |
void | SetFlags (PLCore::uint32 nFlags=0) |
Sets the animation information flags. | |
AnimationFrameInfo * | GetFrameInfo (PLCore::uint32 nIndex=0) const |
Returns information about a frame. | |
AnimationEventManager & | GetEventManager () |
Returns the event manager. | |
const AnimationEventManager & | GetEventManager () const |
virtual PLRENDERER_API AnimationInfo & | operator= (const AnimationInfo &cSource) |
Copy operator. | |
virtual PLRENDERER_API PLCore::String | GetSourceName () const |
Get the animation source name. |
Animation information.
Animation flags.
PLRENDERER_API PLRenderer::AnimationInfo::AnimationInfo | ( | ) |
Constructor.
virtual PLRENDERER_API PLRenderer::AnimationInfo::~AnimationInfo | ( | ) | [virtual] |
Destructor.
PLCore::uint32 PLRenderer::AnimationInfo::GetType | ( | ) | const [inline] |
Returns the type of the animation.
void PLRenderer::AnimationInfo::SetType | ( | PLCore::uint32 | nType = 0 | ) | [inline] |
Sets the animation type.
[in] | nType | Animation type (for instance 0=skeleton 1=vertex) |
PLCore::uint32 PLRenderer::AnimationInfo::GetStartFrame | ( | ) | const [inline] |
Returns the animation start frame.
PLRENDERER_API void PLRenderer::AnimationInfo::SetStartFrame | ( | PLCore::uint32 | nStartFrame = 0 | ) |
Sets the animation start frame.
[in] | nStartFrame | Animation start frame |
PLCore::uint32 PLRenderer::AnimationInfo::GetEndFrame | ( | ) | const [inline] |
Returns the animation end frame.
PLRENDERER_API void PLRenderer::AnimationInfo::SetEndFrame | ( | PLCore::uint32 | nEndFrame = 0 | ) |
Sets the animation end frame.
[in] | nEndFrame | Animation end frame |
PLCore::uint32 PLRenderer::AnimationInfo::GetNumOfFrames | ( | ) | const [inline] |
Returns the number of animation frames.
float PLRenderer::AnimationInfo::GetSpeed | ( | ) | const [inline] |
Get the animation speed.
void PLRenderer::AnimationInfo::SetSpeed | ( | float | fSpeed = 24.0f | ) | [inline] |
Set the animation speed.
[in] | fSpeed | New playback speed for the animation, if negative, the animation is played reversed |
PLCore::uint32 PLRenderer::AnimationInfo::GetFlags | ( | ) | const [inline] |
Get the animation information flags.
void PLRenderer::AnimationInfo::SetFlags | ( | PLCore::uint32 | nFlags = 0 | ) | [inline] |
Sets the animation information flags.
[in] | nFlags | Animation information flags (see EFlags) |
AnimationFrameInfo * PLRenderer::AnimationInfo::GetFrameInfo | ( | PLCore::uint32 | nIndex = 0 | ) | const [inline] |
Returns information about a frame.
[in] | nIndex | Index of the frame the information should be returned |
AnimationEventManager & PLRenderer::AnimationInfo::GetEventManager | ( | ) | [inline] |
Returns the event manager.
const AnimationEventManager & PLRenderer::AnimationInfo::GetEventManager | ( | ) | const [inline] |
virtual PLRENDERER_API AnimationInfo& PLRenderer::AnimationInfo::operator= | ( | const AnimationInfo & | cSource | ) | [virtual] |
Copy operator.
[in] | cSource | Source to copy from |
virtual PLRENDERER_API PLCore::String PLRenderer::AnimationInfo::GetSourceName | ( | ) | const [virtual] |
Get the animation source name.
Reimplemented in PLMesh::MorphTargetAni, and PLMesh::Skeleton.
|