Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OgreWin32GLSupport.h

Go to the documentation of this file.
00001 #ifndef __OgreWin32GLSupport_H__
00002 #define __OgreWin32GLSupport_H__
00003 
00004 #include "OgreWin32Prerequisites.h"
00005 #include "OgreGLSupport.h"
00006 #include "OgreGLRenderSystem.h"
00007 
00008 using std::vector;
00009 
00010 namespace Ogre
00011 {
00012     
00013     class Win32GLSupport : public GLSupport
00014     {
00015     public:
00016         Win32GLSupport();
00022         void addConfig();
00023 
00024         void setConfigOption(const String &name, const String &value);
00025 
00029         String validateConfig();
00030 
00031         virtual RenderWindow* createWindow(bool autoCreateWindow, GLRenderSystem* renderSystem, const String& windowTitle = "OGRE Render Window");
00032 
00036         virtual RenderWindow* newWindow(const String& name, unsigned int width, unsigned int height, unsigned int colourDepth,
00037             bool fullScreen, int left, int top, bool depthBuffer, RenderWindow* parentWindowHandle,
00038             bool vsync);
00039 
00043         void start();
00047         void stop();
00048 
00052         void* getProcAddress(const String& procname);
00053 
00054         void setExternalWindowHandle(void* hwnd){
00055             mExternalWindowHandle=(HWND) hwnd;
00056         };
00057 
00058         virtual void resizeReposition(void*);
00059     private:
00060         // Allowed video modes
00061         vector<DEVMODE> mDevModes;
00062 
00063         void refreshConfig();
00064 
00065         HWND mExternalWindowHandle;
00066     };
00067 
00068 }
00069 
00070 #endif

Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:48:51 2004