Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OpenGLApp.h

Go to the documentation of this file.
00001 
00007 #ifndef _OPENGLAPP_H_
00008 #define _OPENGLAPP_H_
00009 
00010 #include "../Application.h"
00011 #include "../../Graphics/OpenGL/OpenGLRenderer.h"
00012 
00013 class OpenGLApp : public Application {
00014         public:
00015                 bool createWindow(HINSTANCE hInstance);
00016                 bool changeScreenResolution(unsigned int width, unsigned int height, unsigned int bitsPerPixel);
00017                 void flush() { glFlush (); SwapBuffers(hDC); };
00018                 void destroyWindow();
00019                 void setViewport(unsigned int width, unsigned int height);
00020         
00021         public:
00022                 HDC             hDC;
00023 
00024         protected:
00025                 HGLRC   hRC;
00026 };
00027 
00028 #endif

Generated on Sun Jun 5 15:47:04 2005 for Defacto by  doxygen 1.4.3