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. More... | |
void | addConfig () |
Add any special config values to the system. More... | |
void | begin_context (RenderTarget *_target=0) |
void | begin_context (RenderTarget *_target=0) |
bool | checkExtension (const String &ext) const |
Check if an extension is available. More... | |
bool | checkExtension (const String &ext) const |
Check if an extension is available. More... | |
bool | checkMinGLVersion (const String &v) const |
bool | checkMinGLVersion (const String &v) const |
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 |
Gets the number of display monitors. More... | |
virtual unsigned int | getDisplayMonitorCount () const |
Gets the number of display monitors. More... | |
const String & | getGLVendor (void) const |
Get vendor information. More... | |
const String & | getGLVendor (void) const |
Get vendor information. More... | |
const String & | getGLVersion (void) const |
Get version information. More... | |
const String & | getGLVersion (void) const |
Get version information. More... | |
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. More... | |
void * | getProcAddress (const String &procname) |
Get the address of a function. More... | |
const String & | getShaderCachePath (void) const |
Get shader cache path. More... | |
const String & | getShaderLibraryPath (void) const |
Get shader library path. More... | |
GLStateCacheManager * | getStateCacheManager () const |
void | initialiseExtensions (void) |
Initialises GL extensions, must be done AFTER the GL context has been established. More... | |
void | initialiseExtensions (void) |
Initialises GL extensions, must be done AFTER the GL context has been established. More... | |
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 |
Creates a new rendering window. More... | |
virtual RenderWindow * | newWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0)=0 |
Creates a new rendering window. More... | |
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. More... | |
void | setShaderLibraryPath (String path) |
Set shader library path. More... | |
void | setStateCacheManager (GLStateCacheManager *stateCacheMgr) |
void | start () |
Start anything special. More... | |
void | start () |
Start anything special. More... | |
void | stop () |
Stop anything special. More... | |
void | stop () |
Stop anything special. More... | |
virtual bool | supportsPBuffers () |
String | validateConfig () |
Make sure all the extra options are valid. More... | |
String | validateConfig () |
Make sure all the extra options are valid. More... | |
Static Public Member Functions | |
static GTKGLSupport & | getSingleton (void) |
Override standard Singleton retrieval. More... | |
static GTKGLSupport & | getSingleton (void) |
Override standard Singleton retrieval. More... | |
static GTKGLSupport * | getSingletonPtr (void) |
Override standard Singleton retrieval. More... | |
static GTKGLSupport * | getSingletonPtr (void) |
Override standard Singleton retrieval. More... | |
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.
Ogre::GTKGLSupport::GTKGLSupport | ( | ) |
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::GLSupport.
|
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 | ) |
|
virtual |
Check if an extension is available.
Reimplemented from Ogre::GLSupport.
|
virtual |
Check if an extension is available.
Reimplemented from Ogre::GLSupport.
bool Ogre::GTKGLSupport::checkMinGLVersion | ( | const String & | v | ) | const |
bool Ogre::GTKGLSupport::checkMinGLVersion | ( | const String & | v | ) | const |
|
virtualinherited |
Reimplemented in Ogre::Win32GLSupport, and Ogre::GLXGLSupport.
|
virtual |
Implements Ogre::GLSupport.
|
virtual |
Implements Ogre::GL3PlusSupport.
void Ogre::GTKGLSupport::end_context | ( | ) |
void Ogre::GTKGLSupport::end_context | ( | ) |
|
virtualinherited |
|
virtualinherited |
|
inlinevirtualinherited |
Gets the number of display monitors.
Reimplemented in Ogre::Win32GLSupport, and Ogre::Win32GLSupport.
Definition at line 130 of file OgreGLSupport.h.
|
inlinevirtualinherited |
Gets the number of display monitors.
Reimplemented in Ogre::Win32GLSupport, and Ogre::Win32GLSupport.
Definition at line 139 of file OgreGL3PlusSupport.h.
|
inlineinherited |
Get vendor information.
Definition at line 73 of file OgreGL3PlusSupport.h.
|
inlineinherited |
Get vendor information.
Definition at line 97 of file OgreGLSupport.h.
|
inlineinherited |
Get version information.
Definition at line 81 of file OgreGL3PlusSupport.h.
|
inlineinherited |
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 |
|
virtual |
Get the address of a function.
Implements Ogre::GLSupport.
|
virtual |
Get the address of a function.
Implements Ogre::GLSupport.
|
inlineinherited |
Get shader cache path.
Definition at line 89 of file OgreGL3PlusSupport.h.
|
inlineinherited |
Get shader library path.
Definition at line 97 of file OgreGL3PlusSupport.h.
|
static |
Override standard Singleton retrieval.
|
static |
Override standard Singleton retrieval.
|
static |
Override standard Singleton retrieval.
|
static |
Override standard Singleton retrieval.
|
inlineinherited |
Definition at line 75 of file OgreGLSupport.h.
|
virtual |
Initialises GL extensions, must be done AFTER the GL context has been established.
Reimplemented from Ogre::GLSupport.
|
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 | ||
) |
|
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::OSXGL3PlusSupport, Ogre::Win32GLSupport, Ogre::Win32GLSupport, Ogre::GLXGLSupport, Ogre::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::SDLGLSupport.
|
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::OSXGLSupport, Ogre::Win32GLSupport, Ogre::Win32GLSupport, Ogre::GLXGLSupport, Ogre::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::SDLGLSupport.
|
virtualinherited |
Reimplemented in Ogre::GLXGLSupport, Ogre::Win32GLSupport, Ogre::Win32GLSupport, and Ogre::GLXGLSupport.
|
virtualinherited |
Reimplemented in Ogre::GLXGLSupport, Ogre::Win32GLSupport, Ogre::Win32GLSupport, and Ogre::GLXGLSupport.
|
inlineinherited |
Set shader cache path.
Definition at line 105 of file OgreGL3PlusSupport.h.
|
inlineinherited |
Set shader library path.
Definition at line 113 of file OgreGL3PlusSupport.h.
|
inlineinherited |
Definition at line 80 of file OgreGLSupport.h.
|
virtual |
Start anything special.
Implements Ogre::GLSupport.
|
virtual |
Start anything special.
Implements Ogre::GLSupport.
|
virtual |
Stop anything special.
Implements Ogre::GLSupport.
|
virtual |
Stop anything special.
Implements Ogre::GLSupport.
|
virtualinherited |
Reimplemented in Ogre::Win32GLSupport, and Ogre::OSXGLSupport.
|
virtual |
Make sure all the extra options are valid.
Implements Ogre::GLSupport.
|
virtual |
Make sure all the extra options are valid.
Implements Ogre::GLSupport.
|
private |
Definition at line 104 of file include/gtk/OgreGTKGLSupport.h.
|
private |
Definition at line 105 of file include/gtk/OgreGTKGLSupport.h.
|
private |
Definition at line 108 of file include/gtk/OgreGTKGLSupport.h.
|
private |
Definition at line 109 of file include/gtk/OgreGTKGLSupport.h.
Definition at line 140 of file OgreGLSupport.h.
Definition at line 164 of file OgreGL3PlusSupport.h.
|
protectedinherited |
Definition at line 137 of file OgreGLSupport.h.
|
protectedinherited |
Definition at line 161 of file OgreGL3PlusSupport.h.
|
staticprotectedinherited |
Definition at line 75 of file OgreSingleton.h.