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

OgreGLXGLSupport.h

Go to the documentation of this file.
00001 #ifndef OGRE_GLXGLSupport_H
00002 #define OGRE_GLXGLSupport_H
00003 
00004 #include "OgreGLSupport.h"
00005 
00006 #include <X11/Xlib.h>
00007 #include <X11/keysym.h>
00008 #include <X11/extensions/xf86vmode.h>
00009 #include <GL/gl.h>
00010 #include <GL/glu.h>
00011 #include <GL/glx.h>
00012 
00013 namespace Ogre {
00014 
00015 class GLXGLSupport : public GLSupport {
00016 public:
00017     GLXGLSupport();
00018     ~GLXGLSupport();
00019 
00025     void addConfig(void);
00029     String validateConfig(void);
00030 
00032     RenderWindow* createWindow(bool autoCreateWindow, GLRenderSystem* renderSystem, const String& windowTitle);
00033     
00035     virtual RenderWindow* newWindow(const String &name, unsigned int width, unsigned int height, 
00036         bool fullScreen, const NameValuePairList *miscParams = 0);
00037 
00039     virtual RenderTexture * createRenderTexture( const String & name, unsigned int width, unsigned int height,
00040             TextureType texType = TEX_TYPE_2D, PixelFormat internalFormat = PF_X8R8G8B8, 
00041             const NameValuePairList *miscParams = 0 ); 
00042     
00046     void start();
00050     void stop();
00051 
00055     void initialiseCapabilities(RenderSystemCapabilities &caps);
00056 
00060     void* getProcAddress(const String& procname);
00061  
00062  
00063 private:
00064     // X display
00065     Display *mDisplay;
00066 }
00067 ; // class GLXGLSupport
00068 
00069 }
00070 ; // namespace Ogre
00071 
00072 #endif // OGRE_GLXGLSupport_H

Copyright © 2000-2005 by The OGRE Team
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Feb 12 12:59:45 2006