GL support in a GTK window. More...
#include <OgreGTKGLSupport.h>

Public Member Functions | |
| GTKGLSupport () | |
| GTKGLSupport () | |
| void | addConfig () |
| Add any special config values to the system. | |
| void | addConfig () |
| Add any special config values to the system. | |
| void | begin_context (RenderTarget *_target=0) |
| void | begin_context (RenderTarget *_target=0) |
| bool | checkExtension (const String &ext) const |
| Check if an extension is available. | |
| bool | checkExtension (const String &ext) const |
| Check if an extension is available. | |
| bool | checkMinGLVersion (const String &v) const |
| Compare GL version numbers. | |
| bool | checkMinGLVersion (const String &v) const |
| Compare GL version numbers. | |
| virtual GLPBuffer * | createPBuffer (PixelComponentType format, size_t width, size_t height) |
| RenderWindow * | createWindow (bool autoCreateWindow, GL3PlusRenderSystem *renderSystem, const String &windowTitle) |
| RenderWindow * | createWindow (bool autoCreateWindow, GLRenderSystem *renderSystem, const String &windowTitle) |
| void | end_context () |
| void | end_context () |
| virtual ConfigOptionMap & | getConfigOptions (void) |
| virtual ConfigOptionMap & | getConfigOptions (void) |
| virtual unsigned int | getDisplayMonitorCount () const |
| virtual unsigned int | getDisplayMonitorCount () const |
| const String & | getGLVendor (void) const |
| Get vendor information. | |
| const String & | getGLVendor (void) const |
| Get vendor information. | |
| const String & | getGLVersion (void) const |
| Get version information. | |
| const String & | getGLVersion (void) const |
| Get version information. | |
| Glib::RefPtr< const Gdk::GL::Context > | getMainContext () const |
| Glib::RefPtr< const Gdk::GL::Context > | getMainContext () const |
| void * | getProcAddress (const String &procname) |
| Get the address of a function. | |
| void * | getProcAddress (const String &procname) |
| Get the address of a function. | |
| const String & | getShaderCachePath (void) const |
| Get shader cache path. | |
| const String & | getShaderLibraryPath (void) const |
| Get shader library path. | |
| GLStateCacheManager * | getStateCacheManager () const |
| void | initialiseExtensions (void) |
| Initialises GL extensions, must be done AFTER the GL context has been established. | |
| void | initialiseExtensions (void) |
| Initialises GL extensions, must be done AFTER the GL context has been established. | |
| 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) |
| 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) |
| virtual RenderWindow * | newWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0)=0 |
| virtual RenderWindow * | newWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0)=0 |
| virtual void | setConfigOption (const String &name, const String &value) |
| virtual void | setConfigOption (const String &name, const String &value) |
| void | setConfigOptions (const String &name, const String &value) |
| void | setConfigOptions (const String &name, const String &value) |
| void | setShaderCachePath (String path) |
| Set shader cache path. | |
| void | setShaderLibraryPath (String path) |
| Set shader library path. | |
| void | setStateCacheManager (GLStateCacheManager *stateCacheMgr) |
| void | start () |
| Start anything special. | |
| void | start () |
| Start anything special. | |
| void | stop () |
| Stop anything special. | |
| void | stop () |
| Stop anything special. | |
| virtual bool | supportsPBuffers () |
| String | validateConfig () |
| Make sure all the extra options are valid. | |
| String | validateConfig () |
| Make sure all the extra options are valid. | |
Static Public Member Functions | |
| static GTKGLSupport & | getSingleton (void) |
| Override standard Singleton retrieval. | |
| static GTKGLSupport & | getSingleton (void) |
| Override standard Singleton retrieval. | |
| static GTKGLSupport * | getSingletonPtr (void) |
| Override standard Singleton retrieval. | |
| static GTKGLSupport * | getSingletonPtr (void) |
| Override standard Singleton retrieval. | |
Protected Attributes | |
| set< String >::type | extensionList |
| set< String >::type | extensionList |
| ConfigOptionMap | mOptions |
| ConfigOptionMap | mOptions |
Static Protected Attributes | |
| static GTKGLSupport * | msSingleton |
Private Attributes | |
| int | _context_ref |
| Gtk::Main | _kit |
| Glib::RefPtr< Gdk::GL::Context > | _main_context |
| Glib::RefPtr< Gdk::GL::Window > | _main_window |
GL support in a GTK window.
I made this a Singleton, so that the main context can be queried by GTKWindows.
Definition at line 47 of file include/gtk/OgreGTKGLSupport.h.
| void Ogre::GTKGLSupport::addConfig | ( | ) | [virtual] |
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.
| void Ogre::GTKGLSupport::addConfig | ( | ) | [virtual] |
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.
| void Ogre::GTKGLSupport::begin_context | ( | RenderTarget * | _target = 0 | ) |
| void Ogre::GTKGLSupport::begin_context | ( | RenderTarget * | _target = 0 | ) |
| bool Ogre::GTKGLSupport::checkExtension | ( | const String & | ext | ) | const [virtual] |
Check if an extension is available.
Reimplemented from Ogre::GLSupport.
| bool Ogre::GTKGLSupport::checkExtension | ( | const String & | ext | ) | const [virtual] |
Check if an extension is available.
Reimplemented from Ogre::GLSupport.
| bool Ogre::GTKGLSupport::checkMinGLVersion | ( | const String & | v | ) | const |
Compare GL version numbers.
Reimplemented from Ogre::GLSupport.
| bool Ogre::GTKGLSupport::checkMinGLVersion | ( | const String & | v | ) | const |
Compare GL version numbers.
Reimplemented from Ogre::GLSupport.
| virtual GLPBuffer* Ogre::GLSupport::createPBuffer | ( | PixelComponentType | format, |
| size_t | width, | ||
| size_t | height | ||
| ) | [virtual, inherited] |
Reimplemented in Ogre::Win32GLSupport, and Ogre::GLXGLSupport.
| RenderWindow* Ogre::GTKGLSupport::createWindow | ( | bool | autoCreateWindow, |
| GLRenderSystem * | renderSystem, | ||
| const String & | windowTitle | ||
| ) | [virtual] |
Implements Ogre::GLSupport.
| RenderWindow* Ogre::GTKGLSupport::createWindow | ( | bool | autoCreateWindow, |
| GL3PlusRenderSystem * | renderSystem, | ||
| const String & | windowTitle | ||
| ) | [virtual] |
Implements Ogre::GL3PlusSupport.
| void Ogre::GTKGLSupport::end_context | ( | ) |
| void Ogre::GTKGLSupport::end_context | ( | ) |
| virtual ConfigOptionMap& Ogre::GL3PlusSupport::getConfigOptions | ( | void | ) | [virtual, inherited] |
| virtual ConfigOptionMap& Ogre::GLSupport::getConfigOptions | ( | void | ) | [virtual, inherited] |
| virtual unsigned int Ogre::GLSupport::getDisplayMonitorCount | ( | ) | const [virtual, inherited] |
Gets the number of display monitors.
Reimplemented in Ogre::Win32GLSupport, and Ogre::Win32GLSupport.
Definition at line 130 of file OgreGLSupport.h.
| virtual unsigned int Ogre::GL3PlusSupport::getDisplayMonitorCount | ( | ) | const [virtual, inherited] |
Gets the number of display monitors.
Reimplemented in Ogre::Win32GLSupport, and Ogre::Win32GLSupport.
Definition at line 139 of file OgreGL3PlusSupport.h.
| const String& Ogre::GL3PlusSupport::getGLVendor | ( | void | ) | const [inherited] |
Get vendor information.
Definition at line 73 of file OgreGL3PlusSupport.h.
| const String& Ogre::GLSupport::getGLVendor | ( | void | ) | const [inherited] |
Get vendor information.
Definition at line 97 of file OgreGLSupport.h.
| const String& Ogre::GL3PlusSupport::getGLVersion | ( | void | ) | const [inherited] |
Get version information.
Definition at line 81 of file OgreGL3PlusSupport.h.
| const String& Ogre::GLSupport::getGLVersion | ( | void | ) | const [inherited] |
Get version information.
Definition at line 105 of file OgreGLSupport.h.
| Glib::RefPtr<const Gdk::GL::Context> Ogre::GTKGLSupport::getMainContext | ( | ) | const |
| Glib::RefPtr<const Gdk::GL::Context> Ogre::GTKGLSupport::getMainContext | ( | ) | const |
| void* Ogre::GTKGLSupport::getProcAddress | ( | const String & | procname | ) | [virtual] |
Get the address of a function.
Implements Ogre::GLSupport.
| void* Ogre::GTKGLSupport::getProcAddress | ( | const String & | procname | ) | [virtual] |
Get the address of a function.
Implements Ogre::GLSupport.
| const String& Ogre::GL3PlusSupport::getShaderCachePath | ( | void | ) | const [inherited] |
Get shader cache path.
Definition at line 89 of file OgreGL3PlusSupport.h.
| const String& Ogre::GL3PlusSupport::getShaderLibraryPath | ( | void | ) | const [inherited] |
Get shader library path.
Definition at line 97 of file OgreGL3PlusSupport.h.
| static GTKGLSupport& Ogre::GTKGLSupport::getSingleton | ( | void | ) | [static] |
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< GTKGLSupport >.
| static GTKGLSupport& Ogre::GTKGLSupport::getSingleton | ( | void | ) | [static] |
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< GTKGLSupport >.
| static GTKGLSupport* Ogre::GTKGLSupport::getSingletonPtr | ( | void | ) | [static] |
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< GTKGLSupport >.
| static GTKGLSupport* Ogre::GTKGLSupport::getSingletonPtr | ( | void | ) | [static] |
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< GTKGLSupport >.
| GLStateCacheManager* Ogre::GLSupport::getStateCacheManager | ( | ) | const [inherited] |
Definition at line 75 of file OgreGLSupport.h.
| void Ogre::GTKGLSupport::initialiseExtensions | ( | void | ) | [virtual] |
Initialises GL extensions, must be done AFTER the GL context has been established.
Reimplemented from Ogre::GLSupport.
| void Ogre::GTKGLSupport::initialiseExtensions | ( | void | ) | [virtual] |
Initialises GL extensions, must be done AFTER the GL context has been established.
Reimplemented from Ogre::GLSupport.
| RenderWindow* Ogre::GTKGLSupport::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 | ||
| ) |
| RenderWindow* Ogre::GTKGLSupport::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 | ||
| ) |
| virtual RenderWindow* Ogre::GL3PlusSupport::newWindow | ( | const String & | name, |
| unsigned int | width, | ||
| unsigned int | height, | ||
| bool | fullScreen, | ||
| const NameValuePairList * | miscParams = 0 |
||
| ) | [pure virtual, inherited] |
Creates a new rendering window.
| name | The name of the window. Used in other methods later like setRenderTarget and getRenderTarget. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width | The width of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| height | The height of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fullScreen | Specify true to make the window full screen without borders, title bar or menu bar. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| miscParams | A NameValuePairList describing the other parameters for the new rendering window. Options are case sensitive. Unrecognised parameters will be ignored silently. These values might be platform dependent, but these are present for all platforms unless indicated otherwise:
|
Implemented in Ogre::OSXGL3PlusSupport, Ogre::Win32GLSupport, Ogre::Win32GLSupport, Ogre::GLXGLSupport, Ogre::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::SDLGLSupport.
| virtual RenderWindow* Ogre::GLSupport::newWindow | ( | const String & | name, |
| unsigned int | width, | ||
| unsigned int | height, | ||
| bool | fullScreen, | ||
| const NameValuePairList * | miscParams = 0 |
||
| ) | [pure virtual, inherited] |
Creates a new rendering window.
| name | The name of the window. Used in other methods later like setRenderTarget and getRenderTarget. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width | The width of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| height | The height of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fullScreen | Specify true to make the window full screen without borders, title bar or menu bar. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| miscParams | A NameValuePairList describing the other parameters for the new rendering window. Options are case sensitive. Unrecognised parameters will be ignored silently. These values might be platform dependent, but these are present for all platforms unless indicated otherwise:
|
Implemented in Ogre::OSXGLSupport, Ogre::Win32GLSupport, Ogre::Win32GLSupport, Ogre::GLXGLSupport, Ogre::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::SDLGLSupport.
| virtual void Ogre::GL3PlusSupport::setConfigOption | ( | const String & | name, |
| const String & | value | ||
| ) | [virtual, inherited] |
Reimplemented in Ogre::GLXGLSupport, Ogre::Win32GLSupport, Ogre::Win32GLSupport, and Ogre::GLXGLSupport.
| virtual void Ogre::GLSupport::setConfigOption | ( | const String & | name, |
| const String & | value | ||
| ) | [virtual, inherited] |
Reimplemented in Ogre::GLXGLSupport, Ogre::Win32GLSupport, Ogre::Win32GLSupport, and Ogre::GLXGLSupport.
| void Ogre::GTKGLSupport::setConfigOptions | ( | const String & | name, |
| const String & | value | ||
| ) |
| void Ogre::GTKGLSupport::setConfigOptions | ( | const String & | name, |
| const String & | value | ||
| ) |
| void Ogre::GL3PlusSupport::setShaderCachePath | ( | String | path | ) | [inherited] |
Set shader cache path.
Definition at line 105 of file OgreGL3PlusSupport.h.
| void Ogre::GL3PlusSupport::setShaderLibraryPath | ( | String | path | ) | [inherited] |
Set shader library path.
Definition at line 113 of file OgreGL3PlusSupport.h.
| void Ogre::GLSupport::setStateCacheManager | ( | GLStateCacheManager * | stateCacheMgr | ) | [inherited] |
Definition at line 80 of file OgreGLSupport.h.
| void Ogre::GTKGLSupport::start | ( | ) | [virtual] |
Start anything special.
Implements Ogre::GLSupport.
| void Ogre::GTKGLSupport::start | ( | ) | [virtual] |
Start anything special.
Implements Ogre::GLSupport.
| void Ogre::GTKGLSupport::stop | ( | ) | [virtual] |
Stop anything special.
Implements Ogre::GLSupport.
| void Ogre::GTKGLSupport::stop | ( | ) | [virtual] |
Stop anything special.
Implements Ogre::GLSupport.
| virtual bool Ogre::GLSupport::supportsPBuffers | ( | ) | [virtual, inherited] |
Reimplemented in Ogre::Win32GLSupport, and Ogre::OSXGLSupport.
| String Ogre::GTKGLSupport::validateConfig | ( | ) | [virtual] |
Make sure all the extra options are valid.
Implements Ogre::GLSupport.
| String Ogre::GTKGLSupport::validateConfig | ( | ) | [virtual] |
Make sure all the extra options are valid.
Implements Ogre::GLSupport.
int Ogre::GTKGLSupport::_context_ref [private] |
Definition at line 104 of file include/gtk/OgreGTKGLSupport.h.
Gtk::Main Ogre::GTKGLSupport::_kit [private] |
Definition at line 105 of file include/gtk/OgreGTKGLSupport.h.
Glib::RefPtr< Gdk::GL::Context > Ogre::GTKGLSupport::_main_context [private] |
Definition at line 108 of file include/gtk/OgreGTKGLSupport.h.
Glib::RefPtr< Gdk::GL::Window > Ogre::GTKGLSupport::_main_window [private] |
Definition at line 109 of file include/gtk/OgreGTKGLSupport.h.
set<String>::type Ogre::GLSupport::extensionList [protected, inherited] |
Definition at line 140 of file OgreGLSupport.h.
set<String>::type Ogre::GL3PlusSupport::extensionList [protected, inherited] |
Definition at line 164 of file OgreGL3PlusSupport.h.
ConfigOptionMap Ogre::GLSupport::mOptions [protected, inherited] |
Definition at line 137 of file OgreGLSupport.h.
ConfigOptionMap Ogre::GL3PlusSupport::mOptions [protected, inherited] |
Definition at line 161 of file OgreGL3PlusSupport.h.
GTKGLSupport * Ogre::Singleton< GTKGLSupport >::msSingleton [static, protected, inherited] |
Definition at line 75 of file OgreSingleton.h.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jul 27 2020 13:41:15