![]() |
OGRE-Next 3.0.0
Object-Oriented Graphics Rendering Engine
|
GL support in a GTK window. More...
#include <OgreGTKGLSupport.h>
Inheritance diagram for Ogre::GTKGLSupport:Public Member Functions | |
| GTKGLSupport () | |
| void | addConfig () |
| Add any special config values to the system. | |
| void | begin_context (RenderTarget *_target=0) |
| bool | checkExtension (const String &ext) const |
| Check if an extension is available. | |
| bool | checkMinGLVersion (const String &v) const |
| RenderWindow * | createWindow (bool autoCreateWindow, GL3PlusRenderSystem *renderSystem, const String &windowTitle) |
| void | end_context () |
| Glib::RefPtr< const Gdk::GL::Context > | getMainContext () const |
| void * | getProcAddress (const char *procname) const |
| Get the address of a function. | |
| void | initialiseExtensions () |
| 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) |
| void | setConfigOptions (const String &name, const String &value) |
| void | start () |
| Start anything special. | |
| void | stop () |
| Stop anything special. | |
| String | validateConfig () |
| Make sure all the extra options are valid. | |
Public Member Functions inherited from Ogre::GL3PlusSupport | |
| GL3PlusSupport () | |
| virtual | ~GL3PlusSupport () |
| virtual ConfigOptionMap & | getConfigOptions () |
| virtual unsigned int | getDisplayMonitorCount () const |
| Gets the number of display monitors. | |
| const String & | getGLVendor () const |
| Get vendor information. | |
| const DriverVersion & | getGLVersion () const |
| Get version information. | |
| virtual size_t | getNumPriorityConfigOptions () const |
| virtual const char * | getPriorityConfigOption (size_t idx) const |
| const String & | getShaderCachePath () const |
| Get shader cache path. | |
| const String & | getShaderLibraryPath () const |
| Get shader library path. | |
| bool | hasMinGLVersion (int major, int minor) const |
| Check if GL Version is supported. | |
| virtual Window * | newWindow (const String &name, uint32 width, uint32 height, bool fullScreen, const NameValuePairList *miscParams=0)=0 |
| Creates a new rendering window. | |
| virtual void | setConfigOption (const String &name, const String &value) |
| void | setShaderCachePath (String path) |
| Set shader cache path. | |
| void | setShaderLibraryPath (String path) |
| Set shader library path. | |
Public Member Functions inherited from Ogre::Singleton< GTKGLSupport > | |
| Singleton () | |
| ~Singleton () | |
Static Public Member Functions | |
| static GTKGLSupport & | getSingleton () |
| Override standard Singleton retrieval. | |
| static GTKGLSupport * | getSingletonPtr () |
| Override standard Singleton retrieval. | |
Static Public Member Functions inherited from Ogre::Singleton< GTKGLSupport > | |
| static GTKGLSupport & | getSingleton () |
| static GTKGLSupport * | getSingletonPtr () |
GL support in a GTK window.
I made this a Singleton, so that the main context can be queried by GTKWindows.
| Ogre::GTKGLSupport::GTKGLSupport | ( | ) |
Referenced by getSingleton(), and getSingletonPtr().
|
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::GL3PlusSupport.
| void Ogre::GTKGLSupport::begin_context | ( | RenderTarget * | _target = 0 | ) |
|
virtual |
Check if an extension is available.
Reimplemented from Ogre::GL3PlusSupport.
| bool Ogre::GTKGLSupport::checkMinGLVersion | ( | const String & | v | ) | const |
|
virtual |
Implements Ogre::GL3PlusSupport.
| void Ogre::GTKGLSupport::end_context | ( | ) |
| Glib::RefPtr< const Gdk::GL::Context > Ogre::GTKGLSupport::getMainContext | ( | ) | const |
|
virtual |
Get the address of a function.
Implements Ogre::GL3PlusSupport.
|
static |
Override standard Singleton retrieval.
References GTKGLSupport().
|
static |
Override standard Singleton retrieval.
References GTKGLSupport().
|
virtual |
Initialises GL extensions, must be done AFTER the GL context has been established.
Reimplemented from Ogre::GL3PlusSupport.
| 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 |
Start anything special.
Implements Ogre::GL3PlusSupport.
|
virtual |
Stop anything special.
Implements Ogre::GL3PlusSupport.
|
virtual |
Make sure all the extra options are valid.
Implements Ogre::GL3PlusSupport.