newspeoplefor developersdocumentationdownloads

nvectoranimator.h

Go to the documentation of this file.
00001 #ifndef N_VECTORANIMATOR_H
00002 #define N_VECTORANIMATOR_H
00003 //------------------------------------------------------------------------------
00014 #include "scene/nshaderanimator.h"
00015 #include "util/nanimkeyarray.h"
00016 
00017 //------------------------------------------------------------------------------
00018 class nVectorAnimator : public nShaderAnimator
00019 {
00020 public:
00022     nVectorAnimator();
00024     virtual ~nVectorAnimator();
00026     virtual bool SaveCmds(nPersistServer* ps);
00027 
00029     virtual void Animate(nSceneNode* sceneNode, nRenderContext* renderContext);
00031     void AddKey(float time, const vector4& key);
00033     int GetNumKeys() const;
00035     void GetKeyAt(int index, float& time, vector4& key) const;
00036 
00037 private:
00038     nAnimKeyArray<nAnimKey<vector4> > keyArray;
00039 };
00040 
00041 //------------------------------------------------------------------------------
00042 #endif
00043 

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.