JK2eA
 All Classes Functions Variables
Public Member Functions
CMorphTargetController Class Reference

#include <MorphTargetController.h>

Inheritance diagram for CMorphTargetController:
Inheritance graph
[legend]
Collaboration diagram for CMorphTargetController:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CMorphTargetController (const std::string &name, CMorphTargetMesh &mesh)
virtual ~CMorphTargetController ()
virtual void Update (float dt)
void ActivateMorphTarget (const int id)
void DeactivateMorphTarget (const int id)
float * GetWeights ()
int GetSize ()
 CNTRL_CLASS_NAME (CMorphTargetController)

Detailed Description

Morph target controller se stara o vahy jednotlivych morph targetu zadaneho meshe.
Targety lze aktivovat deaktivovat.

Parameter = Mesh (abstrakce)
Animation data = offsets


Constructor & Destructor Documentation

CMorphTargetController::CMorphTargetController ( const std::string &  name,
CMorphTargetMesh mesh 
)

Konstruktor

Parameters:
namenazev controlleru
meshmesh, ktery udava pocet morph targetu, (neni to parametr)

Destruktor


Member Function Documentation

Aktivuje (nastavi mt_active na true) dany morph target

Parameters:
idid morph targetu k aktivaci

Deaktivuje (nastavi mt_active na false) dany morph target

Parameters:
idid morph targetu k deaktivaci

Ziskani celkoveho poctu morph targetu

Returns:
pocet morph targetu

Ziskani pole vah (aby bylo mozne ho vlozit nejakym zpusobem do shaderu)

Returns:
pole vah
void CMorphTargetController::Update ( float  dt) [virtual]

Aktulizace controlleru, pokud ma animace nastaveno mt_active na true, linearne roste vaha az na,
pokud false linearne klesa na 0.

Parameters:
dt

Implements CController.


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