00001 #ifndef OGRE_SDLGLSUPPORT_H 00002 #define OGRE_SDLGLSUPPORT_H 00003 00004 #include "OgreSDLPrerequisites.h" 00005 #include "OgreGLSupport.h" 00006 00007 #include <SDL.h> 00008 00009 namespace Ogre 00010 { 00011 00012 class SDLGLSupport : public GLSupport 00013 { 00014 public: 00015 SDLGLSupport(); 00016 ~SDLGLSupport(); 00017 00023 void addConfig(void); 00027 String validateConfig(void); 00028 00029 virtual RenderWindow* createWindow(bool autoCreateWindow, GLRenderSystem* renderSystem, const String& windowTitle); 00030 00034 virtual RenderWindow* newWindow(const String& name, unsigned int width, unsigned int height, unsigned int colourDepth, 00035 bool fullScreen, int left, int top, bool depthBuffer, RenderWindow* parentWindowHandle, 00036 bool vsync); 00037 00041 void start(); 00045 void stop(); 00046 00050 void* getProcAddress(const String& procname); 00051 private: 00052 // Allowed video modes 00053 SDL_Rect** mVideoModes; 00054 00055 00056 }; // class SDLGLSupport 00057 00058 }; // namespace Ogre 00059 00060 #endif // OGRE_SDLGLSUPPORT_H
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:22:46 2004