1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00
OpenMW/apps/openmw/mwrender/videoplayer.hpp
2014-09-26 17:48:14 +02:00

38 lines
551 B
C++

#ifndef VIDEOPLAYER_H
#define VIDEOPLAYER_H
#include <string>
namespace MWRender
{
struct VideoState;
/**
* @brief Plays a video on an Ogre texture.
*/
class VideoPlayer
{
public:
VideoPlayer();
~VideoPlayer();
void playVideo (const std::string& resourceName);
void update();
void close();
bool isPlaying();
std::string getTextureName();
int getVideoWidth();
int getVideoHeight();
private:
VideoState* mState;
};
}
#endif