Qt 4.8
qt-4.8.6
src
gui
egl
qeglproperties_stub.cpp
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4
** Contact: http://www.qt-project.org/legal
5
**
6
** This file is part of the QtGui module of the Qt Toolkit.
7
**
8
** $QT_BEGIN_LICENSE:LGPL$
9
** Commercial License Usage
10
** Licensees holding valid commercial Qt licenses may use this file in
11
** accordance with the commercial license agreement provided with the
12
** Software or, alternatively, in accordance with the terms contained in
13
** a written agreement between you and Digia. For licensing terms and
14
** conditions see http://qt.digia.com/licensing. For further information
15
** use the contact form at http://qt.digia.com/contact-us.
16
**
17
** GNU Lesser General Public License Usage
18
** Alternatively, this file may be used under the terms of the GNU Lesser
19
** General Public License version 2.1 as published by the Free Software
20
** Foundation and appearing in the file LICENSE.LGPL included in the
21
** packaging of this file. Please review the following information to
22
** ensure the GNU Lesser General Public License version 2.1 requirements
23
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24
**
25
** In addition, as a special exception, Digia gives you certain additional
26
** rights. These rights are described in the Digia Qt LGPL Exception
27
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28
**
29
** GNU General Public License Usage
30
** Alternatively, this file may be used under the terms of the GNU
31
** General Public License version 3.0 as published by the Free Software
32
** Foundation and appearing in the file LICENSE.GPL included in the
33
** packaging of this file. Please review the following information to
34
** ensure the GNU General Public License version 3.0 requirements will be
35
** met: http://www.gnu.org/copyleft/gpl.html.
36
**
37
**
38
** $QT_END_LICENSE$
39
**
40
****************************************************************************/
41
42
#include <QtCore/qdebug.h>
43
#include <QtCore/qstringlist.h>
44
45
#include "
qeglproperties_p.h
"
46
#include "
qeglcontext_p.h
"
47
48
QT_BEGIN_NAMESPACE
49
50
static
void
noegl
(
const
char
*fn)
51
{
52
qWarning
() << fn <<
" called, but Qt configured without EGL"
<<
endl
;
53
}
54
55
#define NOEGL noegl(__FUNCTION__);
56
57
// Initialize a property block.
58
QEglProperties::QEglProperties
()
59
{
60
NOEGL
61
}
62
63
QEglProperties::QEglProperties
(EGLConfig cfg)
64
{
65
Q_UNUSED
(cfg)
66
NOEGL
67
}
68
69
// Fetch the current value associated with a property.
70
int
QEglProperties::value
(
int
name
)
const
71
{
72
Q_UNUSED
(name)
73
NOEGL
74
return
0;
75
}
76
77
// Set the value associated with a property, replacing an existing
78
// value if there is one.
79
void
QEglProperties::setValue
(
int
name
,
int
value
)
80
{
81
Q_UNUSED
(
name
)
82
Q_UNUSED
(value)
83
NOEGL
84
}
85
86
// Remove a property value. Returns false if the property is not present.
87
bool
QEglProperties::removeValue
(
int
name
)
88
{
89
Q_UNUSED
(name)
90
NOEGL
91
return
false
;
92
}
93
94
void
QEglProperties::setDeviceType
(
int
devType)
95
{
96
Q_UNUSED
(devType)
97
NOEGL
98
}
99
100
101
// Sets the red, green, blue, and alpha sizes based on a pixel format.
102
// Normally used to match a configuration request to the screen format.
103
void
QEglProperties::setPixelFormat
(
QImage::Format
pixelFormat)
104
{
105
Q_UNUSED
(pixelFormat)
106
NOEGL
107
108
}
109
110
void
QEglProperties::setRenderableType
(
QEgl::API
api)
111
{
112
Q_UNUSED
(api);
113
NOEGL
114
}
115
116
// Reduce the complexity of a configuration request to ask for less
117
// because the previous request did not result in success. Returns
118
// true if the complexity was reduced, or false if no further
119
// reductions in complexity are possible.
120
bool
QEglProperties::reduceConfiguration
()
121
{
122
NOEGL
123
return
false
;
124
}
125
126
static
void
addTag
(
QString
& str,
const
QString
& tag)
127
{
128
Q_UNUSED
(str)
129
Q_UNUSED
(tag)
130
NOEGL
131
}
132
133
// Convert a property list to a string suitable for debug output.
134
QString
QEglProperties::toString
()
const
135
{
136
NOEGL
137
return
QString
();
138
}
139
140
void
QEglProperties::setPaintDeviceFormat
(
QPaintDevice
*dev)
141
{
142
Q_UNUSED
(dev)
143
NOEGL
144
}
145
146
QT_END_NAMESPACE
147
148
QTextStream::endl
QTextStream & endl(QTextStream &stream)
Writes ' ' to the stream and flushes the stream.
Definition:
qtextstream.cpp:3032
QImage::Format
Format
The following image formats are available in Qt.
Definition:
qimage.h:91
QT_END_NAMESPACE
#define QT_END_NAMESPACE
This macro expands to.
Definition:
qglobal.h:90
QEglProperties::removeValue
bool removeValue(int name)
Definition:
qeglproperties.cpp:152
QEglProperties::toString
QString toString() const
Definition:
qeglproperties.cpp:301
QEglProperties::value
int value(int name) const
Definition:
qeglproperties.cpp:68
QString
The QString class provides a Unicode character string.
Definition:
qstring.h:83
QEglProperties::setValue
void setValue(int name, int value)
Definition:
qeglproperties.cpp:138
QT_BEGIN_NAMESPACE
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition:
qglobal.h:89
QPaintDevice
Definition:
qpaintdevice.h:60
QEglProperties::setRenderableType
void setRenderableType(QEgl::API api)
Definition:
qeglproperties.cpp:216
addTag
static void addTag(QString &str, const QString &tag)
Definition:
qeglproperties_stub.cpp:126
name
const char * name
Definition:
qkeysequence.cpp:396
qeglproperties_p.h
qWarning
Q_CORE_EXPORT void qWarning(const char *,...)
qeglcontext_p.h
QEglProperties::reduceConfiguration
bool reduceConfiguration()
Definition:
qeglproperties.cpp:242
noegl
static void noegl(const char *fn)
Definition:
qeglproperties_stub.cpp:50
QEglProperties::QEglProperties
QEglProperties()
Definition:
qeglproperties.cpp:51
NOEGL
#define NOEGL
Definition:
qeglproperties_stub.cpp:55
QEglProperties::setPaintDeviceFormat
void setPaintDeviceFormat(QPaintDevice *dev)
Definition:
qegl_qpa.cpp:93
QEglProperties::setPixelFormat
void setPixelFormat(QImage::Format pixelFormat)
Definition:
qeglproperties.cpp:180
QEgl::API
API
Definition:
qegl_p.h:190
QEglProperties::setDeviceType
void setDeviceType(int devType)
Definition:
qeglproperties.cpp:167
Q_UNUSED
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition:
qglobal.h:1729
Qt 4.8 Source Code Browser