Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# Ogre::GLXGLSupport Class Reference

`#include <OgreGLXGLSupport.h>`

Inheritance diagram for Ogre::GLXGLSupport:

[legend]
List of all members.

## Public Methods

| GLXGLSupport ()
| ~GLXGLSupport ()
void | addConfig (void)
| Add any special config values to the system.
String | validateConfig (void)
| Make sure all the extra options are valid.
virtual RenderWindow * | createWindow (bool autoCreateWindow, GLRenderSystem *renderSystem, const String &windowTitle)
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)
| Create a new specific render window.
void | start ()
| Start anything special.
void | stop ()
| Stop anything special.
void * | getProcAddress (const String &procname)
| Get the address of a function.
virtual void | setConfigOption (const String &name, const String &value)
virtual ConfigOptionMap & | getConfigOptions (void)
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.
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

Display * | mDisplay

## Constructor & Destructor Documentation

Ogre::GLXGLSupport::GLXGLSupport | ( |  | ) |

| Definition at line 36 of file OgreGLXGLSupport.cpp.

Ogre::GLXGLSupport::~GLXGLSupport | ( |  | ) |

| Definition at line 39 of file OgreGLXGLSupport.cpp.

## Member Function Documentation

void Ogre::GLXGLSupport::addConfig | ( | void |  | ) | `[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.

Definition at line 41 of file OgreGLXGLSupport.cpp.

References Ogre::_ConfigOption::currentValue, Ogre::_ConfigOption::immutable, Ogre::GLSupport::mOptions, Ogre::_ConfigOption::name, and Ogre::_ConfigOption::possibleValues.

virtual void Ogre::GLSupport::begin_context | ( | RenderTarget * | _target = 0 | ) | `[virtual, inherited]`

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().

bool Ogre::GLSupport::checkExtension | ( | const String & | ext | ) | const`[virtual, inherited]`

| Check if an extension is available. Reimplemented in Ogre::GTKGLSupport. Definition at line 125 of file OgreGLSupport.cpp. References Ogre::GLSupport::extensionList, and Ogre::String. Referenced by Ogre::GLRenderSystem::initGL().

bool Ogre::GLSupport::checkMinGLVersion | ( | const String & | v | ) | const`[inherited]`

| compare GL version numbers Reimplemented in Ogre::GTKGLSupport. Definition at line 88 of file OgreGLSupport.cpp. References Ogre::GLSupport::mVersion, and Ogre::String. Referenced by Ogre::GLRenderSystem::initGL().

RenderWindow * Ogre::GLXGLSupport::createWindow | ( | bool | autoCreateWindow,
|  | GLRenderSystem * | renderSystem,
|  | const String & | windowTitle
| ) | `[virtual]`

| Implements Ogre::GLSupport. Definition at line 78 of file OgreGLXGLSupport.cpp. References Ogre::GLRenderSystem::createRenderWindow(), Except, mDisplay, Ogre::GLSupport::mOptions, and Ogre::String.

virtual void Ogre::GLSupport::end_context | ( |  | ) | `[virtual, inherited]`

| 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().

ConfigOptionMap & Ogre::GLSupport::getConfigOptions | ( | void |  | ) | `[virtual, inherited]`

| Definition at line 41 of file OgreGLSupport.cpp. References Ogre::ConfigOptionMap, and Ogre::GLSupport::mOptions. Referenced by Ogre::GLRenderSystem::getConfigOptions().

const String& Ogre::GLSupport::getGLVendor | ( | void |  | ) | const`[inherited]`

| get vendor information Definition at line 73 of file OgreGLSupport.h. References Ogre::GLSupport::mVendor, and Ogre::String. Referenced by Ogre::GLRenderSystem::initGL().

const String& Ogre::GLSupport::getGLVersion | ( | void |  | ) | const`[inherited]`

| get version information Definition at line 81 of file OgreGLSupport.h. References Ogre::GLSupport::mVersion, and Ogre::String.

void * Ogre::GLXGLSupport::getProcAddress | ( | const String & | procname | ) | `[virtual]`

| Get the address of a function. Implements Ogre::GLSupport. Definition at line 142 of file OgreGLXGLSupport.cpp. References Ogre::glXGetProcAddressARB, and Ogre::String.

void Ogre::GLSupport::initialiseExtensions | ( | void |  | ) | `[virtual, inherited]`

| 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 Ogre::GLSupport::extensionList, Ogre::GLSupport::mVendor, Ogre::GLSupport::mVersion, and Ogre::String. Referenced by Ogre::GLRenderSystem::initGL().

RenderWindow * Ogre::GLXGLSupport::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]`

