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
qopengltimerquery.h
Go to the documentation of this file.
1
// Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
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 QOPENGLTIMERQUERY_H
5
#define QOPENGLTIMERQUERY_H
6
7
#include <QtOpenGL/qtopenglglobal.h>
8
9
#if !defined(QT_NO_OPENGL) && !QT_CONFIG(opengles2)
10
11
#include <QtCore/QObject>
12
#include <QtGui/qopengl.h>
13
14
QT_BEGIN_NAMESPACE
15
16
class
QOpenGLTimerQueryPrivate
;
17
18
class
Q_OPENGL_EXPORT
QOpenGLTimerQuery
:
public
QObject
19
{
20
Q_OBJECT
21
22
public
:
23
explicit
QOpenGLTimerQuery
(
QObject
*parent =
nullptr
);
24
~QOpenGLTimerQuery
();
25
26
bool
create
();
27
void
destroy();
28
bool
isCreated()
const
;
29
GLuint
objectId()
const
;
30
31
void
begin
();
32
void
end
();
33
GLuint64
waitForTimestamp()
const
;
34
void
recordTimestamp();
35
bool
isResultAvailable()
const
;
36
GLuint64
waitForResult()
const
;
37
38
private
:
39
Q_DECLARE_PRIVATE(
QOpenGLTimerQuery
)
40
Q_DISABLE_COPY(
QOpenGLTimerQuery
)
41
};
42
43
44
class
QOpenGLTimeMonitorPrivate
;
45
46
class
Q_OPENGL_EXPORT
QOpenGLTimeMonitor
:
public
QObject
47
{
48
Q_OBJECT
49
50
public
:
51
explicit
QOpenGLTimeMonitor
(
QObject
*parent =
nullptr
);
52
~QOpenGLTimeMonitor
();
53
54
void
setSampleCount(
int
sampleCount);
55
int
sampleCount()
const
;
56
57
bool
create
();
58
void
destroy();
59
bool
isCreated()
const
;
60
QList<GLuint> objectIds()
const
;
61
62
int
recordSample();
63
64
bool
isResultAvailable()
const
;
65
66
QList<GLuint64> waitForSamples()
const
;
67
QList<GLuint64> waitForIntervals()
const
;
68
69
void
reset
();
70
71
private
:
72
Q_DECLARE_PRIVATE(
QOpenGLTimeMonitor
)
73
Q_DISABLE_COPY(
QOpenGLTimeMonitor
)
74
};
75
76
QT_END_NAMESPACE
77
78
#endif
// QT_NO_OPENGL
79
80
#endif
// QOPENGLTIMERQUERY_H
QObject
\inmodule QtCore
Definition
qobject.h:103
QOpenGLTimeMonitorPrivate
Definition
qopengltimerquery.cpp:429
QOpenGLTimeMonitor
The QOpenGLTimeMonitor class wraps a sequence of OpenGL timer query objects.
Definition
qopengltimerquery.h:47
QOpenGLTimerQueryPrivate
Definition
qopengltimerquery.cpp:40
QOpenGLTimerQuery
The QOpenGLTimerQuery class wraps an OpenGL timer query object.
Definition
qopengltimerquery.h:19
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
GLuint64
uint64_t GLuint64
Definition
qopengl.h:233
end
GLuint GLuint end
Definition
qopengles2ext.h:354
reset
GLboolean reset
Definition
qopenglext.h:2748
begin
QtPrivate::QRegularExpressionMatchIteratorRangeBasedForIterator begin(const QRegularExpressionMatchIterator &iterator)
Definition
qregularexpression.cpp:2733
GLuint
#define GLuint
Definition
qsgabstractrenderer_p.h:23
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
create
view create()
qtbase
src
opengl
qopengltimerquery.h
Generated by
1.10.0