2011-11-24 01:48:54 -05:00
|
|
|
#ifndef _GAME_RENDER_ANIMATION_H
|
|
|
|
#define _GAME_RENDER_ANIMATION_H
|
|
|
|
#include <components/nif/data.hpp>
|
2011-12-11 22:40:00 -05:00
|
|
|
#include <openengine/ogre/renderer.hpp>
|
|
|
|
#include "../mwworld/refdata.hpp"
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
#include "../mwworld/actiontalk.hpp"
|
|
|
|
#include "../mwworld/environment.hpp"
|
|
|
|
|
2011-11-24 01:48:54 -05:00
|
|
|
namespace MWRender{
|
2011-12-11 22:40:00 -05:00
|
|
|
|
2011-11-24 01:48:54 -05:00
|
|
|
class Animation{
|
2011-12-11 22:40:00 -05:00
|
|
|
protected:
|
|
|
|
OEngine::Render::OgreRenderer &mRend;
|
|
|
|
MWWorld::Environment& mEnvironment;
|
|
|
|
|
|
|
|
|
2011-11-24 01:48:54 -05:00
|
|
|
std::vector<Nif::NiKeyframeData> transformations;
|
|
|
|
std::map<std::string,float> textmappings;
|
2011-12-11 22:40:00 -05:00
|
|
|
Ogre::Entity* base;
|
|
|
|
public:
|
|
|
|
Animation(MWWorld::Environment& _env, OEngine::Render::OgreRenderer& _rend): mRend(_rend), mEnvironment(_env){};
|
2011-12-11 23:42:39 -05:00
|
|
|
~Animation();
|
2011-12-11 22:40:00 -05:00
|
|
|
|
2011-11-24 01:48:54 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|