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

Ogre::Win32GLSupport Class Reference

#include <OgreWin32GLSupport.h>

Inheritance diagram for Ogre::Win32GLSupport:

Inheritance graph
[legend]
List of all members.

Public Methods

void addConfig ()
 Add any special config values to the system.

void setConfigOption (const String &name, const String &value)
String validateConfig ()
 Make sure all the extra options are valid.

virtual RenderWindowcreateWindow (bool autoCreateWindow, GLRenderSystem *renderSystem, const String &windowTitle="OGRE Render Window")
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)
 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 ConfigOptionMapgetConfigOptions (void)
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 initialiseExtensions (void)
 Intialises GL extensions, must be done AFTER the GL context has been established.


Protected Attributes

ConfigOptionMap mOptions

Private Methods

void refreshConfig ()

Private Attributes

vector< DEVMODE > mDevModes

Member Function Documentation

void Ogre::Win32GLSupport::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 wxhxb

Implements Ogre::GLSupport.

Definition at line 21 of file OgreWin32GLSupport.cpp.

References Ogre::_ConfigOption::currentValue, Ogre::_ConfigOption::immutable, mDevModes, Ogre::GLSupport::mOptions, Ogre::_ConfigOption::name, Ogre::_ConfigOption::possibleValues, refreshConfig(), and Ogre::remove_duplicates().

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

Set the correct context as active.

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, inherited]
 

Check if an extension is available.

Reimplemented in Ogre::GTKGLSupport.

Definition at line 120 of file OgreGLSupport.cpp.

References Ogre::GLSupport::extensionList.

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 83 of file OgreGLSupport.cpp.

References Ogre::GLSupport::mVersion.

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

RenderWindow * Ogre::Win32GLSupport::createWindow bool    autoCreateWindow,
GLRenderSystem   renderSystem,
const String   windowTitle = "OGRE Render Window"
[virtual]
 

Implements Ogre::GLSupport.

Definition at line 156 of file OgreWin32GLSupport.cpp.

References Ogre::GLRenderSystem::createRenderWindow(), Except, Ogre::GLSupport::mOptions, and Ogre::RenderSystem::setWaitForVerticalBlank().

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

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, 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 70 of file OgreGLSupport.h.

References Ogre::GLSupport::mVendor.

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

const String& Ogre::GLSupport::getGLVersion void    const [inherited]
 

get version information

Definition at line 78 of file OgreGLSupport.h.

References Ogre::GLSupport::mVersion.

void * Ogre::Win32GLSupport::getProcAddress const String   procname [virtual]
 

Get the address of a function.

Implements Ogre::GLSupport.

Definition at line 221 of file OgreWin32GLSupport.cpp.

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

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

RenderWindow * Ogre::Win32GLSupport::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 196 of file OgreWin32GLSupport.cpp.

References Ogre::Win32Window::create(), Except, and Ogre::GLSupport::mOptions.

void Ogre::Win32GLSupport::refreshConfig   [private]
 

Definition at line 85 of file OgreWin32GLSupport.cpp.

References Ogre::_ConfigOption::currentValue, Except, mDevModes, Ogre::GLSupport::mOptions, Ogre::_ConfigOption::possibleValues, and Ogre::remove_duplicates().

Referenced by addConfig(), and setConfigOption().

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

Reimplemented from Ogre::GLSupport.

Definition at line 117 of file OgreWin32GLSupport.cpp.

References Except, Ogre::GLSupport::mOptions, and refreshConfig().

void Ogre::Win32GLSupport::start   [virtual]
 

Start anything special.

Implements Ogre::GLSupport.

Definition at line 211 of file OgreWin32GLSupport.cpp.

void Ogre::Win32GLSupport::stop   [virtual]
 

Stop anything special.

Implements Ogre::GLSupport.

Definition at line 216 of file OgreWin32GLSupport.cpp.

String Ogre::Win32GLSupport::validateConfig   [virtual]
 

Make sure all the extra options are valid.

Implements Ogre::GLSupport.

Definition at line 150 of file OgreWin32GLSupport.cpp.


Member Data Documentation

vector<DEVMODE> Ogre::Win32GLSupport::mDevModes [private]
 

Definition at line 54 of file OgreWin32GLSupport.h.

Referenced by addConfig(), and refreshConfig().

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

Definition at line 103 of file OgreGLSupport.h.

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


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

Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:27:29 2004