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 
00038     
00042     void start();
00046     void stop();
00047 
00051     void* getProcAddress(const String& procname);
00052  
00053     virtual bool supportsPBuffers();
00054     virtual GLPBuffer *createPBuffer(PixelComponentType format, size_t width, size_t height);
00055 private:
00056     // X display
00057     Display *mDisplay;
00058 }
00059 ; // class GLXGLSupport
00060 
00061 }
00062 ; // namespace Ogre
00063 
00064 #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 Mar 12 14:37:41 2006