Line | Source | Count |
1 | | - |
2 | | - |
3 | QOpenGLFunctions_4_4_Core::QOpenGLFunctions_4_4_Core() | - |
4 | : QAbstractOpenGLFunctions() | - |
5 | , d_1_0_Core(0) | - |
6 | , d_1_1_Core(0) | - |
7 | , d_1_2_Core(0) | - |
8 | , d_1_3_Core(0) | - |
9 | , d_1_4_Core(0) | - |
10 | , d_1_5_Core(0) | - |
11 | , d_2_0_Core(0) | - |
12 | , d_2_1_Core(0) | - |
13 | , d_3_0_Core(0) | - |
14 | , d_3_1_Core(0) | - |
15 | , d_3_2_Core(0) | - |
16 | , d_3_3_Core(0) | - |
17 | , d_4_0_Core(0) | - |
18 | , d_4_1_Core(0) | - |
19 | , d_4_2_Core(0) | - |
20 | , d_4_3_Core(0) | - |
21 | , d_4_4_Core(0) | - |
22 | { | - |
23 | } never executed: end of block | 0 |
24 | | - |
25 | QOpenGLFunctions_4_4_Core::~QOpenGLFunctions_4_4_Core() | - |
26 | { | - |
27 | if (d_1_0_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_1_0_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
28 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Core->context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
29 | delete d_1_0_Core; | - |
30 | } never executed: end of block | 0 |
31 | if (d_1_1_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_1_1_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
32 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Core->context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
33 | delete d_1_1_Core; | - |
34 | } never executed: end of block | 0 |
35 | if (d_1_2_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_1_2_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
36 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Core->context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
37 | delete d_1_2_Core; | - |
38 | } never executed: end of block | 0 |
39 | if (d_1_3_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_1_3_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
40 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Core->context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
41 | delete d_1_3_Core; | - |
42 | } never executed: end of block | 0 |
43 | if (d_1_4_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_1_4_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
44 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Core->context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
45 | delete d_1_4_Core; | - |
46 | } never executed: end of block | 0 |
47 | if (d_1_5_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_1_5_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
48 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_5_Core->context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
49 | delete d_1_5_Core; | - |
50 | } never executed: end of block | 0 |
51 | if (d_2_0_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_2_0_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
52 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_0_Core->context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
53 | delete d_2_0_Core; | - |
54 | } never executed: end of block | 0 |
55 | if (d_2_1_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_2_1_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
56 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_1_Core->context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
57 | delete d_2_1_Core; | - |
58 | } never executed: end of block | 0 |
59 | if (d_3_0_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_3_0_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
60 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_0_Core->context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
61 | delete d_3_0_Core; | - |
62 | } never executed: end of block | 0 |
63 | if (d_3_1_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_3_1_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
64 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_1_Core->context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
65 | delete d_3_1_Core; | - |
66 | } never executed: end of block | 0 |
67 | if (d_3_2_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_3_2_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
68 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_2_Core->context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
69 | delete d_3_2_Core; | - |
70 | } never executed: end of block | 0 |
71 | if (d_3_3_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_3_3_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
72 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_3_Core->context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
73 | delete d_3_3_Core; | - |
74 | } never executed: end of block | 0 |
75 | if (d_4_0_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_4_0_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
76 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_0_Core->context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
77 | delete d_4_0_Core; | - |
78 | } never executed: end of block | 0 |
79 | if (d_4_1_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_4_1_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
80 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_1_Core->context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
81 | delete d_4_1_Core; | - |
82 | } never executed: end of block | 0 |
83 | if (d_4_2_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_4_2_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
84 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_2_Core->context, QOpenGLFunctions_4_2_CoreBackend::versionStatus()); | - |
85 | delete d_4_2_Core; | - |
86 | } never executed: end of block | 0 |
87 | if (d_4_3_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_4_3_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
88 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_3_Core->context, QOpenGLFunctions_4_3_CoreBackend::versionStatus()); | - |
89 | delete d_4_3_Core; | - |
90 | } never executed: end of block | 0 |
91 | if (d_4_4_CoreTRUE | never evaluated | FALSE | never evaluated |
&& !d_4_4_Core->refs.deref()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
92 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_4_Core->context, QOpenGLFunctions_4_4_CoreBackend::versionStatus()); | - |
93 | delete d_4_4_Core; | - |
94 | } never executed: end of block | 0 |
95 | } never executed: end of block | 0 |
96 | | - |
97 | bool QOpenGLFunctions_4_4_Core::initializeOpenGLFunctions() | - |
98 | { | - |
99 | if ( isInitialized()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
100 | return never executed: return true; true;never executed: return true; | 0 |
101 | | - |
102 | QOpenGLContext* context = QOpenGLContext::currentContext(); | - |
103 | | - |
104 | | - |
105 | | - |
106 | if (((owningContext()TRUE | never evaluated | FALSE | never evaluated |
&& owningContext() == contextTRUE | never evaluated | FALSE | never evaluated |
) || !owningContext()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
107 | && QOpenGLFunctions_4_4_Core::isContextCompatible(context)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
108 | { | - |
109 | | - |
110 | | - |
111 | QOpenGLVersionFunctionsBackend* d = 0; | - |
112 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
113 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
114 | d = new QOpenGLFunctions_1_0_CoreBackend(context); | - |
115 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus(), d); | - |
116 | } never executed: end of block | 0 |
117 | d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d); | - |
118 | d->refs.ref(); | - |
119 | | - |
120 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
121 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
122 | d = new QOpenGLFunctions_1_1_CoreBackend(context); | - |
123 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus(), d); | - |
124 | } never executed: end of block | 0 |
125 | d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d); | - |
126 | d->refs.ref(); | - |
127 | | - |
128 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
129 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
130 | d = new QOpenGLFunctions_1_2_CoreBackend(context); | - |
131 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus(), d); | - |
132 | } never executed: end of block | 0 |
133 | d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d); | - |
134 | d->refs.ref(); | - |
135 | | - |
136 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
137 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
138 | d = new QOpenGLFunctions_1_3_CoreBackend(context); | - |
139 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus(), d); | - |
140 | } never executed: end of block | 0 |
141 | d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d); | - |
142 | d->refs.ref(); | - |
143 | | - |
144 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
145 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
146 | d = new QOpenGLFunctions_1_4_CoreBackend(context); | - |
147 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus(), d); | - |
148 | } never executed: end of block | 0 |
149 | d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d); | - |
150 | d->refs.ref(); | - |
151 | | - |
152 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
153 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
154 | d = new QOpenGLFunctions_1_5_CoreBackend(context); | - |
155 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus(), d); | - |
156 | } never executed: end of block | 0 |
157 | d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d); | - |
158 | d->refs.ref(); | - |
159 | | - |
160 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
161 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
162 | d = new QOpenGLFunctions_2_0_CoreBackend(context); | - |
163 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus(), d); | - |
164 | } never executed: end of block | 0 |
165 | d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d); | - |
166 | d->refs.ref(); | - |
167 | | - |
168 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
169 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
170 | d = new QOpenGLFunctions_2_1_CoreBackend(context); | - |
171 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus(), d); | - |
172 | } never executed: end of block | 0 |
173 | d_2_1_Core = static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d); | - |
174 | d->refs.ref(); | - |
175 | | - |
176 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
177 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
178 | d = new QOpenGLFunctions_3_0_CoreBackend(context); | - |
179 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus(), d); | - |
180 | } never executed: end of block | 0 |
181 | d_3_0_Core = static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d); | - |
182 | d->refs.ref(); | - |
183 | | - |
184 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
185 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
186 | d = new QOpenGLFunctions_3_1_CoreBackend(context); | - |
187 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus(), d); | - |
188 | } never executed: end of block | 0 |
189 | d_3_1_Core = static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d); | - |
190 | d->refs.ref(); | - |
191 | | - |
192 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
193 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
194 | d = new QOpenGLFunctions_3_2_CoreBackend(context); | - |
195 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus(), d); | - |
196 | } never executed: end of block | 0 |
197 | d_3_2_Core = static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d); | - |
198 | d->refs.ref(); | - |
199 | | - |
200 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
201 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
202 | d = new QOpenGLFunctions_3_3_CoreBackend(context); | - |
203 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus(), d); | - |
204 | } never executed: end of block | 0 |
205 | d_3_3_Core = static_cast<QOpenGLFunctions_3_3_CoreBackend*>(d); | - |
206 | d->refs.ref(); | - |
207 | | - |
208 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
209 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
210 | d = new QOpenGLFunctions_4_0_CoreBackend(context); | - |
211 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus(), d); | - |
212 | } never executed: end of block | 0 |
213 | d_4_0_Core = static_cast<QOpenGLFunctions_4_0_CoreBackend*>(d); | - |
214 | d->refs.ref(); | - |
215 | | - |
216 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
217 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
218 | d = new QOpenGLFunctions_4_1_CoreBackend(context); | - |
219 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus(), d); | - |
220 | } never executed: end of block | 0 |
221 | d_4_1_Core = static_cast<QOpenGLFunctions_4_1_CoreBackend*>(d); | - |
222 | d->refs.ref(); | - |
223 | | - |
224 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus()); | - |
225 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
226 | d = new QOpenGLFunctions_4_2_CoreBackend(context); | - |
227 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus(), d); | - |
228 | } never executed: end of block | 0 |
229 | d_4_2_Core = static_cast<QOpenGLFunctions_4_2_CoreBackend*>(d); | - |
230 | d->refs.ref(); | - |
231 | | - |
232 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus()); | - |
233 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
234 | d = new QOpenGLFunctions_4_3_CoreBackend(context); | - |
235 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus(), d); | - |
236 | } never executed: end of block | 0 |
237 | d_4_3_Core = static_cast<QOpenGLFunctions_4_3_CoreBackend*>(d); | - |
238 | d->refs.ref(); | - |
239 | | - |
240 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_4_CoreBackend::versionStatus()); | - |
241 | if (!dTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
242 | d = new QOpenGLFunctions_4_4_CoreBackend(context); | - |
243 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_4_CoreBackend::versionStatus(), d); | - |
244 | } never executed: end of block | 0 |
245 | d_4_4_Core = static_cast<QOpenGLFunctions_4_4_CoreBackend*>(d); | - |
246 | d->refs.ref(); | - |
247 | | - |
248 | QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - |
249 | } never executed: end of block | 0 |
250 | return never executed: return isInitialized(); isInitialized();never executed: return isInitialized(); | 0 |
251 | } | - |
252 | | - |
253 | bool QOpenGLFunctions_4_4_Core::isContextCompatible(QOpenGLContext *context) | - |
254 | { | - |
255 | ((!(context)) ? qt_assert("context",__FILE__,314) : qt_noop()); | - |
256 | QSurfaceFormat f = context->format(); | - |
257 | const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - |
258 | if (v < qMakePair(4, 4)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
259 | return never executed: return false; false;never executed: return false; | 0 |
260 | | - |
261 | return never executed: return true; true;never executed: return true; | 0 |
262 | } | - |
263 | | - |
264 | QOpenGLVersionProfile QOpenGLFunctions_4_4_Core::versionProfile() | - |
265 | { | - |
266 | QOpenGLVersionProfile v; | - |
267 | v.setVersion(4, 4); | - |
268 | v.setProfile(QSurfaceFormat::CoreProfile); | - |
269 | return never executed: return v; v;never executed: return v; | 0 |
270 | } | - |
271 | | - |
272 | | - |
| | |