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

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

void setExternalWindowHandle (void *hwnd)
virtual void resizeReposition (void *)
virtual ConfigOptionMapgetConfigOptions (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 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.

virtual void resizeRepositionWindow (void *window)

Protected Attributes

ConfigOptionMap mOptions
void * m_windowToResize

Private Methods

void refreshConfig ()

Private Attributes

vector< DEVMODE > mDevModes
HWND mExternalWindowHandle

Constructor & Destructor Documentation

Ogre::Win32GLSupport::Win32GLSupport  
 

Definition at line 14 of file OgreWin32GLSupport.cpp.


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 26 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 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::Win32GLSupport::createWindow bool    autoCreateWindow,
GLRenderSystem   renderSystem,
const String   windowTitle = "OGRE Render Window"
[virtual]
 

Implements Ogre::GLSupport.

Definition at line 161 of file OgreWin32GLSupport.cpp.

References Ogre::GLRenderSystem::createRenderWindow(), Except, Ogre::GLSupport::mOptions, Ogre::RenderSystem::setWaitForVerticalBlank(), 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::Win32GLSupport::getProcAddress const String   procname [virtual]
 

Get the address of a function.

Implements Ogre::GLSupport.

Definition at line 231 of file OgreWin32GLSupport.cpp.

References 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::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 201 of file OgreWin32GLSupport.cpp.

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

void Ogre::Win32GLSupport::refreshConfig   [private]
 

Definition at line 90 of file OgreWin32GLSupport.cpp.

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

Referenced by addConfig(), and setConfigOption().

void Ogre::Win32GLSupport::resizeReposition void *    [virtual]
 

Reimplemented from Ogre::GLSupport.

Definition at line 236 of file OgreWin32GLSupport.cpp.

References Ogre::Win32Window::getWindowHandle(), Ogre::GLSupport::m_windowToResize, and Ogre::Win32Window::windowMovedOrResized().

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::Win32GLSupport::setConfigOption const String   name,
const String   value
[virtual]
 

Reimplemented from Ogre::GLSupport.

Definition at line 122 of file OgreWin32GLSupport.cpp.

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

void Ogre::Win32GLSupport::setExternalWindowHandle void *    hwnd
 

Reimplemented from Ogre::GLSupport.

Definition at line 54 of file OgreWin32GLSupport.h.

References mExternalWindowHandle.

void Ogre::Win32GLSupport::start   [virtual]
 

Start anything special.

Implements Ogre::GLSupport.

Definition at line 221 of file OgreWin32GLSupport.cpp.

void Ogre::Win32GLSupport::stop   [virtual]
 

Stop anything special.

Implements Ogre::GLSupport.

Definition at line 226 of file OgreWin32GLSupport.cpp.

String Ogre::Win32GLSupport::validateConfig   [virtual]
 

Make sure all the extra options are valid.

Implements Ogre::GLSupport.

Definition at line 155 of file OgreWin32GLSupport.cpp.

References Ogre::String.


Member Data Documentation

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

Definition at line 114 of file OgreGLSupport.h.

Referenced by resizeReposition(), and Ogre::GLSupport::resizeRepositionWindow().

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

Definition at line 61 of file OgreWin32GLSupport.h.

Referenced by addConfig(), and refreshConfig().

HWND Ogre::Win32GLSupport::mExternalWindowHandle [private]
 

Definition at line 65 of file OgreWin32GLSupport.h.

Referenced by newWindow(), and setExternalWindowHandle().

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

Definition at line 112 of file OgreGLSupport.h.

Referenced by addConfig(), Ogre::SDLGLSupport::addConfig(), Ogre::GTKGLSupport::addConfig(), Ogre::GLXGLSupport::addConfig(), createWindow(), Ogre::SDLGLSupport::createWindow(), Ogre::GTKGLSupport::createWindow(), Ogre::GLXGLSupport::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 Sun Nov 28 19:51:47 2004