mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 00:39:59 +00:00
45 lines
874 B
C++
45 lines
874 B
C++
#ifndef _GAME_RENDER_ANIMATION_H
|
|
#define _GAME_RENDER_ANIMATION_H
|
|
|
|
#include <vector>
|
|
|
|
#include <components/nifogre/ogre_nif_loader.hpp>
|
|
#include <openengine/ogre/renderer.hpp>
|
|
#include "../mwworld/actiontalk.hpp"
|
|
#include <components/nif/node.hpp>
|
|
#include <openengine/bullet/physic.hpp>
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
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
|