GLWindow.h
Go to the documentation of this file.
00001 
00009 #ifndef _GL_WINDOW_
00010 #define _GL_WINDOW_
00011 
00012 
00013 #include <blort/GLWindow/GLEvent.h>
00014 
00016 namespace blortGLWindow{
00017 
00018 #ifdef WIN32
00019 LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
00020 #endif
00021 
00022 struct GLWindowImpl;
00023 
00025 class GLWindow{
00026 
00027 public:
00033   GLWindow();
00034   GLWindow(unsigned int width, unsigned int height);
00035   GLWindow(unsigned int width, unsigned int height, const char* name, bool visible = true);
00036   ~GLWindow();
00037 
00039   void Activate();
00040 
00042   void Update();
00043 
00047   bool GetEvent(Event &event);
00048 
00049 #ifdef WIN32
00050   HWND gethWnd() const {return hWnd;}
00051 #endif
00052 
00053 protected:
00054   GLWindowImpl * impl;
00055 
00056   void init(unsigned int width, unsigned int height, const char* name, bool visible = true);
00057   void quit();
00058   
00059 };
00060 
00061 } /* namespace */
00062 
00063 #endif /* _GL_WINDOW_ */


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12