1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
OpenMW/apps/openmw/mwrender/animation.hpp

44 lines
853 B
C++
Raw Normal View History

#ifndef _GAME_RENDER_ANIMATION_H
#define _GAME_RENDER_ANIMATION_H
2012-07-17 11:23:34 -07:00
#include <vector>
2012-07-17 16:00:03 -07:00
#include <components/nifogre/ogre_nif_loader.hpp>
#include <openengine/ogre/renderer.hpp>
#include "../mwworld/actiontalk.hpp"
2011-12-15 00:33:10 -05:00
#include <components/nif/node.hpp>
2012-01-04 19:47:06 -05:00
#include <openengine/bullet/physic.hpp>
2012-01-06 02:27:10 -05: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;
2011-12-27 00:20:14 -05:00
2012-07-17 16:00:03 -07: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