00001 #ifndef GLEW_CONTENT_MANAGEMENT_H
00002 #define GLEW_CONTENT_MANAGEMENT_H
00003
00004 #include "common.h"
00005
00013 class GlewContentManagement
00014 {
00015 public:
00016 static GlewContentManagement* getInstance();
00017
00018 GLEWContext* getCurrentGlewContent();
00019
00020 void initRenderWindowContext();
00021 void initBottomWindowContext();
00022 void initRightWindowContext();
00023 void initMainWindowContext();
00024
00025 void initGlew();
00026 private:
00027 GlewContentManagement();
00028 ~GlewContentManagement();
00029 GlewContentManagement(const GlewContentManagement &);
00030 GlewContentManagement & operator=(const GlewContentManagement &);
00031
00032 static GlewContentManagement* instance;
00033 static bool initialized;
00034
00035 GLEWContext* m_GlewRenderWindowContext;
00036 GLEWContext* m_GlewBottomWindowContext;
00037 GLEWContext* m_GlewRightWindowContext;
00038 GLEWContext* m_GlewMainWindowContext;
00039
00040 int m_RenderWindowID;
00041 int m_BottomWindowID;
00042 int m_RightWindowID;
00043 int m_MainWindowID;
00044 };
00045
00046
00047 GLEWContext* glewGetContext();
00048
00049
00050 #endif