source: OGRE/trunk/ogrenew/RenderSystems/GL/include/GLX/OgreGLXGLSupport.h @ 692

Revision 692, 1.4 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

Line 
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
13namespace Ogre {
14
15class GLXGLSupport : public GLSupport {
16public:
17        GLXGLSupport();
18        ~GLXGLSupport();
19
20        /**
21        * Add any special config values to the system.
22        * Must have a "Full Screen" value that is a bool and a "Video Mode" value
23        * that is a string in the form of wxh
24        */
25        void addConfig(void);
26        /**
27        * Make sure all the extra options are valid
28        */
29        String validateConfig(void);
30
31        /// @copydoc GLSupport::createWindow
32        RenderWindow* createWindow(bool autoCreateWindow, GLRenderSystem* renderSystem, const String& windowTitle);
33       
34        /// @copydoc RenderSystem::createRenderWindow
35        virtual RenderWindow* newWindow(const String &name, unsigned int width, unsigned int height,
36                bool fullScreen, const NameValuePairList *miscParams = 0);
37
38       
39        /**
40        * Start anything special
41        */
42        void start();
43        /**
44        * Stop anything special
45        */
46        void stop();
47
48        /**
49        * Get the address of a function
50        */
51        void* getProcAddress(const String& procname);
52 
53    virtual bool supportsPBuffers();
54    virtual GLPBuffer *createPBuffer(PixelComponentType format, size_t width, size_t height);
55private:
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.