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

Ogre::GTKGLSupport Class Reference

#include <OgreGTKGLSupport.h>

Inheritance diagram for Ogre::GTKGLSupport:

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

Collaboration graph
[legend]
List of all members.

Public Methods

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

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

RenderWindowcreateWindow (bool autoCreateWindow, GLRenderSystem *renderSystem)
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 specific instance of a render window.

void start ()
 Start anything special.

void stop ()
 Stop anything special.

void begin_context ()
 Set the correct context as active.

void end_context ()
 Stop the currrent context.

void initialiseExtensions (void)
 Intialises GL extensions, must be done AFTER the GL context has been established.

bool checkMinGLVersion (const String &v) const
 compare GL version numbers

bool checkExtension (const String &ext) const
 Check if an extension is available.

void * getProcAddress (const String &procname)
 Get the address of a function.

virtual void setConfigOption (const String &name, const String &value)
virtual ConfigOptionMapgetConfigOptions (void)
const StringgetGLVendor (void) const
 get vendor information

const StringgetGLVersion (void) const
 get version information


Protected Attributes

ConfigOptionMap mOptions

Private Attributes

Gtk::Main _kit
int _context_ref
OGREWidget * _ogre_widget

Constructor & Destructor Documentation

GTKGLSupport::GTKGLSupport  
 

Definition at line 35 of file OgreGTKGLSupport.cpp.


Member Function Documentation

void GTKGLSupport::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 wxh

Implements Ogre::GLSupport.

Definition at line 41 of file OgreGTKGLSupport.cpp.

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

void GTKGLSupport::begin_context   [virtual]
 

Set the correct context as active.

Reimplemented from Ogre::GLSupport.

Definition at line 128 of file OgreGTKGLSupport.cpp.

References _context_ref, and _ogre_widget.

bool GTKGLSupport::checkExtension const String   ext const [virtual]
 

Check if an extension is available.

Reimplemented from Ogre::GLSupport.

Definition at line 163 of file OgreGTKGLSupport.cpp.

bool GTKGLSupport::checkMinGLVersion const String   v const
 

compare GL version numbers

Reimplemented from Ogre::GLSupport.

Definition at line 151 of file OgreGTKGLSupport.cpp.

RenderWindow * GTKGLSupport::createWindow bool    autoCreateWindow,
GLRenderSystem   renderSystem
[virtual]
 

Implements Ogre::GLSupport.

Definition at line 69 of file OgreGTKGLSupport.cpp.

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

void GTKGLSupport::end_context   [virtual]
 

Stop the currrent context.

Reimplemented from Ogre::GLSupport.

Definition at line 135 of file OgreGTKGLSupport.cpp.

References _context_ref, _ogre_widget, and Except.

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 * GTKGLSupport::getProcAddress const String   procname [virtual]
 

Get the address of a function.

Implements Ogre::GLSupport.

Definition at line 168 of file OgreGTKGLSupport.cpp.

void GTKGLSupport::initialiseExtensions void    [virtual]
 

Intialises GL extensions, must be done AFTER the GL context has been established.

Reimplemented from Ogre::GLSupport.

Definition at line 146 of file OgreGTKGLSupport.cpp.

RenderWindow * GTKGLSupport::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 specific instance of a render window.

Implements Ogre::GLSupport.

Definition at line 100 of file OgreGTKGLSupport.cpp.

References _ogre_widget.

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.

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

void Ogre::GTKGLSupport::setConfigOptions const String   name,
const String   value
 

void GTKGLSupport::start   [virtual]
 

Start anything special.

Implements Ogre::GLSupport.

Definition at line 112 of file OgreGTKGLSupport.cpp.

void GTKGLSupport::stop   [virtual]
 

Stop anything special.

Implements Ogre::GLSupport.

Definition at line 120 of file OgreGTKGLSupport.cpp.

String GTKGLSupport::validateConfig   [virtual]
 

Make sure all the extra options are valid.

Returns:
string with error message

Implements Ogre::GLSupport.

Definition at line 64 of file OgreGTKGLSupport.cpp.


Member Data Documentation

int Ogre::GTKGLSupport::_context_ref [private]
 

Definition at line 61 of file OgreGTKGLSupport.h.

Referenced by begin_context(), and end_context().

Gtk::Main Ogre::GTKGLSupport::_kit [private]
 

Definition at line 60 of file OgreGTKGLSupport.h.

OGREWidget* Ogre::GTKGLSupport::_ogre_widget [private]
 

Definition at line 62 of file OgreGTKGLSupport.h.

Referenced by begin_context(), end_context(), and newWindow().

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

Definition at line 103 of file OgreGLSupport.h.

Referenced by Ogre::Win32GLSupport::addConfig(), Ogre::SDLGLSupport::addConfig(), addConfig(), Ogre::Win32GLSupport::createWindow(), Ogre::SDLGLSupport::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:

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