![]() |
OGRE 2.3.3
Object-Oriented Graphics Rendering Engine
|
GL support in a GTK window. More...
#include <OgreGTKGLSupport.h>
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 () |
| virtual ConfigOptionMap & | getConfigOptions (void) |
| virtual unsigned int | getDisplayMonitorCount () const |
| Gets the number of display monitors. | |
| const String & | getGLVendor (void) const |
| Get vendor information. | |
| const DriverVersion & | getGLVersion (void) const |
| Get version information. | |
| Glib::RefPtr< const Gdk::GL::Context > | getMainContext () const |
| virtual size_t | getNumPriorityConfigOptions () const |
| virtual const char * | getPriorityConfigOption (size_t idx) const |
| void * | getProcAddress (const char *procname) const |
| Get the address of a function. | |
| const String & | getShaderCachePath (void) const |
| Get shader cache path. | |
| const String & | getShaderLibraryPath (void) const |
| Get shader library path. | |
| bool | hasMinGLVersion (int major, int minor) const |
| Check if GL Version is supported. | |
| void | initialiseExtensions (void) |
| Initialises GL extensions, must be done AFTER the GL context has been established. | |
| virtual Window * | newWindow (const String &name, uint32 width, uint32 height, bool fullScreen, const NameValuePairList *miscParams=0)=0 |
| Creates a new rendering window. | |
| 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 void | setConfigOption (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 | start () |
| Start anything special. | |
| void | stop () |
| Stop anything special. | |
| String | validateConfig () |
| Make sure all the extra options are valid. | |
Static Public Member Functions | |
| static GTKGLSupport & | getSingleton (void) |
| Override standard Singleton retrieval. | |
| static GTKGLSupport * | getSingletonPtr (void) |
| Override standard Singleton retrieval. | |
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 | ( | ) |
|
virtualinherited |
|
inlinevirtualinherited |
Gets the number of display monitors.
Reimplemented in Ogre::Win32GLSupport.
|
inlineinherited |
Get vendor information.
|
inlineinherited |
Get version information.
| Glib::RefPtr< const Gdk::GL::Context > Ogre::GTKGLSupport::getMainContext | ( | ) | const |
|
virtualinherited |
Reimplemented in Ogre::EglPBufferSupport, and Ogre::GlSwitchableSupport.
|
virtualinherited |
Reimplemented in Ogre::EglPBufferSupport, and Ogre::GlSwitchableSupport.
|
virtual |
Get the address of a function.
Implements Ogre::GL3PlusSupport.
|
inlineinherited |
Get shader cache path.
|
inlineinherited |
Get shader library path.
|
static |
Override standard Singleton retrieval.
References GTKGLSupport().
|
static |
Override standard Singleton retrieval.
References GTKGLSupport().
|
inherited |
Check if GL Version is supported.
|
virtual |
Initialises GL extensions, must be done AFTER the GL context has been established.
Reimplemented from Ogre::GL3PlusSupport.
|
pure virtualinherited |
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:
|
Android Specific
CSAA
Positive integer (usually 0, 2, 4, 8, 16)
0
Coverage sampling factor (https://www.khronos.org/registry/egl/extensions/NV/EGL_NV_coverage_sample.txt)
Android Specific
maxColourBufferSize
Positive integer (usually 16, 32)
32
Max EGL_BUFFER_SIZE
Android Specific
minColourBufferSize
Positive integer (usually 16, 32)
16
Min EGL_BUFFER_SIZE
Android Specific
maxStencilBufferSize
Positive integer (usually 0, 8)
0
EGL_STENCIL_SIZE
Android Specific
maxDepthBufferSize
Positive integer (usually 0, 16, 24)
16
EGL_DEPTH_SIZE
Android Specific
Implemented in Ogre::EGLGLSupport, Ogre::EglPBufferSupport, Ogre::GlSwitchableSupport, Ogre::GLXGLSupport, Ogre::OSXGL3PlusSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport.
| 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 ) |
|
virtualinherited |
Reimplemented in Ogre::EGLGLSupport, Ogre::EglPBufferSupport, Ogre::GlSwitchableSupport, Ogre::GLXGLSupport, and Ogre::Win32GLSupport.
|
inlineinherited |
Set shader cache path.
|
inlineinherited |
Set shader library path.
|
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.