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
)
0
22 d_1_0_Core->refs.deref();
never executed: d_1_0_Core->refs.deref();
0
23 ((!(d_1_0_Core->refs.load())) ? qt_assert("d_1_0_Core->refs.load()",__FILE__,88) : qt_noop());-
24 if (d_1_1_Core
d_1_1_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
25 d_1_1_Core->refs.deref();
never executed: d_1_1_Core->refs.deref();
0
26 ((!(d_1_1_Core->refs.load())) ? qt_assert("d_1_1_Core->refs.load()",__FILE__,91) : qt_noop());-
27 if (d_1_2_Core
d_1_2_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
28 d_1_2_Core->refs.deref();
never executed: d_1_2_Core->refs.deref();
0
29 ((!(d_1_2_Core->refs.load())) ? qt_assert("d_1_2_Core->refs.load()",__FILE__,94) : qt_noop());-
30 if (d_1_3_Core
d_1_3_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
31 d_1_3_Core->refs.deref();
never executed: d_1_3_Core->refs.deref();
0
32 ((!(d_1_3_Core->refs.load())) ? qt_assert("d_1_3_Core->refs.load()",__FILE__,97) : qt_noop());-
33 if (d_1_4_Core
d_1_4_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
34 d_1_4_Core->refs.deref();
never executed: d_1_4_Core->refs.deref();
0
35 ((!(d_1_4_Core->refs.load())) ? qt_assert("d_1_4_Core->refs.load()",__FILE__,100) : qt_noop());-
36 if (d_1_5_Core
d_1_5_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
37 d_1_5_Core->refs.deref();
never executed: d_1_5_Core->refs.deref();
0
38 ((!(d_1_5_Core->refs.load())) ? qt_assert("d_1_5_Core->refs.load()",__FILE__,103) : qt_noop());-
39 if (d_2_0_Core
d_2_0_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
40 d_2_0_Core->refs.deref();
never executed: d_2_0_Core->refs.deref();
0
41 ((!(d_2_0_Core->refs.load())) ? qt_assert("d_2_0_Core->refs.load()",__FILE__,106) : qt_noop());-
42 if (d_2_1_Core
d_2_1_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
43 d_2_1_Core->refs.deref();
never executed: d_2_1_Core->refs.deref();
0
44 ((!(d_2_1_Core->refs.load())) ? qt_assert("d_2_1_Core->refs.load()",__FILE__,109) : qt_noop());-
45 if (d_3_0_Core
d_3_0_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
46 d_3_0_Core->refs.deref();
never executed: d_3_0_Core->refs.deref();
0
47 ((!(d_3_0_Core->refs.load())) ? qt_assert("d_3_0_Core->refs.load()",__FILE__,112) : qt_noop());-
48 if (d_3_1_Core
d_3_1_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
49 d_3_1_Core->refs.deref();
never executed: d_3_1_Core->refs.deref();
0
50 ((!(d_3_1_Core->refs.load())) ? qt_assert("d_3_1_Core->refs.load()",__FILE__,115) : qt_noop());-
51 if (d_3_2_Core
d_3_2_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
52 d_3_2_Core->refs.deref();
never executed: d_3_2_Core->refs.deref();
0
53 ((!(d_3_2_Core->refs.load())) ? qt_assert("d_3_2_Core->refs.load()",__FILE__,118) : qt_noop());-
54}
never executed: end of block
0
55-
56bool QOpenGLFunctions_3_2_Core::initializeOpenGLFunctions()-
57{-
58 if ( isInitialized()
isInitialized()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
59 return
never executed: return true;
true;
never executed: return true;
0
60-
61 QOpenGLContext* context = QOpenGLContext::currentContext();-
62-
63-
64-
65 if (((owningContext()
owningContext()Description
TRUEnever evaluated
FALSEnever evaluated
&& owningContext() == context
owningContext() == contextDescription
TRUEnever evaluated
FALSEnever evaluated
) || !owningContext()
!owningContext()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
66 && QOpenGLFunctions_3_2_Core::isContextCompatible(context)
QOpenGLFunctio...tible(context)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
67 {-
68-
69-
70 QOpenGLVersionFunctionsBackend* d = 0;-
71 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus());-
72 d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d);-
73 d->refs.ref();-
74-
75 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus());-
76 d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d);-
77 d->refs.ref();-
78-
79 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus());-
80 d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d);-
81 d->refs.ref();-
82-
83 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus());-
84 d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d);-
85 d->refs.ref();-
86-
87 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus());-
88 d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d);-
89 d->refs.ref();-
90-
91 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus());-
92 d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d);-
93 d->refs.ref();-
94-
95 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus());-
96 d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d);-
97 d->refs.ref();-
98-
99 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus());-
100 d_2_1_Core = static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d);-
101 d->refs.ref();-
102-
103 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus());-
104 d_3_0_Core = static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d);-
105 d->refs.ref();-
106-
107 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus());-
108 d_3_1_Core = static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d);-
109 d->refs.ref();-
110-
111 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus());-
112 d_3_2_Core = static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d);-
113 d->refs.ref();-
114-
115 QAbstractOpenGLFunctions::initializeOpenGLFunctions();-
116 }
never executed: end of block
0
117 return
never executed: return isInitialized();
isInitialized();
never executed: return isInitialized();
0
118}-
119-
120bool QOpenGLFunctions_3_2_Core::isContextCompatible(QOpenGLContext *context)-
121{-
122 ((!(context)) ? qt_assert("context",__FILE__,187) : qt_noop());-
123 QSurfaceFormat f = context->format();-
124 const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion());-
125 if (v < qMakePair(3, 2)
v < qMakePair(3, 2)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
126 return
never executed: return false;
false;
never executed: return false;
0
127-
128 return
never executed: return true;
true;
never executed: return true;
0
129}-
130-
131QOpenGLVersionProfile QOpenGLFunctions_3_2_Core::versionProfile()-
132{-
133 QOpenGLVersionProfile v;-
134 v.setVersion(3, 2);-
135 v.setProfile(QSurfaceFormat::CoreProfile);-
136 return
never executed: return v;
v;
never executed: return v;
0
137}-
138-
139-
Switch to Source codePreprocessed file

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