00001
00002
00003
00004
00005
00006 #ifndef GLAPPLICATION_H
00007 #define GLAPPLICATION_H
00008
00009 #include<Application.h>
00010
00011 #include<windows.h>
00012 #include<render.h>
00013
00014 #include<string>
00015
00016 class GLWindow;
00017
00027 class GLApplication : public Application
00028 {
00029 public:
00032 class Mode {
00033 public:
00035 int width;
00036
00038 int height;
00039
00041 int bits;
00042 };
00043
00045 static const GLApplication::Mode &GLApplication::getFullScreenMode() {
00046 return defaultFullscreenMode;
00047 }
00048
00050 static bool fullscreen(bool flag);
00051
00053 GLApplication();
00054
00056 void addWindow(GLWindow *w) {
00057 window = w;
00058 }
00059
00060
00061 int start();
00062
00063 protected:
00065 bool active;
00066
00068 GLWindow *window;
00069
00070 private:
00072 static bool fs;
00073
00075 static Mode defaultFullscreenMode;
00076 };
00077 #endif