#include <OgreWin32GLSupport.h>
Classes | |
struct | DisplayMonitorInfo |
Public Member Functions | |
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 RenderWindow * | createWindow (bool autoCreateWindow, GLRenderSystem *renderSystem, const String &windowTitle="OGRE Render Window") |
virtual RenderWindow * | newWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0) |
void | start () |
Start anything special. | |
void | stop () |
Stop anything special. | |
void * | getProcAddress (const String &procname) |
Get the address of a function. | |
virtual void | initialiseExtensions () |
Initialise extensions. | |
bool | selectPixelFormat (HDC hdc, int colourDepth, int multisample, bool hwGamma) |
virtual bool | supportsPBuffers () |
virtual GLPBuffer * | createPBuffer (PixelComponentType format, size_t width, size_t height) |
virtual unsigned int | getDisplayMonitorCount () const |
virtual ConfigOptionMap & | getConfigOptions (void) |
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. | |
Protected Attributes | |
ConfigOptionMap | mOptions |
set< String >::type | extensionList |
Private Types | |
typedef vector < DisplayMonitorInfo >::type | DisplayMonitorInfoList |
typedef DisplayMonitorInfoList::iterator | DisplayMonitorInfoIterator |
Private Member Functions | |
void | refreshConfig () |
void | initialiseWGL () |
Static Private Member Functions | |
static LRESULT CALLBACK | dummyWndProc (HWND hwnd, UINT umsg, WPARAM wp, LPARAM lp) |
static BOOL CALLBACK | sCreateMonitorsInfoEnumProc (HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData) |
Private Attributes | |
vector< DEVMODE >::type | mDevModes |
Win32Window * | mInitialWindow |
vector< int >::type | mFSAALevels |
bool | mHasPixelFormatARB |
bool | mHasMultisample |
bool | mHasHardwareGamma |
DisplayMonitorInfoList | mMonitorInfoList |
Definition at line 38 of file OgreWin32GLSupport.h.
typedef DisplayMonitorInfoList::iterator Ogre::Win32GLSupport::DisplayMonitorInfoIterator [private] |
Definition at line 104 of file OgreWin32GLSupport.h.
typedef vector<DisplayMonitorInfo>::type Ogre::Win32GLSupport::DisplayMonitorInfoList [private] |
Definition at line 103 of file OgreWin32GLSupport.h.
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.
virtual bool Ogre::GLSupport::checkExtension | ( | const String & | ext | ) | const [virtual, inherited] |
Check if an extension is available.
Reimplemented in Ogre::GTKGLSupport.
bool Ogre::GLSupport::checkMinGLVersion | ( | const String & | v | ) | const [inherited] |
Compare GL version numbers.
Reimplemented in Ogre::GTKGLSupport.
virtual GLPBuffer* Ogre::Win32GLSupport::createPBuffer | ( | PixelComponentType | format, |
size_t | width, | ||
size_t | height | ||
) | [virtual] |
Reimplemented from Ogre::GLSupport.
virtual RenderWindow* Ogre::Win32GLSupport::createWindow | ( | bool | autoCreateWindow, |
GLRenderSystem * | renderSystem, | ||
const String & | windowTitle = "OGRE Render Window" |
||
) | [virtual] |
Implements Ogre::GLSupport.
static LRESULT CALLBACK Ogre::Win32GLSupport::dummyWndProc | ( | HWND | hwnd, |
UINT | umsg, | ||
WPARAM | wp, | ||
LPARAM | lp | ||
) | [static, private] |
virtual ConfigOptionMap& Ogre::GLSupport::getConfigOptions | ( | void | ) | [virtual, inherited] |
virtual unsigned int Ogre::Win32GLSupport::getDisplayMonitorCount | ( | ) | const [virtual] |
Gets the number of display monitors.
Reimplemented from Ogre::GLSupport.
const String& Ogre::GLSupport::getGLVendor | ( | void | ) | const [inherited] |
Get vendor information.
Definition at line 85 of file OgreGLSupport.h.
const String& Ogre::GLSupport::getGLVersion | ( | void | ) | const [inherited] |
Get version information.
Definition at line 93 of file OgreGLSupport.h.
void* Ogre::Win32GLSupport::getProcAddress | ( | const String & | procname | ) | [virtual] |
Get the address of a function.
Implements Ogre::GLSupport.
virtual void Ogre::Win32GLSupport::initialiseExtensions | ( | ) | [virtual] |
Initialise extensions.
Reimplemented from Ogre::GLSupport.
void Ogre::Win32GLSupport::initialiseWGL | ( | ) | [private] |
virtual RenderWindow* Ogre::Win32GLSupport::newWindow | ( | const String & | name, |
unsigned int | width, | ||
unsigned int | height, | ||
bool | fullScreen, | ||
const NameValuePairList * | miscParams = 0 |
||
) | [virtual] |
Creates a new rendering window.
name | The name of the window. Used in other methods later like setRenderTarget and getRenderTarget. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
width | The width of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
height | The height of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fullScreen | Specify true to make the window full screen without borders, title bar or menu bar. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
miscParams | A NameValuePairList describing the other parameters for the new rendering window. Options are case sensitive. Unrecognised parameters will be ignored silently. These values might be platform dependent, but these are present for all platforms unless indicated otherwise:
|
Implements Ogre::GLSupport.
void Ogre::Win32GLSupport::refreshConfig | ( | ) | [private] |
static BOOL CALLBACK Ogre::Win32GLSupport::sCreateMonitorsInfoEnumProc | ( | HMONITOR | hMonitor, |
HDC | hdcMonitor, | ||
LPRECT | lprcMonitor, | ||
LPARAM | dwData | ||
) | [static, private] |
bool Ogre::Win32GLSupport::selectPixelFormat | ( | HDC | hdc, |
int | colourDepth, | ||
int | multisample, | ||
bool | hwGamma | ||
) |
void Ogre::Win32GLSupport::setConfigOption | ( | const String & | name, |
const String & | value | ||
) | [virtual] |
Reimplemented from Ogre::GLSupport.
void Ogre::Win32GLSupport::start | ( | ) | [virtual] |
Start anything special.
Implements Ogre::GLSupport.
void Ogre::Win32GLSupport::stop | ( | ) | [virtual] |
Stop anything special.
Implements Ogre::GLSupport.
virtual bool Ogre::Win32GLSupport::supportsPBuffers | ( | ) | [virtual] |
Reimplemented from Ogre::GLSupport.
String Ogre::Win32GLSupport::validateConfig | ( | ) | [virtual] |
Make sure all the extra options are valid.
Implements Ogre::GLSupport.
set<String>::type Ogre::GLSupport::extensionList [protected, inherited] |
Definition at line 128 of file OgreGLSupport.h.
vector<DEVMODE>::type Ogre::Win32GLSupport::mDevModes [private] |
Definition at line 90 of file OgreWin32GLSupport.h.
vector<int>::type Ogre::Win32GLSupport::mFSAALevels [private] |
Definition at line 92 of file OgreWin32GLSupport.h.
bool Ogre::Win32GLSupport::mHasHardwareGamma [private] |
Definition at line 95 of file OgreWin32GLSupport.h.
bool Ogre::Win32GLSupport::mHasMultisample [private] |
Definition at line 94 of file OgreWin32GLSupport.h.
bool Ogre::Win32GLSupport::mHasPixelFormatARB [private] |
Definition at line 93 of file OgreWin32GLSupport.h.
Win32Window* Ogre::Win32GLSupport::mInitialWindow [private] |
Definition at line 91 of file OgreWin32GLSupport.h.
Definition at line 106 of file OgreWin32GLSupport.h.
ConfigOptionMap Ogre::GLSupport::mOptions [protected, inherited] |
Definition at line 125 of file OgreGLSupport.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 2012 21:49:21