|
1 /**************************************************************************** |
|
2 ** |
|
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 ** All rights reserved. |
|
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
|
6 ** |
|
7 ** This file is part of the QtGui module of the Qt Toolkit. |
|
8 ** |
|
9 ** $QT_BEGIN_LICENSE:LGPL$ |
|
10 ** No Commercial Usage |
|
11 ** This file contains pre-release code and may not be distributed. |
|
12 ** You may use this file in accordance with the terms and conditions |
|
13 ** contained in the Technology Preview License Agreement accompanying |
|
14 ** this package. |
|
15 ** |
|
16 ** GNU Lesser General Public License Usage |
|
17 ** Alternatively, this file may be used under the terms of the GNU Lesser |
|
18 ** General Public License version 2.1 as published by the Free Software |
|
19 ** Foundation and appearing in the file LICENSE.LGPL included in the |
|
20 ** packaging of this file. Please review the following information to |
|
21 ** ensure the GNU Lesser General Public License version 2.1 requirements |
|
22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
23 ** |
|
24 ** In addition, as a special exception, Nokia gives you certain additional |
|
25 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
27 ** |
|
28 ** If you have questions regarding the use of this file, please contact |
|
29 ** Nokia at qt-info@nokia.com. |
|
30 ** |
|
31 ** |
|
32 ** |
|
33 ** |
|
34 ** |
|
35 ** |
|
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 |
|
47 QT_BEGIN_NAMESPACE |
|
48 |
|
49 static void noegl(const char *fn) |
|
50 { |
|
51 qWarning() << fn << " called, but Qt configured without EGL" << endl; |
|
52 } |
|
53 |
|
54 #define NOEGL noegl(__FUNCTION__); |
|
55 |
|
56 // Initialize a property block. |
|
57 QEglProperties::QEglProperties() |
|
58 { |
|
59 NOEGL |
|
60 } |
|
61 |
|
62 QEglProperties::QEglProperties(EGLConfig cfg) |
|
63 { |
|
64 Q_UNUSED(cfg) |
|
65 NOEGL |
|
66 } |
|
67 |
|
68 // Fetch the current value associated with a property. |
|
69 int QEglProperties::value(int name) const |
|
70 { |
|
71 Q_UNUSED(name) |
|
72 NOEGL |
|
73 return 0; |
|
74 } |
|
75 |
|
76 // Set the value associated with a property, replacing an existing |
|
77 // value if there is one. |
|
78 void QEglProperties::setValue(int name, int value) |
|
79 { |
|
80 Q_UNUSED(name) |
|
81 Q_UNUSED(value) |
|
82 NOEGL |
|
83 } |
|
84 |
|
85 // Remove a property value. Returns false if the property is not present. |
|
86 bool QEglProperties::removeValue(int name) |
|
87 { |
|
88 Q_UNUSED(name) |
|
89 NOEGL |
|
90 return false; |
|
91 } |
|
92 |
|
93 // Sets the red, green, blue, and alpha sizes based on a pixel format. |
|
94 // Normally used to match a configuration request to the screen format. |
|
95 void QEglProperties::setPixelFormat(QImage::Format pixelFormat) |
|
96 { |
|
97 Q_UNUSED(pixelFormat) |
|
98 NOEGL |
|
99 |
|
100 } |
|
101 |
|
102 void QEglProperties::setRenderableType(QEgl::API api) |
|
103 { |
|
104 Q_UNUSED(api); |
|
105 NOEGL |
|
106 } |
|
107 |
|
108 // Reduce the complexity of a configuration request to ask for less |
|
109 // because the previous request did not result in success. Returns |
|
110 // true if the complexity was reduced, or false if no further |
|
111 // reductions in complexity are possible. |
|
112 bool QEglProperties::reduceConfiguration() |
|
113 { |
|
114 NOEGL |
|
115 return false; |
|
116 } |
|
117 |
|
118 // Convert a property list to a string suitable for debug output. |
|
119 QString QEglProperties::toString() const |
|
120 { |
|
121 NOEGL |
|
122 return QString(); |
|
123 } |
|
124 |
|
125 void QEglProperties::setPaintDeviceFormat(QPaintDevice *dev) |
|
126 { |
|
127 Q_UNUSED(dev) |
|
128 NOEGL |
|
129 } |
|
130 |
|
131 void QEglProperties::dumpAllConfigs() |
|
132 { |
|
133 NOEGL |
|
134 } |
|
135 |
|
136 QT_END_NAMESPACE |
|
137 |
|
138 |