OpenMW
Public Member Functions | Private Attributes
MWRender::VideoPlayer Class Reference

#include <videoplayer.hpp>

List of all members.

Public Member Functions

 VideoPlayer (Ogre::SceneManager *sceneMgr, Ogre::RenderWindow *window)
 ~VideoPlayer ()
void playVideo (const std::string &resourceName, bool allowSkipping)
void update ()
void close ()
void stopVideo ()
bool isPlaying ()
void setResolution (int w, int h)

Private Attributes

VideoStatemState
bool mAllowSkipping
Ogre::SceneManager * mSceneMgr
Ogre::MaterialPtr mVideoMaterial
Ogre::Rectangle2D * mRectangle
Ogre::Rectangle2D * mBackgroundRectangle
Ogre::SceneNode * mNode
Ogre::SceneNode * mBackgroundNode
Ogre::RenderWindow * mWindow
int mWidth
int mHeight

Constructor & Destructor Documentation

MWRender::VideoPlayer::VideoPlayer ( Ogre::SceneManager *  sceneMgr,
Ogre::RenderWindow *  window 
)

Member Function Documentation

void MWRender::VideoPlayer::playVideo ( const std::string &  resourceName,
bool  allowSkipping 
)
void MWRender::VideoPlayer::setResolution ( int  w,
int  h 
) [inline]

Member Data Documentation

Ogre::SceneNode* MWRender::VideoPlayer::mBackgroundNode [private]
Ogre::Rectangle2D* MWRender::VideoPlayer::mBackgroundRectangle [private]
Ogre::SceneNode* MWRender::VideoPlayer::mNode [private]
Ogre::Rectangle2D* MWRender::VideoPlayer::mRectangle [private]
Ogre::SceneManager* MWRender::VideoPlayer::mSceneMgr [private]
Ogre::MaterialPtr MWRender::VideoPlayer::mVideoMaterial [private]
Ogre::RenderWindow* MWRender::VideoPlayer::mWindow [private]

The documentation for this class was generated from the following files: