1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 03:54:40 +00:00
OpenMW/apps/openmw/mwrender/videoplayer.hpp

42 lines
619 B
C++
Raw Normal View History

2012-12-11 21:49:31 +00:00
#ifndef VIDEOPLAYER_H
#define VIDEOPLAYER_H
2012-09-25 00:35:50 +00:00
#include <string>
2012-09-25 00:35:50 +00:00
namespace MWRender
{
struct VideoState;
/**
* @brief Plays a video on an Ogre texture.
*/
2012-09-25 00:35:50 +00:00
class VideoPlayer
{
public:
VideoPlayer();
2012-09-25 00:35:50 +00:00
~VideoPlayer();
void playVideo (const std::string& resourceName);
2012-09-25 00:35:50 +00:00
void update();
void close();
void stopVideo();
2012-09-25 00:35:50 +00:00
2012-12-11 21:49:31 +00:00
bool isPlaying();
std::string getTextureName();
int getVideoWidth();
int getVideoHeight();
2012-12-15 18:23:03 +00:00
2012-12-11 21:49:31 +00:00
private:
VideoState* mState;
2012-12-15 18:23:03 +00:00
int mWidth;
int mHeight;
2012-09-25 00:35:50 +00:00
};
}
#endif