OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
GL support in a GTK window. More...
#include <OgreGTKGLSupport.h>
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 | ( | ) |
|
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 | ) |
Check if an extension is available.
Reimplemented from Ogre::GL3PlusSupport.
|
virtual |
Implements Ogre::GL3PlusSupport.
void Ogre::GTKGLSupport::end_context | ( | ) |
|
virtualinherited |
Gets the number of display monitors.
Reimplemented in Ogre::Win32GLSupport.
Get vendor information.
|
inlineinherited |
Get version information.
Glib::RefPtr< const Gdk::GL::Context > Ogre::GTKGLSupport::getMainContext | ( | ) | const |
Get the address of a function.
Implements Ogre::GL3PlusSupport.
Get shader cache path.
Get shader library path.
|
static |
Override standard Singleton retrieval.
|
static |
Override standard Singleton retrieval.
Check if GL Version is supported.
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:
|
Implemented in 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::GLXGLSupport, and Ogre::Win32GLSupport.
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.