![]() |
OGRE 2.2.5
Object-Oriented Graphics Rendering Engine
|
#include <OgreGLXGLSupport.h>
Public Member Functions | |
GLXGLSupport () | |
~GLXGLSupport () | |
void | addConfig (void) |
GL3PlusSupport::addConfig | |
virtual bool | checkExtension (const String &ext) const |
Check if an extension is available. | |
GLXFBConfig * | chooseFBConfig (const GLint *attribList, GLint *nElements) |
Portable replacement for glXChooseFBConfig. | |
::GLXContext | createNewContext (GLXFBConfig fbConfig, GLint renderType, ::GLXContext shareList, GLboolean direct) const |
Portable replacement for glXCreateNewContext. | |
Window * | createWindow (bool autoCreateWindow, GL3PlusRenderSystem *renderSystem, const String &windowTitle) |
virtual ConfigOptionMap & | getConfigOptions (void) |
virtual unsigned int | getDisplayMonitorCount () const |
Gets the number of display monitors. | |
String | getDisplayName (void) |
Get the name of the display and screen used for rendering. | |
GLint | getFBConfigAttrib (GLXFBConfig fbConfig, GLint attribute, GLint *value) |
Portable replacement for glXGetFBConfigAttrib. | |
GLXFBConfig | getFBConfigFromContext (::GLXContext context) |
Get the GLXFBConfig used to create a ::GLXContext. | |
GLXFBConfig | getFBConfigFromDrawable (GLXDrawable drawable, unsigned int *width, unsigned int *height) |
Get the GLXFBConfig used to create a GLXDrawable. | |
GLXFBConfig | getFBConfigFromVisualID (VisualID visualid) |
Gets a GLXFBConfig compatible with a VisualID. | |
Display * | getGLDisplay (void) |
Get the Display connection used for rendering. | |
const String & | getGLVendor (void) const |
Get vendor information. | |
const DriverVersion & | getGLVersion (void) const |
Get version information. | |
virtual size_t | getNumPriorityConfigOptions () const |
virtual const char * | getPriorityConfigOption (size_t idx) const |
void * | getProcAddress (const char *procname) const |
GL3PlusSupport::getProcAddress | |
const String & | getShaderCachePath (void) const |
Get shader cache path. | |
const String & | getShaderLibraryPath (void) const |
Get shader library path. | |
XVisualInfo * | getVisualFromFBConfig (GLXFBConfig fbConfig) |
Portable replacement for glXGetVisualFromFBConfig. | |
Display * | getXDisplay (void) |
Get the Display connection used for window management & events. | |
bool | hasMinGLVersion (int major, int minor) const |
Check if GL Version is supported. | |
void | initialiseExtensions () |
GL3PlusSupport::initialiseExtensions | |
bool | loadIcon (const String &name, Pixmap *pix, Pixmap *mask) |
Loads an icon from an Ogre resource into the X Server. | |
Window * | newWindow (const String &name, uint32 width, uint32 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. | |
void | setConfigOption (const String &name, const String &value) |
GL3PlusSupport::setConfigOption | |
void | setShaderCachePath (String path) |
Set shader cache path. | |
void | setShaderLibraryPath (String path) |
Set shader library path. | |
void | start () |
GL3PlusSupport::start | |
void | stop () |
GL3PlusSupport::stop | |
void | switchMode (uint32 width, uint32 height, short frequency) |
Switch video modes. | |
void | switchMode (void) |
Switch back to original video mode. | |
String | validateConfig (void) |
GL3PlusSupport::validateConfig | |
Public Attributes | |
Atom | mAtomDeleteWindow |
Atom | mAtomFullScreen |
Atom | mAtomState |
Ogre::GLXGLSupport::GLXGLSupport | ( | ) |
Ogre::GLXGLSupport::~GLXGLSupport | ( | ) |
|
virtual |
|
virtualinherited |
Check if an extension is available.
Reimplemented in Ogre::GTKGLSupport.
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.
|
virtual |
Implements Ogre::GL3PlusSupport.
|
virtualinherited |
|
inlinevirtualinherited |
Gets the number of display monitors.
Reimplemented in Ogre::Win32GLSupport.
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.
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::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 | ) |
|
inlineinherited |
Get vendor information.
|
inlineinherited |
Get version information.
|
virtualinherited |
Reimplemented in Ogre::EglPBufferSupport, and Ogre::GlSwitchableSupport.
|
virtualinherited |
Reimplemented in Ogre::EglPBufferSupport, and Ogre::GlSwitchableSupport.
|
virtual |
|
inlineinherited |
Get shader cache path.
|
inlineinherited |
Get shader library path.
XVisualInfo * Ogre::GLXGLSupport::getVisualFromFBConfig | ( | GLXFBConfig | fbConfig | ) |
Portable replacement for glXGetVisualFromFBConfig.
Display * Ogre::GLXGLSupport::getXDisplay | ( | void | ) |
|
inherited |
Check if GL Version is supported.
|
virtual |
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::GL3PlusSupport.
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 |
GL3PlusSupport::setConfigOption
GL3PlusSupport::setConfigOption
Reimplemented from Ogre::GL3PlusSupport.
|
inlineinherited |
Set shader cache path.
|
inlineinherited |
Set shader library path.
|
virtual |
|
virtual |
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 |
Atom Ogre::GLXGLSupport::mAtomDeleteWindow |
Atom Ogre::GLXGLSupport::mAtomFullScreen |
Atom Ogre::GLXGLSupport::mAtomState |