#include <OgreGLSupport.h>
Public Member Functions | |
GLSupport () | |
virtual | ~GLSupport () |
virtual void | addConfig ()=0 |
Add any special config values to the system. | |
virtual void | setConfigOption (const String &name, const String &value) |
virtual String | validateConfig ()=0 |
Make sure all the extra options are valid. | |
virtual ConfigOptionMap & | getConfigOptions (void) |
virtual RenderWindow * | createWindow (bool autoCreateWindow, GLRenderSystem *renderSystem, const String &windowTitle)=0 |
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) |
virtual void | start ()=0 |
Start anything special. | |
virtual void | stop ()=0 |
Stop anything special. | |
const String & | getGLVendor (void) const |
Get vendor information. | |
const String & | getGLVersion (void) const |
Get version information. | |
bool | checkMinGLVersion (const String &v) const |
Compare GL version numbers. | |
virtual bool | checkExtension (const String &ext) const |
Check if an extension is available. | |
virtual void * | getProcAddress (const String &procname)=0 |
Get the address of a function. | |
virtual void | initialiseExtensions () |
Initialises GL extensions, must be done AFTER the GL context has been established. | |
virtual unsigned int | getDisplayMonitorCount () const |
Protected Attributes | |
ConfigOptionMap | mOptions |
set< String >::type | extensionList |
Private Attributes | |
String | mVersion |
String | mVendor |
Definition at line 41 of file OgreGLSupport.h.
Definition at line 44 of file OgreGLSupport.h.
virtual Ogre::GLSupport::~GLSupport | ( | ) | [virtual] |
Definition at line 45 of file OgreGLSupport.h.
virtual void Ogre::GLSupport::addConfig | ( | ) | [pure 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
Implemented in Ogre::GTKGLSupport, Ogre::OSXGLSupport, Ogre::Win32GLSupport, Ogre::GLXGLSupport, and Ogre::SDLGLSupport.
virtual bool Ogre::GLSupport::checkExtension | ( | const String & | ext | ) | const [virtual] |
Check if an extension is available.
Reimplemented in Ogre::GTKGLSupport.
bool Ogre::GLSupport::checkMinGLVersion | ( | const String & | v | ) | const |
Compare GL version numbers.
Reimplemented in Ogre::GTKGLSupport.
virtual GLPBuffer* Ogre::GLSupport::createPBuffer | ( | PixelComponentType | format, |
size_t | width, | ||
size_t | height | ||
) | [virtual] |
Reimplemented in Ogre::Win32GLSupport, Ogre::OSXGLSupport, and Ogre::GLXGLSupport.
virtual RenderWindow* Ogre::GLSupport::createWindow | ( | bool | autoCreateWindow, |
GLRenderSystem * | renderSystem, | ||
const String & | windowTitle | ||
) | [pure virtual] |
Implemented in Ogre::Win32GLSupport, Ogre::OSXGLSupport, Ogre::GTKGLSupport, Ogre::GLXGLSupport, and Ogre::SDLGLSupport.
virtual ConfigOptionMap& Ogre::GLSupport::getConfigOptions | ( | void | ) | [virtual] |
virtual unsigned int Ogre::GLSupport::getDisplayMonitorCount | ( | ) | const [virtual] |
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 |
Get vendor information.
Definition at line 85 of file OgreGLSupport.h.
const String& Ogre::GLSupport::getGLVersion | ( | void | ) | const |
Get version information.
Definition at line 93 of file OgreGLSupport.h.
virtual void* Ogre::GLSupport::getProcAddress | ( | const String & | procname | ) | [pure virtual] |
Get the address of a function.
Implemented in Ogre::OSXGLSupport, Ogre::Win32GLSupport, Ogre::GTKGLSupport, Ogre::GLXGLSupport, and Ogre::SDLGLSupport.
virtual void Ogre::GLSupport::initialiseExtensions | ( | ) | [virtual] |
Initialises GL extensions, must be done AFTER the GL context has been established.
Reimplemented in Ogre::Win32GLSupport, Ogre::GTKGLSupport, and Ogre::GLXGLSupport.
virtual RenderWindow* Ogre::GLSupport::newWindow | ( | const String & | name, |
unsigned int | width, | ||
unsigned int | height, | ||
bool | fullScreen, | ||
const NameValuePairList * | miscParams = 0 |
||
) | [pure virtual] |
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] |
Reimplemented in Ogre::Win32GLSupport, and Ogre::GLXGLSupport.
virtual void Ogre::GLSupport::start | ( | ) | [pure virtual] |
Start anything special.
Implemented in Ogre::Win32GLSupport, Ogre::OSXGLSupport, Ogre::GTKGLSupport, Ogre::GLXGLSupport, and Ogre::SDLGLSupport.
virtual void Ogre::GLSupport::stop | ( | ) | [pure virtual] |
Stop anything special.
Implemented in Ogre::Win32GLSupport, Ogre::OSXGLSupport, Ogre::GTKGLSupport, Ogre::GLXGLSupport, and Ogre::SDLGLSupport.
virtual bool Ogre::GLSupport::supportsPBuffers | ( | ) | [virtual] |
Reimplemented in Ogre::Win32GLSupport, and Ogre::OSXGLSupport.
virtual String Ogre::GLSupport::validateConfig | ( | ) | [pure virtual] |
Make sure all the extra options are valid.
Implemented in Ogre::Win32GLSupport, Ogre::GTKGLSupport, Ogre::OSXGLSupport, Ogre::GLXGLSupport, and Ogre::SDLGLSupport.
set<String>::type Ogre::GLSupport::extensionList [protected] |
Definition at line 128 of file OgreGLSupport.h.
ConfigOptionMap Ogre::GLSupport::mOptions [protected] |
Definition at line 125 of file OgreGLSupport.h.
String Ogre::GLSupport::mVendor [private] |
Definition at line 131 of file OgreGLSupport.h.
String Ogre::GLSupport::mVersion [private] |
Definition at line 130 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 Sun Sep 2 2012 07:27:53