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
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QGLXCONVENIENCE_H
5#define QGLXCONVENIENCE_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qlist.h>
19#include <QtGui/qsurfaceformat.h>
20#include <QtCore/private/qglobal_p.h>
21
22#include <X11/Xlib.h>
23#include <GL/glx.h>
24
26
28{
30};
31
32Q_GUI_EXPORT QList<int> qglx_buildSpec(const QSurfaceFormat &format,
33 int drawableBit = GLX_WINDOW_BIT,
34 int flags = 0);
35
36Q_GUI_EXPORT XVisualInfo *qglx_findVisualInfo(Display *display, int screen,
38 int drawableBit = GLX_WINDOW_BIT,
39 int flags = 0);
40
41Q_GUI_EXPORT GLXFBConfig qglx_findConfig(Display *display, int screen,
43 bool highestPixelFormat = false,
44 int drawableBit = GLX_WINDOW_BIT,
45 int flags = 0);
46
48 GLXFBConfig config, int flags = 0);
49
51 XVisualInfo *visualInfo, int flags = 0);
52
53Q_GUI_EXPORT bool qglx_reduceFormat(QSurfaceFormat *format);
54
56
57#endif // QGLXCONVENIENCE_H
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
EGLConfig config
Q_GUI_EXPORT XVisualInfo * qglx_findVisualInfo(Display *display, int screen, QSurfaceFormat *format, int drawableBit=GLX_WINDOW_BIT, int flags=0)
Q_GUI_EXPORT bool qglx_reduceFormat(QSurfaceFormat *format)
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_surfaceFormatFromVisualInfo(QSurfaceFormat *format, Display *display, XVisualInfo *visualInfo, int flags=0)
Q_GUI_EXPORT QList< int > qglx_buildSpec(const QSurfaceFormat &format, int drawableBit=GLX_WINDOW_BIT, int flags=0)
Q_GUI_EXPORT void qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat *format, Display *display, GLXFBConfig config, int flags=0)
@ QGLX_SUPPORTS_SRGB
GLbitfield flags
GLint GLsizei GLsizei GLenum format
QScreen * screen
[1]
Definition main.cpp:29
struct _XDisplay Display