qopenglfunctions_2_0.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/opengl/qopenglfunctions_2_0.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QOpenGLFunctions_2_0::QOpenGLFunctions_2_0()-
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_1_0_Deprecated(0)-
13 , d_1_1_Deprecated(0)-
14 , d_1_2_Deprecated(0)-
15 , d_1_3_Deprecated(0)-
16 , d_1_4_Deprecated(0)-
17 , m_reserved_2_0_Deprecated(nullptr)-
18{-
19}
never executed: end of block
0
20-
21QOpenGLFunctions_2_0::~QOpenGLFunctions_2_0()-
22{-
23 if (d_1_0_Core
d_1_0_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
24 d_1_0_Core->refs.deref();
never executed: d_1_0_Core->refs.deref();
0
25 ((!(d_1_0_Core->refs.load())) ? qt_assert("d_1_0_Core->refs.load()",__FILE__,90) : qt_noop());-
26 if (d_1_1_Core
d_1_1_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
27 d_1_1_Core->refs.deref();
never executed: d_1_1_Core->refs.deref();
0
28 ((!(d_1_1_Core->refs.load())) ? qt_assert("d_1_1_Core->refs.load()",__FILE__,93) : qt_noop());-
29 if (d_1_2_Core
d_1_2_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
30 d_1_2_Core->refs.deref();
never executed: d_1_2_Core->refs.deref();
0
31 ((!(d_1_2_Core->refs.load())) ? qt_assert("d_1_2_Core->refs.load()",__FILE__,96) : qt_noop());-
32 if (d_1_3_Core
d_1_3_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
33 d_1_3_Core->refs.deref();
never executed: d_1_3_Core->refs.deref();
0
34 ((!(d_1_3_Core->refs.load())) ? qt_assert("d_1_3_Core->refs.load()",__FILE__,99) : qt_noop());-
35 if (d_1_4_Core
d_1_4_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
36 d_1_4_Core->refs.deref();
never executed: d_1_4_Core->refs.deref();
0
37 ((!(d_1_4_Core->refs.load())) ? qt_assert("d_1_4_Core->refs.load()",__FILE__,102) : qt_noop());-
38 if (d_1_5_Core
d_1_5_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
39 d_1_5_Core->refs.deref();
never executed: d_1_5_Core->refs.deref();
0
40 ((!(d_1_5_Core->refs.load())) ? qt_assert("d_1_5_Core->refs.load()",__FILE__,105) : qt_noop());-
41 if (d_2_0_Core
d_2_0_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
42 d_2_0_Core->refs.deref();
never executed: d_2_0_Core->refs.deref();
0
43 ((!(d_2_0_Core->refs.load())) ? qt_assert("d_2_0_Core->refs.load()",__FILE__,108) : qt_noop());-
44 if (d_1_0_Deprecated
d_1_0_DeprecatedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
45 d_1_0_Deprecated->refs.deref();
never executed: d_1_0_Deprecated->refs.deref();
0
46 ((!(d_1_0_Deprecated->refs.load())) ? qt_assert("d_1_0_Deprecated->refs.load()",__FILE__,111) : qt_noop());-
47 if (d_1_1_Deprecated
d_1_1_DeprecatedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
48 d_1_1_Deprecated->refs.deref();
never executed: d_1_1_Deprecated->refs.deref();
0
49 ((!(d_1_1_Deprecated->refs.load())) ? qt_assert("d_1_1_Deprecated->refs.load()",__FILE__,114) : qt_noop());-
50 if (d_1_2_Deprecated
d_1_2_DeprecatedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
51 d_1_2_Deprecated->refs.deref();
never executed: d_1_2_Deprecated->refs.deref();
0
52 ((!(d_1_2_Deprecated->refs.load())) ? qt_assert("d_1_2_Deprecated->refs.load()",__FILE__,117) : qt_noop());-
53 if (d_1_3_Deprecated
d_1_3_DeprecatedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
54 d_1_3_Deprecated->refs.deref();
never executed: d_1_3_Deprecated->refs.deref();
0
55 ((!(d_1_3_Deprecated->refs.load())) ? qt_assert("d_1_3_Deprecated->refs.load()",__FILE__,120) : qt_noop());-
56 if (d_1_4_Deprecated
d_1_4_DeprecatedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
57 d_1_4_Deprecated->refs.deref();
never executed: d_1_4_Deprecated->refs.deref();
0
58 ((!(d_1_4_Deprecated->refs.load())) ? qt_assert("d_1_4_Deprecated->refs.load()",__FILE__,123) : qt_noop());-
59}
never executed: end of block
0
60-
61bool QOpenGLFunctions_2_0::initializeOpenGLFunctions()-
62{-
63 if ( isInitialized()
isInitialized()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
64 return
never executed: return true;
true;
never executed: return true;
0
65-
66 QOpenGLContext* context = QOpenGLContext::currentContext();-
67-
68-
69-
70 if (((owningContext()
owningContext()Description
TRUEnever evaluated
FALSEnever evaluated
&& owningContext() == context
owningContext() == contextDescription
TRUEnever evaluated
FALSEnever evaluated
) || !owningContext()
!owningContext()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
71 && QOpenGLFunctions_2_0::isContextCompatible(context)
QOpenGLFunctio...tible(context)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
72 {-
73-
74-
75 QOpenGLVersionFunctionsBackend* d = 0;-
76 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus());-
77 d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d);-
78 d->refs.ref();-
79-
80 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus());-
81 d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d);-
82 d->refs.ref();-
83-
84 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus());-
85 d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d);-
86 d->refs.ref();-
87-
88 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus());-
89 d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d);-
90 d->refs.ref();-
91-
92 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus());-
93 d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d);-
94 d->refs.ref();-
95-
96 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus());-
97 d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d);-
98 d->refs.ref();-
99-
100 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus());-
101 d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d);-
102 d->refs.ref();-
103-
104 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus());-
105 d_1_0_Deprecated = static_cast<QOpenGLFunctions_1_0_DeprecatedBackend*>(d);-
106 d->refs.ref();-
107-
108 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus());-
109 d_1_1_Deprecated = static_cast<QOpenGLFunctions_1_1_DeprecatedBackend*>(d);-
110 d->refs.ref();-
111-
112 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus());-
113 d_1_2_Deprecated = static_cast<QOpenGLFunctions_1_2_DeprecatedBackend*>(d);-
114 d->refs.ref();-
115-
116 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus());-
117 d_1_3_Deprecated = static_cast<QOpenGLFunctions_1_3_DeprecatedBackend*>(d);-
118 d->refs.ref();-
119-
120 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus());-
121 d_1_4_Deprecated = static_cast<QOpenGLFunctions_1_4_DeprecatedBackend*>(d);-
122 d->refs.ref();-
123-
124 QAbstractOpenGLFunctions::initializeOpenGLFunctions();-
125 }
never executed: end of block
0
126 return
never executed: return isInitialized();
isInitialized();
never executed: return isInitialized();
0
127}-
128-
129bool QOpenGLFunctions_2_0::isContextCompatible(QOpenGLContext *context)-
130{-
131 ((!(context)) ? qt_assert("context",__FILE__,196) : qt_noop());-
132 QSurfaceFormat f = context->format();-
133 const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion());-
134 if (v < qMakePair(2, 0)
v < qMakePair(2, 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
135 return
never executed: return false;
false;
never executed: return false;
0
136-
137 if (f.profile() == QSurfaceFormat::CoreProfile
f.profile() ==...t::CoreProfileDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
138 return
never executed: return false;
false;
never executed: return false;
0
139-
140 return
never executed: return true;
true;
never executed: return true;
0
141}-
142-
143QOpenGLVersionProfile QOpenGLFunctions_2_0::versionProfile()-
144{-
145 QOpenGLVersionProfile v;-
146 v.setVersion(2, 0);-
147 return
never executed: return v;
v;
never executed: return v;
0
148}-
149-
150-
Switch to Source codePreprocessed file

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