3#include <QOpenGLContext>
4#include <QSurfaceFormat>
6#include <QtOpenGL/QOpenGLDebugLogger>
28 if (
error != GL_NO_ERROR) {
31}
while (
error != GL_NO_ERROR);
66const QList<QOpenGLDebugMessage> messages = logger->
loggedMessages();
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
static QOpenGLContext * currentContext()
Returns the last context which called makeCurrent in the current thread, or \nullptr,...
The QOpenGLDebugLogger enables logging of OpenGL debugging messages.
void messageLogged(const QOpenGLDebugMessage &debugMessage)
This signal is emitted when a debug message (wrapped by the debugMessage argument) is logged from the...
bool initialize()
Initializes the object in the current OpenGL context.
void logMessage(const QOpenGLDebugMessage &debugMessage)
Inserts the message debugMessage into the OpenGL debug log.
void startLogging(LoggingMode loggingMode=AsynchronousLogging)
Starts logging messages coming from the OpenGL server.
QList< QOpenGLDebugMessage > loggedMessages() const
Reads all the available messages in the OpenGL internal debug log and returns them.
The QOpenGLDebugMessage class wraps an OpenGL debug message.
static QOpenGLDebugMessage createApplicationMessage(const QString &text, GLuint id=0, Severity severity=NotificationSeverity, Type type=OtherType)
Constructs and returns a debug message with text as its text, id as id, severity as severity,...
#define QByteArrayLiteral(str)
DBusConnection const char DBusError * error
typedef GLenum(GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSKHRPROC)(void)
GLuint GLsizei const GLchar * message
GLint GLsizei GLsizei GLenum format
#define QStringLiteral(str)
static bool handleLoggedMessage()
void wrapper1(LogHandler *receiver)