1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 23:19:56 +00:00
openmw-tes3mp/apps/openmw/mwrender/animation.hpp

45 lines
874 B
C++
Raw Normal View History

#ifndef _GAME_RENDER_ANIMATION_H
#define _GAME_RENDER_ANIMATION_H
2012-07-17 18:23:34 +00:00
#include <vector>
2012-07-17 23:00:03 +00:00
#include <components/nifogre/ogre_nif_loader.hpp>
#include <openengine/ogre/renderer.hpp>
#include "../mwworld/actiontalk.hpp"
2011-12-15 05:33:10 +00:00
#include <components/nif/node.hpp>
2012-01-05 00:47:06 +00:00
#include <openengine/bullet/physic.hpp>
2012-01-06 07:27:10 +00:00
namespace MWRender {
struct PosAndRot {
Ogre::Quaternion vecRot;
Ogre::Vector3 vecPos;
};
class Animation {
protected:
Ogre::SceneNode* mInsert;
OEngine::Render::OgreRenderer &mRend;
static std::map<std::string, int> sUniqueIDs;
float mTime;
int mAnimate;
bool mSkipFrame;
2011-12-27 05:20:14 +00:00
2012-07-17 23:00:03 +00:00
NifOgre::EntityList mEntityList;
public:
Animation(OEngine::Render::OgreRenderer& _rend);
virtual ~Animation();
void playGroup(std::string groupname, int mode, int loops);
void skipAnim();
virtual void runAnimation(float timepassed);
};
}
#endif