| Create a new specific render window. Implements Ogre::GLSupport. Definition at line 108 of file OgreGLXGLSupport.cpp. References Ogre::GLXWindow::create(), mDisplay, and Ogre::String.

virtual void Ogre::GLSupport::resizeReposition | ( | void * |  | ) | `[virtual, inherited]`

| Reimplemented in Ogre::Win32GLSupport. Definition at line 108 of file OgreGLSupport.h. Referenced by Ogre::GLRenderSystem::resizeRepositionWindow().

virtual void Ogre::GLSupport::resizeRepositionWindow | ( | void * | window | ) | `[virtual, inherited]`

| Definition at line 107 of file OgreGLSupport.h. References Ogre::GLSupport::m_windowToResize. Referenced by Ogre::GLRenderSystem::resizeRepositionWindow().

void Ogre::GLSupport::setConfigOption | ( | const String & | name,
|  | const String & | value
| ) | `[virtual, inherited]`

| Reimplemented in Ogre::Win32GLSupport. Definition at line 33 of file OgreGLSupport.cpp. References Ogre::GLSupport::mOptions, and Ogre::String. Referenced by Ogre::GLRenderSystem::setConfigOption().

void Ogre::GLSupport::setExternalWindowHandle | ( | void * | hwnd | ) | `[inherited]`

| Reimplemented in Ogre::Win32GLSupport. Definition at line 100 of file OgreGLSupport.h. Referenced by Ogre::GLRenderSystem::createRenderWindow().

void Ogre::GLXGLSupport::start | ( |  | ) | `[virtual]`

| Start anything special. Implements Ogre::GLSupport. Definition at line 117 of file OgreGLXGLSupport.cpp. References Except, and mDisplay.

void Ogre::GLXGLSupport::stop | ( |  | ) | `[virtual]`

| Stop anything special. Implements Ogre::GLSupport. Definition at line 129 of file OgreGLXGLSupport.cpp. References mDisplay.

String Ogre::GLXGLSupport::validateConfig | ( | void |  | ) | `[virtual]`

| Make sure all the extra options are valid. Implements Ogre::GLSupport. Definition at line 74 of file OgreGLXGLSupport.cpp. References Ogre::String.

## Member Data Documentation

void* Ogre::GLSupport::m_windowToResize`[protected, inherited]`

| Definition at line 114 of file OgreGLSupport.h. Referenced by Ogre::Win32GLSupport::resizeReposition(), and Ogre::GLSupport::resizeRepositionWindow().

Display* Ogre::GLXGLSupport::mDisplay`[private]`

| Definition at line 55 of file OgreGLXGLSupport.h. Referenced by createWindow(), newWindow(), start(), and stop().

ConfigOptionMap Ogre::GLSupport::mOptions`[protected, inherited]`

Definition at line 112 of file OgreGLSupport.h.

Referenced by Ogre::Win32GLSupport::addConfig(), Ogre::SDLGLSupport::addConfig(), Ogre::GTKGLSupport::addConfig(), addConfig(), Ogre::Win32GLSupport::createWindow(), Ogre::SDLGLSupport::createWindow(), Ogre::GTKGLSupport::createWindow(), createWindow(), Ogre::GLSupport::getConfigOptions(), Ogre::Win32GLSupport::newWindow(), Ogre::Win32GLSupport::refreshConfig(), Ogre::Win32GLSupport::setConfigOption(), and Ogre::GLSupport::setConfigOption().

The documentation for this class was generated from the following files:

- OgreGLXGLSupport.h
- OgreGLXGLSupport.cpp

Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:49:39 2004