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 | setConfigOptions (const String &name, const String &value) |
String | validateConfig () |
Make sure all the extra options are valid. | |
RenderWindow * | createWindow (bool autoCreateWindow, GLRenderSystem *renderSystem, const String &windowTitle) |
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 | start () |
Start anything special. | |
void | stop () |
Stop anything special. | |
void | begin_context (RenderTarget *_target=0) |
void | end_context () |
void | initialiseExtensions (void) |
Initialises GL extensions, must be done AFTER the GL context has been established. | |
bool | checkMinGLVersion (const String &v) const |
Compare GL version numbers. | |
bool | checkExtension (const String &ext) const |
Check if an extension is available. | |
void * | getProcAddress (const String &procname) |
Get the address of a function. | |
Glib::RefPtr< const Gdk::GL::Context > | getMainContext () const |
virtual void | setConfigOption (const String &name, const String &value) |
virtual ConfigOptionMap & | getConfigOptions (void) |
virtual RenderWindow * | newWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0)=0 |
virtual bool | supportsPBuffers () |
virtual GLPBuffer * | createPBuffer (PixelComponentType format, size_t width, size_t height) |
const String & | getGLVendor (void) const |
Get vendor information. | |
const String & | getGLVersion (void) const |
Get version information. | |
virtual unsigned int | getDisplayMonitorCount () const |
Static Public Member Functions | |
static GTKGLSupport & | getSingleton (void) |
Override standard Singleton retrieval. | |
static GTKGLSupport * | getSingletonPtr (void) |
Override standard Singleton retrieval. | |
Protected Attributes | |
ConfigOptionMap | mOptions |
set< String >::type | extensionList |
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 OgreGTKGLSupport.h.
void Ogre::GTKGLSupport::addConfig | ( | ) | [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 | ) |
bool Ogre::GTKGLSupport::checkExtension | ( | const String & | ext | ) | const [virtual] |
Check if an extension is available.
Reimplemented from Ogre::GLSupport.
bool Ogre::GTKGLSupport::checkMinGLVersion | ( | const String & | v | ) | const |
Compare GL version numbers.
Reimplemented from Ogre::GLSupport.
virtual GLPBuffer* Ogre::GLSupport::createPBuffer | ( | PixelComponentType | format, |
size_t | width, | ||
size_t | height | ||
) | [virtual, inherited] |
Reimplemented in Ogre::Win32GLSupport, Ogre::OSXGLSupport, and Ogre::GLXGLSupport.
RenderWindow* Ogre::GTKGLSupport::createWindow | ( | bool | autoCreateWindow, |
GLRenderSystem * | renderSystem, | ||
const String & | windowTitle | ||
) | [virtual] |
Implements Ogre::GLSupport.
void Ogre::GTKGLSupport::end_context | ( | ) |
virtual ConfigOptionMap& Ogre::GLSupport::getConfigOptions | ( | void | ) | [virtual, inherited] |
virtual unsigned int Ogre::GLSupport::getDisplayMonitorCount | ( | ) | const [virtual, inherited] |
Gets the number of display monitors.
Reimplemented in Ogre::Win32GLSupport.
Definition at line 118 of file OgreGLSupport.h.
const String& Ogre::GLSupport::getGLVendor | ( | void | ) | const [inherited] |
Get vendor information.
Definition at line 85 of file OgreGLSupport.h.
const String& Ogre::GLSupport::getGLVersion | ( | void | ) | const [inherited] |
Get version information.
Definition at line 93 of file OgreGLSupport.h.
Glib::RefPtr<const Gdk::GL::Context> Ogre::GTKGLSupport::getMainContext | ( | ) | const |
void* Ogre::GTKGLSupport::getProcAddress | ( | const String & | procname | ) | [virtual] |
Get the address of a function.
Implements Ogre::GLSupport.
static GTKGLSupport& Ogre::GTKGLSupport::getSingleton | ( | void | ) | [static] |
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< GTKGLSupport >.
static GTKGLSupport* Ogre::GTKGLSupport::getSingletonPtr | ( | void | ) | [static] |
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< GTKGLSupport >.
void Ogre::GTKGLSupport::initialiseExtensions | ( | void | ) | [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 | ||
) |
virtual RenderWindow* Ogre::GLSupport::newWindow | ( | const String & | name, |
unsigned int | width, | ||
unsigned int | height, | ||
bool | fullScreen, | ||
const NameValuePairList * | miscParams = 0 |
||
) | [pure virtual, inherited] |
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::Win32GLSupport, Ogre::OSXGLSupport, Ogre::GLXGLSupport, and Ogre::SDLGLSupport.
virtual void Ogre::GLSupport::setConfigOption | ( | const String & | name, |
const String & | value | ||
) | [virtual, inherited] |
Reimplemented in Ogre::Win32GLSupport, and Ogre::GLXGLSupport.
void Ogre::GTKGLSupport::setConfigOptions | ( | const String & | name, |
const String & | value | ||
) |
void Ogre::GTKGLSupport::start | ( | ) | [virtual] |
Start anything special.
Implements Ogre::GLSupport.
void Ogre::GTKGLSupport::stop | ( | ) | [virtual] |
Stop anything special.
Implements Ogre::GLSupport.
virtual bool Ogre::GLSupport::supportsPBuffers | ( | ) | [virtual, inherited] |
Reimplemented in Ogre::Win32GLSupport, and Ogre::OSXGLSupport.
String Ogre::GTKGLSupport::validateConfig | ( | ) | [virtual] |
Make sure all the extra options are valid.
Implements Ogre::GLSupport.
int Ogre::GTKGLSupport::_context_ref [private] |
Definition at line 104 of file OgreGTKGLSupport.h.
Gtk::Main Ogre::GTKGLSupport::_kit [private] |
Definition at line 105 of file OgreGTKGLSupport.h.
Glib::RefPtr<Gdk::GL::Context> Ogre::GTKGLSupport::_main_context [private] |
Definition at line 108 of file OgreGTKGLSupport.h.
Glib::RefPtr<Gdk::GL::Window> Ogre::GTKGLSupport::_main_window [private] |
Definition at line 109 of file OgreGTKGLSupport.h.
set<String>::type Ogre::GLSupport::extensionList [protected, inherited] |
Definition at line 128 of file OgreGLSupport.h.
ConfigOptionMap Ogre::GLSupport::mOptions [protected, inherited] |
Definition at line 125 of file OgreGLSupport.h.
GTKGLSupport * Ogre::Singleton< GTKGLSupport >::msSingleton [static, protected, inherited] |
Definition at line 75 of file OgreSingleton.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 2012 21:49:17