| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | QOpenGLFunctions_4_1_Core::QOpenGLFunctions_4_1_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 | { | - |
| 20 | } never executed: end of block | 0 |
| 21 | | - |
| 22 | QOpenGLFunctions_4_1_Core::~QOpenGLFunctions_4_1_Core() | - |
| 23 | { | - |
| 24 | if (d_1_0_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_0_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 25 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Core->context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
| 26 | delete d_1_0_Core; | - |
| 27 | } never executed: end of block | 0 |
| 28 | if (d_1_1_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_1_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 29 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Core->context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
| 30 | delete d_1_1_Core; | - |
| 31 | } never executed: end of block | 0 |
| 32 | if (d_1_2_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_2_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 33 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Core->context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
| 34 | delete d_1_2_Core; | - |
| 35 | } never executed: end of block | 0 |
| 36 | if (d_1_3_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_3_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 37 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Core->context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
| 38 | delete d_1_3_Core; | - |
| 39 | } never executed: end of block | 0 |
| 40 | if (d_1_4_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_4_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 41 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Core->context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
| 42 | delete d_1_4_Core; | - |
| 43 | } never executed: end of block | 0 |
| 44 | if (d_1_5_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_5_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 45 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_5_Core->context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
| 46 | delete d_1_5_Core; | - |
| 47 | } never executed: end of block | 0 |
| 48 | if (d_2_0_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_2_0_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 49 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_0_Core->context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
| 50 | delete d_2_0_Core; | - |
| 51 | } never executed: end of block | 0 |
| 52 | if (d_2_1_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_2_1_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 53 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_1_Core->context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
| 54 | delete d_2_1_Core; | - |
| 55 | } never executed: end of block | 0 |
| 56 | if (d_3_0_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_0_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 57 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_0_Core->context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
| 58 | delete d_3_0_Core; | - |
| 59 | } never executed: end of block | 0 |
| 60 | if (d_3_1_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_1_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 61 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_1_Core->context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
| 62 | delete d_3_1_Core; | - |
| 63 | } never executed: end of block | 0 |
| 64 | if (d_3_2_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_2_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 65 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_2_Core->context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
| 66 | delete d_3_2_Core; | - |
| 67 | } never executed: end of block | 0 |
| 68 | if (d_3_3_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_3_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 69 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_3_Core->context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
| 70 | delete d_3_3_Core; | - |
| 71 | } never executed: end of block | 0 |
| 72 | if (d_4_0_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_4_0_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 73 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_0_Core->context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
| 74 | delete d_4_0_Core; | - |
| 75 | } never executed: end of block | 0 |
| 76 | if (d_4_1_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_4_1_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 77 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_1_Core->context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
| 78 | delete d_4_1_Core; | - |
| 79 | } never executed: end of block | 0 |
| 80 | } never executed: end of block | 0 |
| 81 | | - |
| 82 | bool QOpenGLFunctions_4_1_Core::initializeOpenGLFunctions() | - |
| 83 | { | - |
| 84 | if ( isInitialized()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 85 | return never executed: return true; true;never executed: return true; | 0 |
| 86 | | - |
| 87 | QOpenGLContext* context = QOpenGLContext::currentContext(); | - |
| 88 | | - |
| 89 | | - |
| 90 | | - |
| 91 | if (((owningContext()| TRUE | never evaluated | | FALSE | never evaluated |
&& owningContext() == context| TRUE | never evaluated | | FALSE | never evaluated |
) || !owningContext()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 92 | && QOpenGLFunctions_4_1_Core::isContextCompatible(context)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 93 | { | - |
| 94 | | - |
| 95 | | - |
| 96 | QOpenGLVersionFunctionsBackend* d = 0; | - |
| 97 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
| 98 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 99 | d = new QOpenGLFunctions_1_0_CoreBackend(context); | - |
| 100 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus(), d); | - |
| 101 | } never executed: end of block | 0 |
| 102 | d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d); | - |
| 103 | d->refs.ref(); | - |
| 104 | | - |
| 105 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
| 106 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 107 | d = new QOpenGLFunctions_1_1_CoreBackend(context); | - |
| 108 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus(), d); | - |
| 109 | } never executed: end of block | 0 |
| 110 | d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d); | - |
| 111 | d->refs.ref(); | - |
| 112 | | - |
| 113 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
| 114 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 115 | d = new QOpenGLFunctions_1_2_CoreBackend(context); | - |
| 116 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus(), d); | - |
| 117 | } never executed: end of block | 0 |
| 118 | d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d); | - |
| 119 | d->refs.ref(); | - |
| 120 | | - |
| 121 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
| 122 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 123 | d = new QOpenGLFunctions_1_3_CoreBackend(context); | - |
| 124 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus(), d); | - |
| 125 | } never executed: end of block | 0 |
| 126 | d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d); | - |
| 127 | d->refs.ref(); | - |
| 128 | | - |
| 129 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
| 130 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 131 | d = new QOpenGLFunctions_1_4_CoreBackend(context); | - |
| 132 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus(), d); | - |
| 133 | } never executed: end of block | 0 |
| 134 | d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d); | - |
| 135 | d->refs.ref(); | - |
| 136 | | - |
| 137 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
| 138 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 139 | d = new QOpenGLFunctions_1_5_CoreBackend(context); | - |
| 140 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus(), d); | - |
| 141 | } never executed: end of block | 0 |
| 142 | d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d); | - |
| 143 | d->refs.ref(); | - |
| 144 | | - |
| 145 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
| 146 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 147 | d = new QOpenGLFunctions_2_0_CoreBackend(context); | - |
| 148 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus(), d); | - |
| 149 | } never executed: end of block | 0 |
| 150 | d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d); | - |
| 151 | d->refs.ref(); | - |
| 152 | | - |
| 153 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
| 154 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 155 | d = new QOpenGLFunctions_2_1_CoreBackend(context); | - |
| 156 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus(), d); | - |
| 157 | } never executed: end of block | 0 |
| 158 | d_2_1_Core = static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d); | - |
| 159 | d->refs.ref(); | - |
| 160 | | - |
| 161 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
| 162 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 163 | d = new QOpenGLFunctions_3_0_CoreBackend(context); | - |
| 164 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus(), d); | - |
| 165 | } never executed: end of block | 0 |
| 166 | d_3_0_Core = static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d); | - |
| 167 | d->refs.ref(); | - |
| 168 | | - |
| 169 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
| 170 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 171 | d = new QOpenGLFunctions_3_1_CoreBackend(context); | - |
| 172 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus(), d); | - |
| 173 | } never executed: end of block | 0 |
| 174 | d_3_1_Core = static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d); | - |
| 175 | d->refs.ref(); | - |
| 176 | | - |
| 177 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
| 178 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 179 | d = new QOpenGLFunctions_3_2_CoreBackend(context); | - |
| 180 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus(), d); | - |
| 181 | } never executed: end of block | 0 |
| 182 | d_3_2_Core = static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d); | - |
| 183 | d->refs.ref(); | - |
| 184 | | - |
| 185 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
| 186 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 187 | d = new QOpenGLFunctions_3_3_CoreBackend(context); | - |
| 188 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus(), d); | - |
| 189 | } never executed: end of block | 0 |
| 190 | d_3_3_Core = static_cast<QOpenGLFunctions_3_3_CoreBackend*>(d); | - |
| 191 | d->refs.ref(); | - |
| 192 | | - |
| 193 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
| 194 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 195 | d = new QOpenGLFunctions_4_0_CoreBackend(context); | - |
| 196 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus(), d); | - |
| 197 | } never executed: end of block | 0 |
| 198 | d_4_0_Core = static_cast<QOpenGLFunctions_4_0_CoreBackend*>(d); | - |
| 199 | d->refs.ref(); | - |
| 200 | | - |
| 201 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
| 202 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 203 | d = new QOpenGLFunctions_4_1_CoreBackend(context); | - |
| 204 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus(), d); | - |
| 205 | } never executed: end of block | 0 |
| 206 | d_4_1_Core = static_cast<QOpenGLFunctions_4_1_CoreBackend*>(d); | - |
| 207 | d->refs.ref(); | - |
| 208 | | - |
| 209 | QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - |
| 210 | } never executed: end of block | 0 |
| 211 | return never executed: return isInitialized(); isInitialized();never executed: return isInitialized(); | 0 |
| 212 | } | - |
| 213 | | - |
| 214 | bool QOpenGLFunctions_4_1_Core::isContextCompatible(QOpenGLContext *context) | - |
| 215 | { | - |
| 216 | ((!(context)) ? qt_assert("context",__FILE__,275) : qt_noop()); | - |
| 217 | QSurfaceFormat f = context->format(); | - |
| 218 | const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - |
| 219 | if (v < qMakePair(4, 1)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 220 | return never executed: return false; false;never executed: return false; | 0 |
| 221 | | - |
| 222 | return never executed: return true; true;never executed: return true; | 0 |
| 223 | } | - |
| 224 | | - |
| 225 | QOpenGLVersionProfile QOpenGLFunctions_4_1_Core::versionProfile() | - |
| 226 | { | - |
| 227 | QOpenGLVersionProfile v; | - |
| 228 | v.setVersion(4, 1); | - |
| 229 | v.setProfile(QSurfaceFormat::CoreProfile); | - |
| 230 | return never executed: return v; v;never executed: return v; | 0 |
| 231 | } | - |
| 232 | | - |
| 233 | | - |
| | |