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

Ogre::GLSupport Class Reference

#include <OgreGLSupport.h>

Inheritance diagram for Ogre::GLSupport:

Inheritance graph
[legend]
Collaboration diagram for Ogre::GLSupport:

Collaboration graph
[legend]
List of all members.

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 ConfigOptionMapgetConfigOptions (void)
virtual RenderWindowcreateWindow (bool autoCreateWindow, GLRenderSystem *renderSystem)=0
virtual RenderWindownewWindow (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 ()
 Set the correct context as active.

virtual void end_context ()
 Stop the currrent context.

const StringgetGLVendor (void) const
 get vendor information

const StringgetGLVersion (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 (void)
 Intialises GL extensions, must be done AFTER the GL context has been established.


Protected Attributes

ConfigOptionMap mOptions

Private Attributes

std::set< StringextensionList
String mVersion
String mVendor

Constructor & Destructor Documentation

Ogre::GLSupport::GLSupport  
 

Definition at line 16 of file OgreGLSupport.h.

virtual Ogre::GLSupport::~GLSupport   [virtual]
 

Definition at line 17 of file OgreGLSupport.h.


Member Function Documentation

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::SDLGLSupport, and Ogre::Win32GLSupport.

Referenced by Ogre::GLRenderSystem::initConfigOptions().

virtual void Ogre::GLSupport::begin_context   [virtual]
 

Set the correct context as active.

Reimplemented in Ogre::GTKGLSupport.

Definition at line 58 of file OgreGLSupport.h.

Referenced by 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]
 

Check if an extension is available.

Reimplemented in Ogre::GTKGLSupport.

Definition at line 120 of file OgreGLSupport.cpp.

References extensionList.

Referenced by Ogre::GLRenderSystem::initGL().

bool Ogre::GLSupport::checkMinGLVersion const String   v const
 

compare GL version numbers

Reimplemented in Ogre::GTKGLSupport.

Definition at line 83 of file OgreGLSupport.cpp.

References mVersion.

Referenced by Ogre::GLRenderSystem::initGL().

virtual RenderWindow* Ogre::GLSupport::createWindow bool    autoCreateWindow,
GLRenderSystem   renderSystem
[pure virtual]
 

Implemented in Ogre::GTKGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport.

Referenced by Ogre::GLRenderSystem::initialise().

virtual void Ogre::GLSupport::end_context   [virtual]
 

Stop the currrent context.

Reimplemented in Ogre::GTKGLSupport.

Definition at line 64 of file OgreGLSupport.h.

Referenced by Ogre::GLTexture::blitToTexture(), Ogre::GLTexture::createRenderTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2().

ConfigOptionMap & Ogre::GLSupport::getConfigOptions void    [virtual]
 

Definition at line 41 of file OgreGLSupport.cpp.

References Ogre::ConfigOptionMap, and mOptions.

Referenced by Ogre::GLRenderSystem::getConfigOptions().

const String& Ogre::GLSupport::getGLVendor void    const
 

get vendor information

Definition at line 70 of file OgreGLSupport.h.

References mVendor.

Referenced by Ogre::GLRenderSystem::initGL().

const String& Ogre::GLSupport::getGLVersion void    const
 

get version information

Definition at line 78 of file OgreGLSupport.h.

References mVersion.

virtual void* Ogre::GLSupport::getProcAddress const String   procname [pure virtual]
 

Get the address of a function.

Implemented in Ogre::GTKGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport.

Referenced by InitATIFragmentShaderExtensions(), and Ogre::GLRenderSystem::initGL().

void Ogre::GLSupport::initialiseExtensions void    [virtual]
 

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, and mVersion.

Referenced by Ogre::GLRenderSystem::initGL().

virtual RenderWindow* Ogre::GLSupport::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
[pure virtual]
 

Create a specific instance of a render window.

Implemented in Ogre::GTKGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport.

Referenced by Ogre::GLRenderSystem::createRenderWindow().

void Ogre::GLSupport::setConfigOption const String   name,
const String   value
[virtual]
 

Reimplemented in Ogre::Win32GLSupport.

Definition at line 33 of file OgreGLSupport.cpp.

References mOptions.

Referenced by Ogre::GLRenderSystem::setConfigOption().

virtual void Ogre::GLSupport::start   [pure virtual]
 

Start anything special.

Implemented in Ogre::GTKGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport.

Referenced by Ogre::GLRenderSystem::initialise().

virtual void Ogre::GLSupport::stop   [pure virtual]
 

Stop anything special.

Implemented in Ogre::GTKGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport.

Referenced by Ogre::GLRenderSystem::shutdown().

virtual String Ogre::GLSupport::validateConfig   [pure virtual]
 

Make sure all the extra options are valid.

Returns:
string with error message

Implemented in Ogre::GTKGLSupport, Ogre::SDLGLSupport, and Ogre::Win32GLSupport.

Referenced by Ogre::GLRenderSystem::validateConfigOptions().


Member Data Documentation

std::set<String> Ogre::GLSupport::extensionList [private]
 

Definition at line 107 of file OgreGLSupport.h.

Referenced by checkExtension(), and initialiseExtensions().

ConfigOptionMap Ogre::GLSupport::mOptions [protected]
 

Definition at line 103 of file OgreGLSupport.h.

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

String Ogre::GLSupport::mVendor [private]
 

Definition at line 109 of file OgreGLSupport.h.

Referenced by getGLVendor(), and initialiseExtensions().

String Ogre::GLSupport::mVersion [private]
 

Definition at line 108 of file OgreGLSupport.h.

Referenced by checkMinGLVersion(), getGLVersion(), and initialiseExtensions().


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

Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:12:42 2004