Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qglxconvenience_p.h File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include <QtCore/qlist.h>
#include <QtGui/qsurfaceformat.h>
#include <QtCore/private/qglobal_p.h>
#include <X11/Xlib.h>
#include <GL/glx.h>
+ Include dependency graph for qglxconvenience_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  QGlxFlags { QGLX_SUPPORTS_SRGB = 0x01 }
 

Functions

Q_GUI_EXPORT QList< int > qglx_buildSpec (const QSurfaceFormat &format, int drawableBit=GLX_WINDOW_BIT, int flags=0)
 
Q_GUI_EXPORT XVisualInfo * qglx_findVisualInfo (Display *display, int screen, QSurfaceFormat *format, int drawableBit=GLX_WINDOW_BIT, int flags=0)
 
Q_GUI_EXPORT GLXFBConfig qglx_findConfig (Display *display, int screen, QSurfaceFormat format, bool highestPixelFormat=false, int drawableBit=GLX_WINDOW_BIT, int flags=0)
 
Q_GUI_EXPORT void qglx_surfaceFormatFromGLXFBConfig (QSurfaceFormat *format, Display *display, GLXFBConfig config, int flags=0)
 
Q_GUI_EXPORT void qglx_surfaceFormatFromVisualInfo (QSurfaceFormat *format, Display *display, XVisualInfo *visualInfo, int flags=0)
 
Q_GUI_EXPORT bool qglx_reduceFormat (QSurfaceFormat *format)
 

Enumeration Type Documentation

◆ QGlxFlags

enum QGlxFlags
Enumerator
QGLX_SUPPORTS_SRGB 

Definition at line 27 of file qglxconvenience_p.h.

Function Documentation

◆ qglx_buildSpec()

Q_GUI_EXPORT QList< int > qglx_buildSpec ( const QSurfaceFormat & format,
int drawableBit = GLX_WINDOW_BIT,
int flags = 0 )

Definition at line 50 of file qglxconvenience.cpp.

References GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB, QGLX_SUPPORTS_SRGB, qMax(), QSurfaceFormat::SingleBuffer, QColorSpace::SRgb, True, and XNone.

Referenced by qglx_findConfig(), and qglx_findVisualInfo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qglx_findConfig()

Q_GUI_EXPORT GLXFBConfig qglx_findConfig ( Display * display,
int screen,
QSurfaceFormat format,
bool highestPixelFormat = false,
int drawableBit = GLX_WINDOW_BIT,
int flags = 0 )

Definition at line 158 of file qglxconvenience.cpp.

References GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB, i, qCDebug, qCWarning, qglx_buildSpec(), qglx_reduceFormat(), QGLX_SUPPORTS_SRGB, qMax(), qMin(), screen, and QColorSpace::SRgb.

Referenced by QGLXContext::QGLXContext(), QGLXPbuffer::QGLXPbuffer(), and qglx_findVisualInfo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qglx_findVisualInfo()

Q_GUI_EXPORT XVisualInfo * qglx_findVisualInfo ( Display * display,
int screen,
QSurfaceFormat * format,
int drawableBit = GLX_WINDOW_BIT,
int flags = 0 )

Definition at line 240 of file qglxconvenience.cpp.

References Q_ASSERT, qglx_buildSpec(), qglx_findConfig(), qglx_reduceFormat(), qglx_surfaceFormatFromGLXFBConfig(), qglx_surfaceFormatFromVisualInfo(), and screen.

Referenced by QGLXContext::QGLXContext(), and QXcbGlxWindow::createVisual().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qglx_reduceFormat()

Q_GUI_EXPORT bool qglx_reduceFormat ( QSurfaceFormat * format)

Definition at line 353 of file qglxconvenience.cpp.

References Q_ASSERT, qMin(), QSurfaceFormat::SingleBuffer, and QColorSpace::SRgb.

Referenced by qglx_findConfig(), and qglx_findVisualInfo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qglx_surfaceFormatFromGLXFBConfig()

Q_GUI_EXPORT void qglx_surfaceFormatFromGLXFBConfig ( QSurfaceFormat * format,
Display * display,
GLXFBConfig config,
int flags = 0 )

Definition at line 269 of file qglxconvenience.cpp.

References GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB, QGLX_SUPPORTS_SRGB, and QColorSpace::SRgb.

Referenced by QGLXContext::QGLXContext(), QGLXContext::QGLXContext(), QGLXPbuffer::QGLXPbuffer(), and qglx_findVisualInfo().

+ Here is the caller graph for this function:

◆ qglx_surfaceFormatFromVisualInfo()

Q_GUI_EXPORT void qglx_surfaceFormatFromVisualInfo ( QSurfaceFormat * format,
Display * display,
XVisualInfo * visualInfo,
int flags = 0 )

Definition at line 311 of file qglxconvenience.cpp.

References GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB, QGLX_SUPPORTS_SRGB, and QColorSpace::SRgb.

Referenced by QGLXContext::QGLXContext(), and qglx_findVisualInfo().

+ Here is the caller graph for this function: