mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 15:26:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
	
		
			619 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			41 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
 |