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

Revision 657, 1.7 KB checked in by mattausch, 19 years ago (diff)

added ogre dependencies and patched ogre sources

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        /// @copydoc RenderSystem::createRenderTexture
39        virtual RenderTexture * createRenderTexture( const String & name, unsigned int width, unsigned int height,
40                        TextureType texType = TEX_TYPE_2D, PixelFormat internalFormat = PF_X8R8G8B8,
41                        const NameValuePairList *miscParams = 0 );
42       
43        /**
44        * Start anything special
45        */
46        void start();
47        /**
48        * Stop anything special
49        */
50        void stop();
51
52    /**
53     * Mark capabilities exposed by GLSupport
54     */
55    void initialiseCapabilities(RenderSystemCapabilities &caps);
56
57        /**
58        * Get the address of a function
59        */
60        void* getProcAddress(const String& procname);
61 
62 
63private:
64        // X display
65        Display *mDisplay;
66}
67; // class GLXGLSupport
68
69}
70; // namespace Ogre
71
72#endif // OGRE_GLXGLSupport_H
Note: See TracBrowser for help on using the repository browser.