PixelLightAPI  .
Public Member Functions
PLMesh::MeshAnimationManager Class Reference

This is a manager for the mesh animation element. More...

#include <MeshAnimationManager.h>

Inheritance diagram for PLMesh::MeshAnimationManager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

PLMESH_API MeshAnimationManager ()
 Default constructor.
virtual PLMESH_API ~MeshAnimationManager ()
 Destructor.
virtual PLMESH_API bool Update (float fTimeDifference)
 Updates the mesh animation manager.
virtual PLMESH_API bool Apply (MeshHandler &cMeshHandler) const
 Applies all animations to the given mesh handler.

Detailed Description

This is a manager for the mesh animation element.


Constructor & Destructor Documentation

Default constructor.

virtual PLMESH_API PLMesh::MeshAnimationManager::~MeshAnimationManager ( ) [virtual]

Destructor.


Member Function Documentation

virtual PLMESH_API bool PLMesh::MeshAnimationManager::Update ( float  fTimeDifference) [virtual]

Updates the mesh animation manager.

Parameters:
[in]fTimeDifferencePast time since last frame (use e.g. PLCore::Timing::GetInstance()->GetTimeDifference())
Returns:
'true' if all went fine, else 'false'
virtual PLMESH_API bool PLMesh::MeshAnimationManager::Apply ( MeshHandler cMeshHandler) const [virtual]

Applies all animations to the given mesh handler.

Parameters:
[in]cMeshHandlerMesh handler to apply the animations on
Returns:
'true' if all went fine, else 'false'
Remarks:
This base implementation will only calculate the current skeleton handler joint states and morph target influences. Use a derived mesh animation manager to for instance manipulate the mesh, too.

Reimplemented in PLMesh::MeshAnimationManagerHardware, and PLMesh::MeshAnimationManagerSoftware.


The documentation for this class was generated from the following file:


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:36
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported