You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/apps/openmw/mwrender/videoplayer.hpp

42 lines
619 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();
void stopVideo();
bool isPlaying();
std::string getTextureName();
int getVideoWidth();
int getVideoHeight();
private:
VideoState* mState;
int mWidth;
int mHeight;
};
}
#endif