qopenglfunctions_1_0.cpp

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

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