![]() |
Qt 6.x
The Qt SDK
|
#include <QtCore/qlist.h>
#include <QtGui/qsurfaceformat.h>
#include <QtCore/private/qglobal_p.h>
#include <X11/Xlib.h>
#include <GL/glx.h>
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) |
enum QGlxFlags |
Enumerator | |
---|---|
QGLX_SUPPORTS_SRGB |
Definition at line 27 of file qglxconvenience_p.h.
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().
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 QList< T >::constData(), 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().
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().
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().
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().
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().