OpenMW
Public Member Functions | Private Member Functions | Private Attributes
MWGui::LoadingScreen Class Reference

#include <loadingscreen.hpp>

List of all members.

Public Member Functions

virtual void setLabel (const std::string &label)
virtual void indicateProgress ()
 Indicate that some progress has been made, without specifying how much.
virtual void loadingOn ()
virtual void loadingOff ()
virtual void setProgressRange (size_t range)
virtual void setProgress (size_t value)
virtual void increaseProgress (size_t increase)
virtual void removeWallpaper ()
 Indicate the scene is now ready to be shown.
 LoadingScreen (Ogre::SceneManager *sceneMgr, Ogre::RenderWindow *rw)
virtual ~LoadingScreen ()
void setLoadingProgress (const std::string &stage, int depth, int current, int total)
void loadingDone ()
void onResChange (int w, int h)
void updateWindow (Ogre::RenderWindow *rw)

Private Member Functions

void changeWallpaper ()
void draw ()

Private Attributes

bool mFirstLoad
Ogre::SceneManager * mSceneMgr
Ogre::RenderWindow * mWindow
unsigned long mLastWallpaperChangeTime
unsigned long mLastRenderTime
Ogre::Timer mTimer
size_t mProgress
MyGUI::TextBox * mLoadingText
MyGUI::ScrollBar * mProgressBar
MyGUI::ImageBox * mBackgroundImage
Ogre::Rectangle2D * mRectangle
Ogre::MaterialPtr mBackgroundMaterial
Ogre::StringVector mResources
bool mVSyncWasEnabled

Constructor & Destructor Documentation

MWGui::LoadingScreen::LoadingScreen ( Ogre::SceneManager *  sceneMgr,
Ogre::RenderWindow *  rw 
)

Member Function Documentation

void MWGui::LoadingScreen::draw ( ) [private]
void MWGui::LoadingScreen::increaseProgress ( size_t  increase) [virtual]

Implements Loading::Listener.

Indicate that some progress has been made, without specifying how much.

Implements Loading::Listener.

Implements Loading::Listener.

void MWGui::LoadingScreen::loadingOn ( ) [virtual]

Implements Loading::Listener.

void MWGui::LoadingScreen::onResChange ( int  w,
int  h 
)

Indicate the scene is now ready to be shown.

Implements Loading::Listener.

void MWGui::LoadingScreen::setLabel ( const std::string &  label) [virtual]

Implements Loading::Listener.

void MWGui::LoadingScreen::setLoadingProgress ( const std::string &  stage,
int  depth,
int  current,
int  total 
)
void MWGui::LoadingScreen::setProgress ( size_t  value) [virtual]

Implements Loading::Listener.

void MWGui::LoadingScreen::setProgressRange ( size_t  range) [virtual]

Implements Loading::Listener.

void MWGui::LoadingScreen::updateWindow ( Ogre::RenderWindow *  rw) [inline]

Member Data Documentation

MyGUI::ImageBox* MWGui::LoadingScreen::mBackgroundImage [private]
Ogre::MaterialPtr MWGui::LoadingScreen::mBackgroundMaterial [private]
unsigned long MWGui::LoadingScreen::mLastRenderTime [private]
MyGUI::TextBox* MWGui::LoadingScreen::mLoadingText [private]
MyGUI::ScrollBar* MWGui::LoadingScreen::mProgressBar [private]
Ogre::Rectangle2D* MWGui::LoadingScreen::mRectangle [private]
Ogre::StringVector MWGui::LoadingScreen::mResources [private]
Ogre::SceneManager* MWGui::LoadingScreen::mSceneMgr [private]
Ogre::Timer MWGui::LoadingScreen::mTimer [private]
Ogre::RenderWindow* MWGui::LoadingScreen::mWindow [private]

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