#include <OgreGLXGLSupport.h>
Public Member Functions | |
GLXGLSupport () | |
GLXGLSupport () | |
~GLXGLSupport () | |
~GLXGLSupport () | |
void | addConfig (void) |
Add any special config values to the system. More... | |
void | addConfig (void) |
GL3PlusSupport::addConfig More... | |
virtual bool | checkExtension (const String &ext) const |
Check if an extension is available. More... | |
virtual bool | checkExtension (const String &ext) const |
Check if an extension is available. More... | |
bool | checkMinGLVersion (const String &v) const |
Compare GL version numbers. More... | |
bool | checkMinGLVersion (const String &v) const |
Compare GL version numbers. More... | |
GLXFBConfig * | chooseFBConfig (const GLint *attribList, GLint *nElements) |
Portable replacement for glXChooseFBConfig. More... | |
GLXFBConfig * | chooseFBConfig (const GLint *attribList, GLint *nElements) |
Portable replacement for glXChooseFBConfig. More... | |
::GLXContext | createNewContext (GLXFBConfig fbConfig, GLint renderType,::GLXContext shareList, GLboolean direct) const |
Portable replacement for glXCreateNewContext. More... | |
::GLXContext | createNewContext (GLXFBConfig fbConfig, GLint renderType,::GLXContext shareList, GLboolean direct) const |
Portable replacement for glXCreateNewContext. More... | |
GLPBuffer * | createPBuffer (PixelComponentType format, size_t width, size_t height) |
RenderWindow * | createWindow (bool autoCreateWindow, GLRenderSystem *renderSystem, const String &windowTitle) |
RenderWindow * | createWindow (bool autoCreateWindow, GL3PlusRenderSystem *renderSystem, const String &windowTitle) |
virtual ConfigOptionMap & | getConfigOptions (void) |
virtual ConfigOptionMap & | getConfigOptions (void) |
virtual unsigned int | getDisplayMonitorCount () const |
Gets the number of display monitors. More... | |
virtual unsigned int | getDisplayMonitorCount () const |
Gets the number of display monitors. More... | |
String | getDisplayName (void) |
Get the name of the display and screen used for rendering. More... | |
String | getDisplayName (void) |
Get the name of the display and screen used for rendering. More... | |
GLint | getFBConfigAttrib (GLXFBConfig fbConfig, GLint attribute, GLint *value) |
Portable replacement for glXGetFBConfigAttrib. More... | |
GLint | getFBConfigAttrib (GLXFBConfig fbConfig, GLint attribute, GLint *value) |
Portable replacement for glXGetFBConfigAttrib. More... | |
GLXFBConfig | getFBConfigFromContext (::GLXContext context) |
Get the GLXFBConfig used to create a GLXContext. More... | |
GLXFBConfig | getFBConfigFromContext (::GLXContext context) |
Get the GLXFBConfig used to create a ::GLXContext. More... | |
GLXFBConfig | getFBConfigFromDrawable (GLXDrawable drawable, unsigned int *width, unsigned int *height) |
Get the GLXFBConfig used to create a GLXDrawable. More... | |
GLXFBConfig | getFBConfigFromDrawable (GLXDrawable drawable, unsigned int *width, unsigned int *height) |
Get the GLXFBConfig used to create a GLXDrawable. More... | |
GLXFBConfig | getFBConfigFromVisualID (VisualID visualid) |
Gets a GLXFBConfig compatible with a VisualID. More... | |
GLXFBConfig | getFBConfigFromVisualID (VisualID visualid) |
Gets a GLXFBConfig compatible with a VisualID. More... | |
Display * | getGLDisplay (void) |
Get the Display connection used for rendering. More... | |
Display * | getGLDisplay (void) |
Get the Display connection used for rendering. More... | |
const String & | getGLVendor (void) const |
Get vendor information. More... | |
const String & | getGLVendor (void) const |
Get vendor information. More... | |
const String & | getGLVersion (void) const |
Get version information. More... | |
const String & | getGLVersion (void) const |
Get version information. More... | |
void * | getProcAddress (const String &procname) |
Get the address of a function. More... | |
void * | getProcAddress (const String &procname) |
GL3PlusSupport::getProcAddress More... | |
const String & | getShaderCachePath (void) const |
Get shader cache path. More... | |
const String & | getShaderLibraryPath (void) const |
Get shader library path. More... | |
GLStateCacheManager * | getStateCacheManager () const |
XVisualInfo * | getVisualFromFBConfig (GLXFBConfig fbConfig) |
Portable replacement for glXGetVisualFromFBConfig. More... | |
XVisualInfo * | getVisualFromFBConfig (GLXFBConfig fbConfig) |
Portable replacement for glXGetVisualFromFBConfig. More... | |
Display * | getXDisplay (void) |
Get the Display connection used for window management & events. More... | |
Display * | getXDisplay (void) |
Get the Display connection used for window management & events. More... | |
void | initialiseExtensions () |
Initialises GL extensions, must be done AFTER the GL context has been established. More... | |
void | initialiseExtensions () |
GL3PlusSupport::initialiseExtensions More... | |
bool | loadIcon (const String &name, Pixmap *pix, Pixmap *mask) |
Loads an icon from an Ogre resource into the X Server. More... | |
bool | loadIcon (const String &name, Pixmap *pix, Pixmap *mask) |
Loads an icon from an Ogre resource into the X Server. More... | |
RenderWindow * | newWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0) |
RenderWindow * | newWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0) |
GLXFBConfig | selectFBConfig (const int *minAttribs, const int *maxAttribs) |
Select an FBConfig given a list of required and a list of desired properties. More... | |
GLXFBConfig | selectFBConfig (const int *minAttribs, const int *maxAttribs) |
Select an FBConfig given a list of required and a list of desired properties. More... | |
void | setConfigOption (const String &name, const String &value) |
void | setConfigOption (const String &name, const String &value) |
GL3PlusSupport::setConfigOption More... | |
void | setShaderCachePath (String path) |
Set shader cache path. More... | |
void | setShaderLibraryPath (String path) |
Set shader library path. More... | |
void | setStateCacheManager (GLStateCacheManager *stateCacheMgr) |
void | start () |
Start anything special. More... | |
void | start () |
GL3PlusSupport::start More... | |
void | stop () |
Stop anything special. More... | |
void | stop () |
GL3PlusSupport::stop More... | |
virtual bool | supportsPBuffers () |
void | switchMode (uint &width, uint &height, short &frequency) |
Switch video modes. More... | |
void | switchMode (void) |
Switch back to original video mode. More... | |
void | switchMode (uint &width, uint &height, short &frequency) |
Switch video modes. More... | |
void | switchMode (void) |
Switch back to original video mode. More... | |
String | validateConfig (void) |
Make sure all the extra options are valid. More... | |
String | validateConfig (void) |
GL3PlusSupport::validateConfig More... | |
Public Attributes | |
Atom | mAtomDeleteWindow |
Atom | mAtomFullScreen |
Atom | mAtomState |
Protected Attributes | |
set< String >::type | extensionList |
set< String >::type | extensionList |
ConfigOptionMap | mOptions |
ConfigOptionMap | mOptions |
Private Types | |
typedef short | Rate |
typedef short | Rate |
typedef std::pair< uint, uint > | ScreenSize |
typedef std::pair< uint, uint > | ScreenSize |
typedef std::pair< ScreenSize, Rate > | VideoMode |
typedef std::pair< ScreenSize, Rate > | VideoMode |
typedef std::vector< VideoMode > | VideoModes |
typedef std::vector< VideoMode > | VideoModes |
Private Member Functions | |
void | initialiseGLXEW (void) |
Initialise GLXEW without requiring a current GL context. More... | |
void | refreshConfig (void) |
Refresh config options to reflect dependencies. More... | |
void | refreshConfig (void) |
Refresh config options to reflect dependencies. More... | |
Private Attributes | |
VideoMode | mCurrentMode |
Display * | mGLDisplay |
bool | mIsExternalDisplay |
VideoMode | mOriginalMode |
StringVector | mSampleLevels |
VideoModes | mVideoModes |
Display * | mXDisplay |
Definition at line 11 of file include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 187 of file include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 205 of file Plus/include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 186 of file include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 204 of file Plus/include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 188 of file include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 206 of file Plus/include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 189 of file include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 207 of file Plus/include/GLX/OgreGLXGLSupport.h.
Ogre::GLXGLSupport::GLXGLSupport | ( | ) |
Ogre::GLXGLSupport::~GLXGLSupport | ( | ) |
Ogre::GLXGLSupport::GLXGLSupport | ( | ) |
Ogre::GLXGLSupport::~GLXGLSupport | ( | ) |
|
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.
|
virtual |
|
virtualinherited |
Check if an extension is available.
Reimplemented in Ogre::GTKGLSupport, and Ogre::GTKGLSupport.
|
virtualinherited |
Check if an extension is available.
Reimplemented in Ogre::GTKGLSupport, and Ogre::GTKGLSupport.
|
inherited |
Compare GL version numbers.
|
inherited |
Compare GL version numbers.
GLXFBConfig* Ogre::GLXGLSupport::chooseFBConfig | ( | const GLint * | attribList, |
GLint * | nElements | ||
) |
Portable replacement for glXChooseFBConfig.
GLXFBConfig* Ogre::GLXGLSupport::chooseFBConfig | ( | const GLint * | attribList, |
GLint * | nElements | ||
) |
Portable replacement for glXChooseFBConfig.
::GLXContext Ogre::GLXGLSupport::createNewContext | ( | GLXFBConfig | fbConfig, |
GLint | renderType, | ||
::GLXContext | shareList, | ||
GLboolean | direct | ||
) | const |
Portable replacement for glXCreateNewContext.
::GLXContext Ogre::GLXGLSupport::createNewContext | ( | GLXFBConfig | fbConfig, |
GLint | renderType, | ||
::GLXContext | shareList, | ||
GLboolean | direct | ||
) | const |
Portable replacement for glXCreateNewContext.
|
virtual |
Reimplemented from Ogre::GLSupport.
|
virtual |
Implements Ogre::GLSupport.
|
virtual |
Implements Ogre::GL3PlusSupport.
|
virtualinherited |
|
virtualinherited |
|
inlinevirtualinherited |
Gets the number of display monitors.
Reimplemented in Ogre::Win32GLSupport, and Ogre::Win32GLSupport.
Definition at line 130 of file OgreGLSupport.h.
|
inlinevirtualinherited |
Gets the number of display monitors.
Reimplemented in Ogre::Win32GLSupport, and Ogre::Win32GLSupport.
Definition at line 139 of file OgreGL3PlusSupport.h.
String Ogre::GLXGLSupport::getDisplayName | ( | void | ) |
Get the name of the display and screen used for rendering.
Ogre normally opens its own connection to the X server and renders onto the screen where the user logged in
However, if Ogre is passed a current GL context when the first RenderTarget is created, then it will connect to the X server using the same connection as that GL context and direct all subsequent rendering to the screen targeted by that GL context.
String Ogre::GLXGLSupport::getDisplayName | ( | void | ) |
Get the name of the display and screen used for rendering.
Ogre normally opens its own connection to the X server and renders onto the screen where the user logged in
However, if Ogre is passed a current GL context when the first RenderTarget is created, then it will connect to the X server using the same connection as that GL context and direct all subsequent rendering to the screen targeted by that GL context.
GLint Ogre::GLXGLSupport::getFBConfigAttrib | ( | GLXFBConfig | fbConfig, |
GLint | attribute, | ||
GLint * | value | ||
) |
Portable replacement for glXGetFBConfigAttrib.
GLint Ogre::GLXGLSupport::getFBConfigAttrib | ( | GLXFBConfig | fbConfig, |
GLint | attribute, | ||
GLint * | value | ||
) |
Portable replacement for glXGetFBConfigAttrib.
GLXFBConfig Ogre::GLXGLSupport::getFBConfigFromContext | ( | ::GLXContext | context | ) |
Get the GLXFBConfig used to create a GLXContext.
context | GLXContext |
GLXFBConfig Ogre::GLXGLSupport::getFBConfigFromContext | ( | ::GLXContext | context | ) |
Get the GLXFBConfig used to create a ::GLXContext.
drawable | GLXContext |
GLXFBConfig Ogre::GLXGLSupport::getFBConfigFromDrawable | ( | GLXDrawable | drawable, |
unsigned int * | width, | ||
unsigned int * | height | ||
) |
Get the GLXFBConfig used to create a GLXDrawable.
Caveat: GLX version 1.3 is needed when the drawable is a GLXPixmap
drawable | GLXDrawable |
width | Receiver for the drawable width |
height | Receiver for the drawable height |
GLXFBConfig Ogre::GLXGLSupport::getFBConfigFromDrawable | ( | GLXDrawable | drawable, |
unsigned int * | width, | ||
unsigned int * | height | ||
) |
Get the GLXFBConfig used to create a GLXDrawable.
Caveat: GLX version 1.3 is needed when the drawable is a GLXPixmap
drawable | GLXDrawable |
width | Receiver for the drawable width |
height | Receiver for the drawable height |
GLXFBConfig Ogre::GLXGLSupport::getFBConfigFromVisualID | ( | VisualID | visualid | ) |
Gets a GLXFBConfig compatible with a VisualID.
Some platforms fail to implement glXGetFBconfigFromVisualSGIX as part of the GLX_SGIX_fbconfig extension, but this portable alternative suffices for the creation of compatible contexts.
visualid | VisualID |
GLXFBConfig Ogre::GLXGLSupport::getFBConfigFromVisualID | ( | VisualID | visualid | ) |
Gets a GLXFBConfig compatible with a VisualID.
Some platforms fail to implement glXGetFBconfigFromVisualSGIX as part of the GLX_SGIX_fbconfig extension, but this portable alternative suffices for the creation of compatible contexts.
visualid | VisualID |
Display* Ogre::GLXGLSupport::getGLDisplay | ( | void | ) |
Get the Display connection used for rendering.
This function establishes the initial connection when necessary.
Display* Ogre::GLXGLSupport::getGLDisplay | ( | void | ) |
Get the Display connection used for rendering.
This function establishes the initial connection when necessary.
|
inlineinherited |
Get vendor information.
Definition at line 73 of file OgreGL3PlusSupport.h.
|
inlineinherited |
Get vendor information.
Definition at line 97 of file OgreGLSupport.h.
|
inlineinherited |
Get version information.
Definition at line 81 of file OgreGL3PlusSupport.h.
|
inlineinherited |
Get version information.
Definition at line 105 of file OgreGLSupport.h.
|
virtual |
Get the address of a function.
Implements Ogre::GLSupport.
|
virtual |
|
inlineinherited |
Get shader cache path.
Definition at line 89 of file OgreGL3PlusSupport.h.
|
inlineinherited |
Get shader library path.
Definition at line 97 of file OgreGL3PlusSupport.h.
|
inlineinherited |
Definition at line 75 of file OgreGLSupport.h.
XVisualInfo* Ogre::GLXGLSupport::getVisualFromFBConfig | ( | GLXFBConfig | fbConfig | ) |
Portable replacement for glXGetVisualFromFBConfig.
XVisualInfo* Ogre::GLXGLSupport::getVisualFromFBConfig | ( | GLXFBConfig | fbConfig | ) |
Portable replacement for glXGetVisualFromFBConfig.
Display* Ogre::GLXGLSupport::getXDisplay | ( | void | ) |
Get the Display connection used for window management & events.
Display* Ogre::GLXGLSupport::getXDisplay | ( | void | ) |
Get the Display connection used for window management & events.
|
virtual |
Initialises GL extensions, must be done AFTER the GL context has been established.
Reimplemented from Ogre::GLSupport.
|
virtual |
GL3PlusSupport::initialiseExtensions
GL3PlusSupport::initialiseExtensions
Reimplemented from Ogre::GLSupport.
|
private |
Initialise GLXEW without requiring a current GL context.
bool Ogre::GLXGLSupport::loadIcon | ( | const String & | name, |
Pixmap * | pix, | ||
Pixmap * | mask | ||
) |
Loads an icon from an Ogre resource into the X Server.
This currently only works for 24 and 32 bit displays. The image must be findable by the Ogre resource system, and of format PF_A8R8G8B8.
name | Name of image to load |
pix | Receiver for the output pixmap |
mask | Receiver for the output mask (alpha bitmap) |
bool Ogre::GLXGLSupport::loadIcon | ( | const String & | name, |
Pixmap * | pix, | ||
Pixmap * | mask | ||
) |
Loads an icon from an Ogre resource into the X Server.
This currently only works for 24 and 32 bit displays. The image must be findable by the Ogre resource system, and of format PF_A8R8G8B8.
display | X display |
name | Name of image to load |
pix | Receiver for the output pixmap |
mask | Receiver for the output mask (alpha bitmap) |
|
virtual |
Implements Ogre::GLSupport.
|
virtual |
Implements Ogre::GLSupport.
|
private |
Refresh config options to reflect dependencies.
|
private |
Refresh config options to reflect dependencies.
GLXFBConfig Ogre::GLXGLSupport::selectFBConfig | ( | const int * | minAttribs, |
const int * | maxAttribs | ||
) |
Select an FBConfig given a list of required and a list of desired properties.
minAttribs | FBConfig attributes that must be provided with minimum values |
maxAttribs | FBConfig attributes that are desirable with maximum values |
GLXFBConfig Ogre::GLXGLSupport::selectFBConfig | ( | const int * | minAttribs, |
const int * | maxAttribs | ||
) |
Select an FBConfig given a list of required and a list of desired properties.
minAttribs | FBConfig attributes that must be provided with minimum values |
maxAttribs | FBConfig attributes that are desirable with maximum values |
Reimplemented from Ogre::GLSupport.
|
inlineinherited |
Set shader cache path.
Definition at line 105 of file OgreGL3PlusSupport.h.
|
inlineinherited |
Set shader library path.
Definition at line 113 of file OgreGL3PlusSupport.h.
|
inlineinherited |
Definition at line 80 of file OgreGLSupport.h.
|
virtual |
Start anything special.
Implements Ogre::GLSupport.
|
virtual |
|
virtual |
Stop anything special.
Implements Ogre::GLSupport.
|
virtual |
|
virtualinherited |
Reimplemented in Ogre::Win32GLSupport, and Ogre::OSXGLSupport.
Switch video modes.
width | Receiver for requested and final width |
height | Receiver for requested and final drawable height |
frequency | Receiver for requested and final drawable frequency |
void Ogre::GLXGLSupport::switchMode | ( | void | ) |
Switch back to original video mode.
Switch video modes.
width | Receiver for requested and final width |
height | Receiver for requested and final drawable height |
height | Receiver for requested and final drawable frequency |
void Ogre::GLXGLSupport::switchMode | ( | void | ) |
Switch back to original video mode.
|
virtual |
Make sure all the extra options are valid.
Implements Ogre::GLSupport.
|
virtual |
Definition at line 140 of file OgreGLSupport.h.
Definition at line 164 of file OgreGL3PlusSupport.h.
Atom Ogre::GLXGLSupport::mAtomDeleteWindow |
Definition at line 17 of file include/GLX/OgreGLXGLSupport.h.
Atom Ogre::GLXGLSupport::mAtomFullScreen |
Definition at line 18 of file include/GLX/OgreGLXGLSupport.h.
Atom Ogre::GLXGLSupport::mAtomState |
Definition at line 19 of file include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 193 of file include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 182 of file include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 184 of file include/GLX/OgreGLXGLSupport.h.
|
protectedinherited |
Definition at line 137 of file OgreGLSupport.h.
|
protectedinherited |
Definition at line 161 of file OgreGL3PlusSupport.h.
|
private |
Definition at line 192 of file include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 195 of file include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 191 of file include/GLX/OgreGLXGLSupport.h.
|
private |
Definition at line 183 of file include/GLX/OgreGLXGLSupport.h.