qopenglfunctions_4_4_core.cpp

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

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