#include <OgreGTKGLSupport.h>
Inheritance diagram for Ogre::GTKGLSupport:
Public Member Functions | |||||||||||||
GTKGLSupport () | |||||||||||||
void | addConfig () | ||||||||||||
Add any special config values to the system. | |||||||||||||
void | setConfigOptions (const String &name, const String &value) | ||||||||||||
String | validateConfig () | ||||||||||||
Make sure all the extra options are valid. | |||||||||||||
RenderWindow * | createWindow (bool autoCreateWindow, GLRenderSystem *renderSystem, const String &windowTitle) | ||||||||||||
RenderWindow * | newWindow (const String &name, unsigned int width, unsigned int height, unsigned int colourDepth, bool fullScreen, int left, int top, bool depthBuffer, RenderWindow *parentWindowHandle, bool vsync) | ||||||||||||
void | start () | ||||||||||||
Start anything special. | |||||||||||||
void | stop () | ||||||||||||
Stop anything special. | |||||||||||||
void | begin_context (RenderTarget *_target=0) | ||||||||||||
void | end_context () | ||||||||||||
void | initialiseExtensions (void) | ||||||||||||
Intialises GL extensions, must be done AFTER the GL context has been established. | |||||||||||||
bool | checkMinGLVersion (const String &v) const | ||||||||||||
compare GL version numbers | |||||||||||||
bool | checkExtension (const String &ext) const | ||||||||||||
Check if an extension is available. | |||||||||||||
void * | getProcAddress (const String &procname) | ||||||||||||
Get the address of a function. | |||||||||||||
Glib::RefPtr< const Gdk::GL::Context > | getMainContext () const | ||||||||||||
virtual void | setConfigOption (const String &name, const String &value) | ||||||||||||
virtual ConfigOptionMap & | getConfigOptions (void) | ||||||||||||
virtual RenderWindow * | newWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0)=0 | ||||||||||||
Key: "colourDepth" Description: Colour depth of the resulting rendering window; only applies if fullScreen is set. Values: 16 or 32 Default: desktop depth Notes: [W32 specific] Key: "left" Description: screen x coordinate from left Values: positive integers Default: 'center window on screen' Notes: Ignored in case of full screen Key: "top" Description: screen y coordinate from top Values: positive integers Default: 'center window on screen' Notes: Ignored in case of full screen Key: "depthBuffer" [DX9 specific] Description: Use depth buffer Values: false or true Default: true Key: "externalWindowHandle" [API specific] Description: External window handle, for embedding the OGRE context Values: positive integer for W32 (HWND handle) posint:posint:posint for GLX (display:screen:windowHandle) Default: 0 (None) Key: "parentWindowHandle" [API specific] Description: Parent window handle, for embedding the OGRE context Values: positive integer for W32 (HWND handle) posint:posint:posint for GLX (display:screen:windowHandle) Default: 0 (None) Key: "FSAA" Description: Full screen antialiasing factor Values: 0,2,4,6,... Default: 0 Key: "displayFrequency" Description: Display frequency rate, for fullscreen mode Values: 60...? Default: Desktop vsync rate Key: "vsync" Description: Synchronize buffer swaps to vsync Values: true, false Default: 0 Key: "border" Description: The type of window border (in windowed mode) Values: none, fixed, resize Default: resize
Key: "outerDimensions" Description: Whether the width/height is expressed as the size of the outer window, rather than the content area Values: true, false Default: false | |||||||||||||
virtual RenderTexture * | createRenderTexture (const String &name, unsigned int width, unsigned int height, TextureType texType=TEX_TYPE_2D, PixelFormat internalFormat=PF_X8R8G8B8, const NameValuePairList *miscParams=0) | ||||||||||||
Key: "depth" Description: Depth in case of render-to-texture TEX_3D Values: positive integers
| |||||||||||||
const String & | getGLVendor (void) const | ||||||||||||
get vendor information | |||||||||||||
const String & | getGLVersion (void) const | ||||||||||||
get version information | |||||||||||||
virtual void | initialiseCapabilities (RenderSystemCapabilities &caps) | ||||||||||||
GLsupport specific capabilities (hardware render-to-texture, being one of them) are marked in caps. | |||||||||||||
Static Public Member Functions | |||||||||||||
GTKGLSupport & | getSingleton (void) | ||||||||||||
Override standard Singleton retrieval. | |||||||||||||
GTKGLSupport * | getSingletonPtr (void) | ||||||||||||
Override standard Singleton retrieval. | |||||||||||||
Protected Attributes | |||||||||||||
ConfigOptionMap | mOptions | ||||||||||||
std::set< String > | extensionList | ||||||||||||
Static Protected Attributes | |||||||||||||
GTKGLSupport * | ms_Singleton | ||||||||||||
Private Attributes | |||||||||||||
int | _context_ref | ||||||||||||
Gtk::Main | _kit | ||||||||||||
Glib::RefPtr< Gdk::GL::Context > | _main_context | ||||||||||||
Glib::RefPtr< Gdk::GL::Window > | _main_window |
I made this a Singleton, so that the main context can be queried by GTKWindows.
Definition at line 44 of file OgreGTKGLSupport.h.
|
|
|
Add any special config values to the system. Must have a "Full Screen" value that is a bool and a "Video Mode" value that is a string in the form of wxh Implements Ogre::GLSupport. |
|
|
|
Check if an extension is available.
Reimplemented from Ogre::GLSupport. |
|
compare GL version numbers
Reimplemented from Ogre::GLSupport. |
|
Key: "depth" Description: Depth in case of render-to-texture TEX_3D Values: positive integers
Reimplemented in Ogre::GLXGLSupport, and Ogre::Win32GLSupport. |
|
Implements Ogre::GLSupport. |
|
|
|
|
|
get vendor information
Definition at line 59 of file OgreGLSupport.h. References Ogre::GLSupport::mVendor, and Ogre::String. |
|
get version information
Definition at line 67 of file OgreGLSupport.h. References Ogre::String. |
|
|
|
Get the address of a function.
Implements Ogre::GLSupport. |
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< GTKGLSupport >. |
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< GTKGLSupport >. |
|
GLsupport specific capabilities (hardware render-to-texture, being one of them) are marked in caps.
Reimplemented in Ogre::GLXGLSupport, and Ogre::Win32GLSupport. |
|
Intialises GL extensions, must be done AFTER the GL context has been established.
Reimplemented from Ogre::GLSupport. |
|
Key: "colourDepth" Description: Colour depth of the resulting rendering window; only applies if fullScreen is set. Values: 16 or 32 Default: desktop depth Notes: [W32 specific] Key: "left" Description: screen x coordinate from left Values: positive integers Default: 'center window on screen' Notes: Ignored in case of full screen Key: "top" Description: screen y coordinate from top Values: positive integers Default: 'center window on screen' Notes: Ignored in case of full screen Key: "depthBuffer" [DX9 specific] Description: Use depth buffer Values: false or true Default: true Key: "externalWindowHandle" [API specific] Description: External window handle, for embedding the OGRE context Values: positive integer for W32 (HWND handle) posint:posint:posint for GLX (display:screen:windowHandle) Default: 0 (None) Key: "parentWindowHandle" [API specific] Description: Parent window handle, for embedding the OGRE context Values: positive integer for W32 (HWND handle) posint:posint:posint for GLX (display:screen:windowHandle) Default: 0 (None) Key: "FSAA" Description: Full screen antialiasing factor Values: 0,2,4,6,... Default: 0 Key: "displayFrequency" Description: Display frequency rate, for fullscreen mode Values: 60...? Default: Desktop vsync rate Key: "vsync" Description: Synchronize buffer swaps to vsync Values: true, false Default: 0 Key: "border" Description: The type of window border (in windowed mode) Values: none, fixed, resize Default: resize Key: "outerDimensions" Description: Whether the width/height is expressed as the size of the outer window, rather than the content area Values: true, false Default: false
Implemented in Ogre::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport. |
|
|
|
Reimplemented in Ogre::Win32GLSupport. |
|
|
|
Start anything special.
Implements Ogre::GLSupport. |
|
Stop anything special.
Implements Ogre::GLSupport. |
|
Make sure all the extra options are valid.
Implements Ogre::GLSupport. |
|
Definition at line 101 of file OgreGTKGLSupport.h. |
|
Definition at line 102 of file OgreGTKGLSupport.h. |
|
Definition at line 105 of file OgreGTKGLSupport.h. |
|
Definition at line 106 of file OgreGTKGLSupport.h. |
|
Definition at line 101 of file OgreGLSupport.h. |
|
Definition at line 98 of file OgreGLSupport.h. |
|
Definition at line 54 of file OgreSingleton.h. |
Copyright © 2000-2005 by The OGRE Team
Last modified Sun Sep 25 17:45:40 2005