00001 #ifndef OGRE_SDLGLSUPPORT_H 00002 #define OGRE_SDLGLSUPPORT_H 00003 00004 #include "OgreSDLPrerequisites.h" 00005 #include "OgreGLSupport.h" 00006 00007 namespace Ogre 00008 { 00009 00010 class SDLGLSupport : public GLSupport 00011 { 00012 public: 00013 SDLGLSupport(); 00014 ~SDLGLSupport(); 00015 00021 void addConfig(void); 00025 String validateConfig(void); 00026 00027 virtual RenderWindow* createWindow(bool autoCreateWindow, GLRenderSystem* renderSystem, const String& windowTitle); 00028 00032 virtual RenderWindow* newWindow(const String& name, unsigned int width, unsigned int height, unsigned int colourDepth, 00033 bool fullScreen, int left, int top, bool depthBuffer, RenderWindow* parentWindowHandle, 00034 bool vsync); 00035 00039 void start(); 00043 void stop(); 00044 00048 void* getProcAddress(const String& procname); 00049 private: 00050 // Allowed video modes 00051 SDL_Rect** mVideoModes; 00052 00053 00054 }; // class SDLGLSupport 00055 00056 }; // namespace Ogre 00057 00058 #endif // OGRE_SDLGLSUPPORT_H
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:48:45 2004