qopenglfunctions_3_2_core.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/opengl/qopenglfunctions_3_2_core.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QOpenGLFunctions_3_2_Core::QOpenGLFunctions_3_2_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{-
17}
never executed: end of block
0
18-
19QOpenGLFunctions_3_2_Core::~QOpenGLFunctions_3_2_Core()-
20{-
21 if (d_1_0_Core
d_1_0_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d_1_0_Core->refs.deref()
!d_1_0_Core->refs.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
22 QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Core->context, QOpenGLFunctions_1_0_CoreBackend::versionStatus());-
23 delete d_1_0_Core;-
24 }
never executed: end of block
0
25 if (d_1_1_Core
d_1_1_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d_1_1_Core->refs.deref()
!d_1_1_Core->refs.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
26 QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Core->context, QOpenGLFunctions_1_1_CoreBackend::versionStatus());-
27 delete d_1_1_Core;-
28 }
never executed: end of block
0
29 if (d_1_2_Core
d_1_2_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d_1_2_Core->refs.deref()
!d_1_2_Core->refs.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
30 QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Core->context, QOpenGLFunctions_1_2_CoreBackend::versionStatus());-
31 delete d_1_2_Core;-
32 }
never executed: end of block
0
33 if (d_1_3_Core
d_1_3_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d_1_3_Core->refs.deref()
!d_1_3_Core->refs.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
34 QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Core->context, QOpenGLFunctions_1_3_CoreBackend::versionStatus());-
35 delete d_1_3_Core;-
36 }
never executed: end of block
0
37 if (d_1_4_Core
d_1_4_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d_1_4_Core->refs.deref()
!d_1_4_Core->refs.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
38 QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Core->context, QOpenGLFunctions_1_4_CoreBackend::versionStatus());-
39 delete d_1_4_Core;-
40 }
never executed: end of block
0
41 if (d_1_5_Core
d_1_5_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d_1_5_Core->refs.deref()
!d_1_5_Core->refs.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
42 QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_5_Core->context, QOpenGLFunctions_1_5_CoreBackend::versionStatus());-
43 delete d_1_5_Core;-
44 }
never executed: end of block
0
45 if (d_2_0_Core
d_2_0_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d_2_0_Core->refs.deref()
!d_2_0_Core->refs.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
46 QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_0_Core->context, QOpenGLFunctions_2_0_CoreBackend::versionStatus());-
47 delete d_2_0_Core;-
48 }
never executed: end of block
0
49 if (d_2_1_Core
d_2_1_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d_2_1_Core->refs.deref()
!d_2_1_Core->refs.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
50 QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_1_Core->context, QOpenGLFunctions_2_1_CoreBackend::versionStatus());-
51 delete d_2_1_Core;-
52 }
never executed: end of block
0
53 if (d_3_0_Core
d_3_0_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d_3_0_Core->refs.deref()
!d_3_0_Core->refs.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
54 QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_0_Core->context, QOpenGLFunctions_3_0_CoreBackend::versionStatus());-
55 delete d_3_0_Core;-
56 }
never executed: end of block
0
57 if (d_3_1_Core
d_3_1_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d_3_1_Core->refs.deref()
!d_3_1_Core->refs.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
58 QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_1_Core->context, QOpenGLFunctions_3_1_CoreBackend::versionStatus());-
59 delete d_3_1_Core;-
60 }
never executed: end of block
0
61 if (d_3_2_Core
d_3_2_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d_3_2_Core->refs.deref()
!d_3_2_Core->refs.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
62 QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_2_Core->context, QOpenGLFunctions_3_2_CoreBackend::versionStatus());-
63 delete d_3_2_Core;-
64 }
never executed: end of block
0
65}
never executed: end of block
0
66-
67bool QOpenGLFunctions_3_2_Core::initializeOpenGLFunctions()-
68{-
69 if ( isInitialized()
isInitialized()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
70 return
never executed: return true;
true;
never executed: return true;
0
71-
72 QOpenGLContext* context = QOpenGLContext::currentContext();-
73-
74-
75-
76 if (((owningContext()
owningContext()Description
TRUEnever evaluated
FALSEnever evaluated
&& owningContext() == context
owningContext() == contextDescription
TRUEnever evaluated
FALSEnever evaluated
) || !owningContext()
!owningContext()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
77 && QOpenGLFunctions_3_2_Core::isContextCompatible(context)
QOpenGLFunctio...tible(context)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
78 {-
79-
80-
81 QOpenGLVersionFunctionsBackend* d = 0;-
82 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus());-
83 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
84 d = new QOpenGLFunctions_1_0_CoreBackend(context);-
85 QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus(), d);-
86 }
never executed: end of block
0
87 d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d);-
88 d->refs.ref();-
89-
90 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus());-
91 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
92 d = new QOpenGLFunctions_1_1_CoreBackend(context);-
93 QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus(), d);-
94 }
never executed: end of block
0
95 d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d);-
96 d->refs.ref();-
97-
98 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus());-
99 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
100 d = new QOpenGLFunctions_1_2_CoreBackend(context);-
101 QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus(), d);-
102 }
never executed: end of block
0
103 d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d);-
104 d->refs.ref();-
105-
106 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus());-
107 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
108 d = new QOpenGLFunctions_1_3_CoreBackend(context);-
109 QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus(), d);-
110 }
never executed: end of block
0
111 d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d);-
112 d->refs.ref();-
113-
114 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus());-
115 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
116 d = new QOpenGLFunctions_1_4_CoreBackend(context);-
117 QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus(), d);-
118 }
never executed: end of block
0
119 d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d);-
120 d->refs.ref();-
121-
122 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus());-
123 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
124 d = new QOpenGLFunctions_1_5_CoreBackend(context);-
125 QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus(), d);-
126 }
never executed: end of block
0
127 d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d);-
128 d->refs.ref();-
129-
130 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus());-
131 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
132 d = new QOpenGLFunctions_2_0_CoreBackend(context);-
133 QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus(), d);-
134 }
never executed: end of block
0
135 d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d);-
136 d->refs.ref();-
137-
138 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus());-
139 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
140 d = new QOpenGLFunctions_2_1_CoreBackend(context);-
141 QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus(), d);-
142 }
never executed: end of block
0
143 d_2_1_Core = static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d);-
144 d->refs.ref();-
145-
146 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus());-
147 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
148 d = new QOpenGLFunctions_3_0_CoreBackend(context);-
149 QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus(), d);-
150 }
never executed: end of block
0
151 d_3_0_Core = static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d);-
152 d->refs.ref();-
153-
154 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus());-
155 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
156 d = new QOpenGLFunctions_3_1_CoreBackend(context);-
157 QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus(), d);-
158 }
never executed: end of block
0
159 d_3_1_Core = static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d);-
160 d->refs.ref();-
161-
162 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus());-
163 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
164 d = new QOpenGLFunctions_3_2_CoreBackend(context);-
165 QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus(), d);-
166 }
never executed: end of block
0
167 d_3_2_Core = static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d);-
168 d->refs.ref();-
169-
170 QAbstractOpenGLFunctions::initializeOpenGLFunctions();-
171 }
never executed: end of block
0
172 return
never executed: return isInitialized();
isInitialized();
never executed: return isInitialized();
0
173}-
174-
175bool QOpenGLFunctions_3_2_Core::isContextCompatible(QOpenGLContext *context)-
176{-
177 ((!(context)) ? qt_assert("context",__FILE__,236) : qt_noop());-
178 QSurfaceFormat f = context->format();-
179 const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion());-
180 if (v < qMakePair(3, 2)
v < qMakePair(3, 2)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
181 return
never executed: return false;
false;
never executed: return false;
0
182-
183 return
never executed: return true;
true;
never executed: return true;
0
184}-
185-
186QOpenGLVersionProfile QOpenGLFunctions_3_2_Core::versionProfile()-
187{-
188 QOpenGLVersionProfile v;-
189 v.setVersion(3, 2);-
190 v.setProfile(QSurfaceFormat::CoreProfile);-
191 return
never executed: return v;
v;
never executed: return v;
0
192}-
193-
194-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9