Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

SplashScreenWoggel.h

Go to the documentation of this file.
00001 //345678901234567890123456789012345678901234567890123456789012345678901234567890
00002 // SplashScreenWoggel.h
00003 //
00004 // Author: Richard van Balen
00005 
00006 #ifndef OglGui_SplashScreenWoggel_h
00007 #define OglGui_SplashScreenWoggel_h
00008 
00009 #ifndef OglGui_Window_h
00010 #include "OglGui/Window.h"
00011 #endif
00012 
00013 namespace OglGui {
00014 
00015 class SplashScreenWoggel : public Window
00016 {
00017 public:
00018     SplashScreenWoggel(int x, int y, int w, int h) :
00019         Window(x, y, w, h)
00020     {
00021         mStop =  mInitialized = false;
00022         mAnimWnd = oglSys.CreateOGLViewPort(mOglWnd,0,0,W(),H());
00023         WoggelFuncs(mAnimWnd);
00024     }
00025 
00026     virtual void InitFunc()
00027     {
00028         SetBackground(oglWHITE);
00029     }
00030 
00031     void Stop()
00032     {
00033         mStop = true;
00034         UpdateScene(true);
00035     }
00036 
00037     virtual void DisplayFunc()
00038     {
00039         Window::DisplayFunc();
00040         if (!mInitialized)
00041         {
00042             mInitialized = true;
00043             mAnimWnd->userFuncs.keyboardFunc(mAnimWnd,'$',0);
00044         }
00045         if (mStop)
00046             oglSys.CloseTopWindow(mOglWnd);
00047     }
00048 private:
00049     OGLWND* mAnimWnd;
00050     bool mStop;
00051     bool mInitialized;
00052 };
00053 
00054 } // Namespace OglGui
00055 #endif
00056 

Generated on Fri Mar 19 09:31:38 2010 for ImpalaSrc by  doxygen 1.5.1