#include <OgreGLSupport.h>
Inheritance diagram for Ogre::GLSupport:
Public Methods | |
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, unsigned int colourDepth, bool fullScreen, int left, int top, bool depthBuffer, RenderWindow *parentWindowHandle, bool vsync)=0 |
Create a specific instance of a render window. | |
virtual void | start ()=0 |
Start anything special. | |
virtual void | stop ()=0 |
Stop anything special. | |
virtual void | begin_context (RenderTarget *_target=0) |
Set the correct context (that of _target) as active. | |
virtual void | end_context () |
Stop the currrent context. | |
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. | |
void | setExternalWindowHandle (void *hwnd) |
virtual void | initialiseExtensions (void) |
Intialises GL extensions, must be done AFTER the GL context has been established. | |
virtual void | resizeRepositionWindow (void *window) |
virtual void | resizeReposition (void *) |
Protected Attributes | |
ConfigOptionMap | mOptions |
void * | m_windowToResize |
Private Attributes | |
std::set< String > | extensionList |
String | mVersion |
String | mVendor |
|
Definition at line 16 of file OgreGLSupport.h. |
|
Definition at line 17 of file OgreGLSupport.h. |
|
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::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport. Referenced by Ogre::GLRenderSystem::initConfigOptions(). |
|
Set the correct context (that of _target) as active. 0 means 'activate some context', for example in case of uploading textures. This obviously fails if there is no context yet. Reimplemented in Ogre::GTKGLSupport. Definition at line 60 of file OgreGLSupport.h. Referenced by Ogre::GLRenderSystem::_setViewport(), Ogre::GLTexture::blitToTexture(), Ogre::GLTexture::createRenderTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2(). |
|
Check if an extension is available.
Reimplemented in Ogre::GTKGLSupport. Definition at line 125 of file OgreGLSupport.cpp. References extensionList, and Ogre::String. Referenced by Ogre::GLRenderSystem::initGL(). |
|
compare GL version numbers
Reimplemented in Ogre::GTKGLSupport. Definition at line 88 of file OgreGLSupport.cpp. References mVersion, and Ogre::String. Referenced by Ogre::GLRenderSystem::initGL(). |
|
Implemented in Ogre::GTKGLSupport, Ogre::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport. Referenced by Ogre::GLRenderSystem::initialise(). |
|
Stop the currrent context.
Reimplemented in Ogre::GTKGLSupport. Definition at line 67 of file OgreGLSupport.h. Referenced by Ogre::GLRenderSystem::_setViewport(), Ogre::GLTexture::blitToTexture(), Ogre::GLTexture::createRenderTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2(). |
|
Definition at line 41 of file OgreGLSupport.cpp. References Ogre::ConfigOptionMap, and mOptions. Referenced by Ogre::GLRenderSystem::getConfigOptions(). |
|
get vendor information
Definition at line 73 of file OgreGLSupport.h. References mVendor, and Ogre::String. Referenced by Ogre::GLRenderSystem::initGL(). |
|
get version information
Definition at line 81 of file OgreGLSupport.h. References mVersion, and Ogre::String. |
|
Get the address of a function.
Implemented in Ogre::GTKGLSupport, Ogre::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport. Referenced by InitATIFragmentShaderExtensions(), Ogre::GLRenderSystem::initGL(), and Ogre::InitGLShaderLanguageExtensions(). |
|
Intialises GL extensions, must be done AFTER the GL context has been established.
Reimplemented in Ogre::GTKGLSupport. Definition at line 46 of file OgreGLSupport.cpp. References extensionList, mVendor, mVersion, and Ogre::String. Referenced by Ogre::GLRenderSystem::initGL(). |
|
Create a specific instance of a render window.
Implemented in Ogre::GTKGLSupport, Ogre::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport. Referenced by Ogre::GLRenderSystem::createRenderWindow(). |
|
Reimplemented in Ogre::Win32GLSupport. Definition at line 108 of file OgreGLSupport.h. Referenced by Ogre::GLRenderSystem::resizeRepositionWindow(). |
|
Definition at line 107 of file OgreGLSupport.h. References m_windowToResize. Referenced by Ogre::GLRenderSystem::resizeRepositionWindow(). |
|
Reimplemented in Ogre::Win32GLSupport. Definition at line 33 of file OgreGLSupport.cpp. References mOptions, and Ogre::String. Referenced by Ogre::GLRenderSystem::setConfigOption(). |
|
Reimplemented in Ogre::Win32GLSupport. Definition at line 100 of file OgreGLSupport.h. Referenced by Ogre::GLRenderSystem::createRenderWindow(). |
|
Start anything special.
Implemented in Ogre::GTKGLSupport, Ogre::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport. Referenced by Ogre::GLRenderSystem::initialise(). |
|
Stop anything special.
Implemented in Ogre::GTKGLSupport, Ogre::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport. Referenced by Ogre::GLRenderSystem::shutdown(). |
|
Make sure all the extra options are valid.
Implemented in Ogre::GTKGLSupport, Ogre::GLXGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport. Referenced by Ogre::GLRenderSystem::validateConfigOptions(). |
|
Definition at line 118 of file OgreGLSupport.h. Referenced by checkExtension(), and initialiseExtensions(). |
|
Definition at line 114 of file OgreGLSupport.h. Referenced by Ogre::Win32GLSupport::resizeReposition(), and resizeRepositionWindow(). |
|
|
Definition at line 120 of file OgreGLSupport.h. Referenced by getGLVendor(), and initialiseExtensions(). |
|
Definition at line 119 of file OgreGLSupport.h. Referenced by checkMinGLVersion(), getGLVersion(), and initialiseExtensions(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:49:38 2004