Static Public Member Functions | Static Public Attributes | List of all members
Ogre::GLXUtils Class Reference

#include <OgreGLXUtils.h>

Static Public Member Functions

static GLXFBConfig getFBConfigFromContext (Display *display, ::GLXContext context)
 Get the GLXFBConfig used to create a GLXContext. More...
 
static GLXFBConfig getFBConfigFromContext (Display *display, ::GLXContext context)
 Get the GLXFBConfig used to create a ::GLXContext. More...
 
static GLXFBConfig getFBConfigFromDrawable (Display *display, GLXDrawable drawable, unsigned int *width, unsigned int *height)
 Get the GLXFBConfig used to create a GLXDrawable. More...
 
static GLXFBConfig getFBConfigFromDrawable (Display *display, GLXDrawable drawable, unsigned int *width, unsigned int *height)
 Get the GLXFBConfig used to create a GLXDrawable. More...
 
static void initialiseGLXEW (Display *display)
 Initialise the parts of GLXEW needed to create a GL Context. More...
 
static bool loadIcon (Display *display, const std::string &name, Pixmap *pix, Pixmap *mask)
 Loads an icon from an Ogre resource into the X Server. More...
 
static bool loadIcon (Display *display, const std::string &name, Pixmap *pix, Pixmap *mask)
 Loads an icon from an Ogre resource into the X Server. More...
 
static GLXFBConfig selectFBConfig (Display *display, const int *minAttribs, const int *maxAttribs)
 Select an FBConfig given a list of required and a list of desired properties. More...
 
static GLXFBConfig selectFBConfig (Display *display, const int *minAttribs, const int *maxAttribs)
 Select an FBConfig given a list of required and a list of desired properties. More...
 

Static Public Attributes

static PFNGLXCHOOSEFBCONFIGPROC chooseFBConfig
 
static PFNGLXCREATENEWCONTEXTPROC createNewContext
 
static PFNGLXGETFBCONFIGATTRIBPROC getFBConfigAttrib
 
static PFNGLXGETVISUALFROMFBCONFIGPROC getVisualFromFBConfig
 

Detailed Description

Definition at line 37 of file include/GLX/OgreGLXUtils.h.

Member Function Documentation

◆ getFBConfigFromContext() [1/2]

static GLXFBConfig Ogre::GLXUtils::getFBConfigFromContext ( Display *  display,
::GLXContext  context 
)
static

Get the GLXFBConfig used to create a GLXContext.

Parameters
displayX Display
contextGLXContext
Returns
GLXFBConfig used to create the context

◆ getFBConfigFromContext() [2/2]

static GLXFBConfig Ogre::GLXUtils::getFBConfigFromContext ( Display *  display,
::GLXContext  context 
)
static

Get the GLXFBConfig used to create a ::GLXContext.

Parameters
displayX Display
drawableGLXContext
Returns
GLXFBConfig used to create the context

◆ getFBConfigFromDrawable() [1/2]

static GLXFBConfig Ogre::GLXUtils::getFBConfigFromDrawable ( Display *  display,
GLXDrawable  drawable,
unsigned int *  width,
unsigned int *  height 
)
static

Get the GLXFBConfig used to create a GLXDrawable.

Caveat: GLX version 1.3 is needed when the drawable is a GLXPixmap

Parameters
displayX Display
drawableGLXDrawable
widthReceiver for the drawable width
heightReceiver for the drawable height
Returns
GLXFBConfig used to create the drawable

◆ getFBConfigFromDrawable() [2/2]

static GLXFBConfig Ogre::GLXUtils::getFBConfigFromDrawable ( Display *  display,
GLXDrawable  drawable,
unsigned int *  width,
unsigned int *  height 
)
static

Get the GLXFBConfig used to create a GLXDrawable.

Caveat: GLX version 1.3 is needed when the drawable is a GLXPixmap

Parameters
displayX Display
drawableGLXDrawable
widthReceiver for the drawable width
heightReceiver for the drawable height
Returns
GLXFBConfig used to create the drawable

◆ initialiseGLXEW()

static void Ogre::GLXUtils::initialiseGLXEW ( Display *  display)
static

Initialise the parts of GLXEW needed to create a GL Context.

Parameters
displayX Display

◆ loadIcon() [1/2]

static bool Ogre::GLXUtils::loadIcon ( Display *  display,
const std::string &  name,
Pixmap *  pix,
Pixmap *  mask 
)
static

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.

Parameters
displayX display
nameName of image to load
pixReceiver for the output pixmap
maskReceiver for the output mask (alpha bitmap)
Returns
true on success

◆ loadIcon() [2/2]

static bool Ogre::GLXUtils::loadIcon ( Display *  display,
const std::string &  name,
Pixmap *  pix,
Pixmap *  mask 
)
static

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.

Parameters
displayX display
nameName of image to load
pixReceiver for the output pixmap
maskReceiver for the output mask (alpha bitmap)
Returns
true on success

◆ selectFBConfig() [1/2]

static GLXFBConfig Ogre::GLXUtils::selectFBConfig ( Display *  display,
const int *  minAttribs,
const int *  maxAttribs 
)
static

Select an FBConfig given a list of required and a list of desired properties.

Parameters
displayX Display
minAttribsFBConfig attributes that must be provided with minimum values
maxAttribsFBConfig attributes that are preferred with maximum values
Returns
GLXFBConfig with attributes or 0 when unsupported.

◆ selectFBConfig() [2/2]

static GLXFBConfig Ogre::GLXUtils::selectFBConfig ( Display *  display,
const int *  minAttribs,
const int *  maxAttribs 
)
static

Select an FBConfig given a list of required and a list of desired properties.

Parameters
displayX Display
minAttribsFBConfig attributes that must be provided with minimum values
maxAttribsFBConfig attributes that are preferred with maximum values
Returns
GLXFBConfig with attributes or 0 when unsupported.

Member Data Documentation

◆ chooseFBConfig

static PFNGLXCHOOSEFBCONFIGPROC Ogre::GLXUtils::chooseFBConfig
static

Definition at line 42 of file include/GLX/OgreGLXUtils.h.

◆ createNewContext

static PFNGLXCREATENEWCONTEXTPROC Ogre::GLXUtils::createNewContext
static

Definition at line 43 of file include/GLX/OgreGLXUtils.h.

◆ getFBConfigAttrib

static PFNGLXGETFBCONFIGATTRIBPROC Ogre::GLXUtils::getFBConfigAttrib
static

Definition at line 44 of file include/GLX/OgreGLXUtils.h.

◆ getVisualFromFBConfig

static PFNGLXGETVISUALFROMFBCONFIGPROC Ogre::GLXUtils::getVisualFromFBConfig
static

Definition at line 45 of file include/GLX/OgreGLXUtils.h.


The documentation for this class was generated from the following file:

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Sun Oct 22 2017 04:04:15