Rev | Line | |
---|
[1] | 1 | #ifndef OGRE_GLXGLSupport_H |
---|
| 2 | #define OGRE_GLXGLSupport_H |
---|
| 3 | |
---|
| 4 | #include "OgreGLSupport.h" |
---|
| 5 | |
---|
| 6 | #include <X11/Xlib.h> |
---|
| 7 | #include <X11/keysym.h> |
---|
| 8 | #include <X11/extensions/xf86vmode.h> |
---|
| 9 | #include <GL/gl.h> |
---|
| 10 | #include <GL/glu.h> |
---|
| 11 | #include <GL/glx.h> |
---|
| 12 | |
---|
| 13 | namespace Ogre { |
---|
| 14 | |
---|
| 15 | class _OgrePrivate GLXGLSupport : public GLSupport |
---|
| 16 | { |
---|
| 17 | public: |
---|
| 18 | GLXGLSupport(); |
---|
| 19 | ~GLXGLSupport(); |
---|
| 20 | |
---|
| 21 | /** |
---|
| 22 | * Add any special config values to the system. |
---|
| 23 | * Must have a "Full Screen" value that is a bool and a "Video Mode" value |
---|
| 24 | * that is a string in the form of wxh |
---|
| 25 | */ |
---|
| 26 | void addConfig(void); |
---|
| 27 | /** |
---|
| 28 | * Make sure all the extra options are valid |
---|
| 29 | */ |
---|
| 30 | String validateConfig(void); |
---|
| 31 | |
---|
| 32 | /// @copydoc GLSupport::createWindow |
---|
| 33 | RenderWindow* createWindow(bool autoCreateWindow, GLRenderSystem* renderSystem, const String& windowTitle); |
---|
| 34 | |
---|
| 35 | /// @copydoc RenderSystem::createRenderWindow |
---|
| 36 | virtual RenderWindow* newWindow(const String &name, unsigned int width, unsigned int height, |
---|
| 37 | bool fullScreen, const NameValuePairList *miscParams = 0); |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | /** |
---|
| 41 | * Start anything special |
---|
| 42 | */ |
---|
| 43 | void start(); |
---|
| 44 | /** |
---|
| 45 | * Stop anything special |
---|
| 46 | */ |
---|
| 47 | void stop(); |
---|
| 48 | |
---|
| 49 | /** |
---|
| 50 | * Get the address of a function |
---|
| 51 | */ |
---|
| 52 | void* getProcAddress(const String& procname); |
---|
| 53 | |
---|
| 54 | virtual GLPBuffer *createPBuffer(PixelComponentType format, size_t width, size_t height); |
---|
| 55 | private: |
---|
| 56 | // X display |
---|
| 57 | Display *mDisplay; |
---|
| 58 | } |
---|
| 59 | ; // class GLXGLSupport |
---|
| 60 | |
---|
| 61 | } |
---|
| 62 | ; // namespace Ogre |
---|
| 63 | |
---|
| 64 | #endif // OGRE_GLXGLSupport_H |
---|
Note: See
TracBrowser
for help on using the repository browser.