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 unsigned int | getDisplayMonitorCount () const |
Gets the number of display monitors. More... | |
const String & | getGLVendor (void) const |
Get vendor 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... | |
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... | |
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... | |
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 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 | 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 |
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 |
GLStateCacheManager * | mStateCacheManager |
String | mVendor |
String | mVersion |
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.
RenderWindow* Ogre::GTKGLSupport::createWindow | ( | bool | autoCreateWindow, |
GL3PlusRenderSystem * | renderSystem, | ||
const String & | windowTitle | ||
) |
|
virtual |
Implements Ogre::GLSupport.
void Ogre::GTKGLSupport::end_context | ( | ) |
void Ogre::GTKGLSupport::end_context | ( | ) |
|
virtualinherited |
|
virtualinherited |
Gets the number of display monitors.
Reimplemented in Ogre::Win32GLSupport, and Ogre::Win32GLSupport.
Definition at line 130 of file OgreGLSupport.h.
|
inherited |
Get vendor information.
Definition at line 97 of file OgreGLSupport.h.
|
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 |
|
virtual |
Get the address of a function.
Implements Ogre::GLSupport.
|
virtual |
Get the address of a function.
Implements Ogre::GLSupport.
|
static |
Override standard Singleton retrieval.
|
static |
Override standard Singleton retrieval.
|
static |
Override standard Singleton retrieval.
|
static |
Override standard Singleton retrieval.
|
inherited |
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.
|
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.
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 | ||
) |
|
virtualinherited |
Reimplemented in Ogre::GLXGLSupport, Ogre::Win32GLSupport, Ogre::Win32GLSupport, and Ogre::GLXGLSupport.
|
inherited |
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.
|
protectedinherited |
Definition at line 137 of file OgreGLSupport.h.
|
staticprotectedinherited |
Definition at line 75 of file OgreSingleton.h.
|
privateinherited |
Definition at line 145 of file OgreGLSupport.h.
|
privateinherited |
Definition at line 143 of file OgreGLSupport.h.
|
privateinherited |
Definition at line 142 of file OgreGLSupport.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15