newspeoplefor developersdocumentationdownloads

nintanimator.h

Go to the documentation of this file.
00001 #ifndef N_INTANIMATOR_H
00002 #define N_INTANIMATOR_H
00003 //------------------------------------------------------------------------------
00012 #include "scene/nshaderanimator.h"
00013 #include "util/nanimkeyarray.h"
00014 
00015 //------------------------------------------------------------------------------
00016 class nIntAnimator : public nShaderAnimator
00017 {
00018 public:
00020     nIntAnimator();
00022     virtual ~nIntAnimator();
00024     virtual bool SaveCmds(nPersistServer* ps);
00026     virtual void Animate(nSceneNode* sceneNode, nRenderContext* renderContext);
00028     void AddKey(float time, int key);
00030     int GetNumKeys() const;
00032     void GetKeyAt(int index, float& time, int& key) const;
00033 
00034 private:
00035     nAnimKeyArray<nAnimKey<int> > keyArray;
00036 };
00037 //------------------------------------------------------------------------------
00038 #endif

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