qopenglfunctions_1_1.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/opengl/qopenglfunctions_1_1.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QOpenGLFunctions_1_1::QOpenGLFunctions_1_1()-
4 : QAbstractOpenGLFunctions()-
5 , d_1_0_Core(0)-
6 , d_1_1_Core(0)-
7 , d_1_0_Deprecated(0)-
8 , d_1_1_Deprecated(0)-
9{-
10}
never executed: end of block
0
11-
12QOpenGLFunctions_1_1::~QOpenGLFunctions_1_1()-
13{-
14 if (d_1_0_Core
d_1_0_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
15 d_1_0_Core->refs.deref();
never executed: d_1_0_Core->refs.deref();
0
16 ((!(d_1_0_Core->refs.load())) ? qt_assert("d_1_0_Core->refs.load()",__FILE__,81) : qt_noop());-
17 if (d_1_1_Core
d_1_1_CoreDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
18 d_1_1_Core->refs.deref();
never executed: d_1_1_Core->refs.deref();
0
19 ((!(d_1_1_Core->refs.load())) ? qt_assert("d_1_1_Core->refs.load()",__FILE__,84) : qt_noop());-
20 if (d_1_0_Deprecated
d_1_0_DeprecatedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
21 d_1_0_Deprecated->refs.deref();
never executed: d_1_0_Deprecated->refs.deref();
0
22 ((!(d_1_0_Deprecated->refs.load())) ? qt_assert("d_1_0_Deprecated->refs.load()",__FILE__,87) : qt_noop());-
23 if (d_1_1_Deprecated
d_1_1_DeprecatedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
24 d_1_1_Deprecated->refs.deref();
never executed: d_1_1_Deprecated->refs.deref();
0
25 ((!(d_1_1_Deprecated->refs.load())) ? qt_assert("d_1_1_Deprecated->refs.load()",__FILE__,90) : qt_noop());-
26}
never executed: end of block
0
27-
28bool QOpenGLFunctions_1_1::initializeOpenGLFunctions()-
29{-
30 if ( isInitialized()
isInitialized()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
31 return
never executed: return true;
true;
never executed: return true;
0
32-
33 QOpenGLContext* context = QOpenGLContext::currentContext();-
34-
35-
36-
37 if (((owningContext()
owningContext()Description
TRUEnever evaluated
FALSEnever evaluated
&& owningContext() == context
owningContext() == contextDescription
TRUEnever evaluated
FALSEnever evaluated
) || !owningContext()
!owningContext()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
38 && QOpenGLFunctions_1_1::isContextCompatible(context)
QOpenGLFunctio...tible(context)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
39 {-
40-
41-
42 QOpenGLVersionFunctionsBackend* d = 0;-
43 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus());-
44 d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d);-
45 d->refs.ref();-
46-
47 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus());-
48 d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d);-
49 d->refs.ref();-
50-
51 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus());-
52 d_1_0_Deprecated = static_cast<QOpenGLFunctions_1_0_DeprecatedBackend*>(d);-
53 d->refs.ref();-
54-
55 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus());-
56 d_1_1_Deprecated = static_cast<QOpenGLFunctions_1_1_DeprecatedBackend*>(d);-
57 d->refs.ref();-
58-
59 QAbstractOpenGLFunctions::initializeOpenGLFunctions();-
60 }
never executed: end of block
0
61 return
never executed: return isInitialized();
isInitialized();
never executed: return isInitialized();
0
62}-
63-
64bool QOpenGLFunctions_1_1::isContextCompatible(QOpenGLContext *context)-
65{-
66 ((!(context)) ? qt_assert("context",__FILE__,131) : qt_noop());-
67 QSurfaceFormat f = context->format();-
68 const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion());-
69 if (v < qMakePair(1, 1)
v < qMakePair(1, 1)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
70 return
never executed: return false;
false;
never executed: return false;
0
71-
72 if (f.profile() == QSurfaceFormat::CoreProfile
f.profile() ==...t::CoreProfileDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
73 return
never executed: return false;
false;
never executed: return false;
0
74-
75 return
never executed: return true;
true;
never executed: return true;
0
76}-
77-
78QOpenGLVersionProfile QOpenGLFunctions_1_1::versionProfile()-
79{-
80 QOpenGLVersionProfile v;-
81 v.setVersion(1, 1);-
82 return
never executed: return v;
v;
never executed: return v;
0
83}-
84-
85-
Switch to Source codePreprocessed file

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