#ifndef VIDEOPLAYER_H #define VIDEOPLAYER_H #include #include #include #define __STDC_CONSTANT_MACROS #include extern "C" { #include #include #include } #include #include #include "../mwbase/soundmanager.hpp" namespace MWRender { struct VideoState; class VideoPlayer { public: VideoPlayer(Ogre::SceneManager* sceneMgr); ~VideoPlayer(); void playVideo (const std::string& resourceName); void update(); void close(); bool isPlaying(); private: VideoState* mState; Ogre::SceneManager* mSceneMgr; Ogre::MaterialPtr mVideoMaterial; Ogre::Rectangle2D* mRectangle; Ogre::SceneNode* mNode; }; } #endif