1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792
|
#else
QOpenGLExtension_OES_EGL_image::QOpenGLExtension_OES_EGL_image()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_OES_EGL_imagePrivate))
{
}
bool QOpenGLExtension_OES_EGL_image::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_OES_EGL_image);
d->EGLImageTargetTexture2DOES = (void (QOPENGLF_APIENTRYP)(GLenum target, GLeglImageOES image))context->getProcAddress("glEGLImageTargetTexture2DOES");
d->EGLImageTargetRenderbufferStorageOES = (void (QOPENGLF_APIENTRYP)(GLenum target, GLeglImageOES image))context->getProcAddress("glEGLImageTargetRenderbufferStorageOES");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_OES_get_program_binary::QOpenGLExtension_OES_get_program_binary()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_OES_get_program_binaryPrivate))
{
}
bool QOpenGLExtension_OES_get_program_binary::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_OES_get_program_binary);
d->GetProgramBinaryOES = (void (QOPENGLF_APIENTRYP)(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary))context->getProcAddress("glGetProgramBinaryOES");
d->ProgramBinaryOES = (void (QOPENGLF_APIENTRYP)(GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length))context->getProcAddress("glProgramBinaryOES");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_OES_mapbuffer::QOpenGLExtension_OES_mapbuffer()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_OES_mapbufferPrivate))
{
}
bool QOpenGLExtension_OES_mapbuffer::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_OES_mapbuffer);
d->MapBufferOES = (void* (QOPENGLF_APIENTRYP)(GLenum target, GLenum access))context->getProcAddress("glMapBufferOES");
d->UnmapBufferOES = (GLboolean (QOPENGLF_APIENTRYP)(GLenum target))context->getProcAddress("glUnmapBufferOES");
d->GetBufferPointervOES = (void (QOPENGLF_APIENTRYP)(GLenum target, GLenum pname, GLvoid** params))context->getProcAddress("glGetBufferPointervOES");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_OES_texture_3D::QOpenGLExtension_OES_texture_3D()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_OES_texture_3DPrivate))
{
}
bool QOpenGLExtension_OES_texture_3D::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_OES_texture_3D);
d->TexImage3DOES = (void (QOPENGLF_APIENTRYP)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels))context->getProcAddress("glTexImage3DOES");
d->TexSubImage3DOES = (void (QOPENGLF_APIENTRYP)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels))context->getProcAddress("glTexSubImage3DOES");
d->CopyTexSubImage3DOES = (void (QOPENGLF_APIENTRYP)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height))context->getProcAddress("glCopyTexSubImage3DOES");
d->CompressedTexImage3DOES = (void (QOPENGLF_APIENTRYP)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data))context->getProcAddress("glCompressedTexImage3DOES");
d->CompressedTexSubImage3DOES = (void (QOPENGLF_APIENTRYP)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data))context->getProcAddress("glCompressedTexSubImage3DOES");
d->FramebufferTexture3DOES = (void (QOPENGLF_APIENTRYP)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset))context->getProcAddress("glFramebufferTexture3DOES");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_OES_vertex_array_object::QOpenGLExtension_OES_vertex_array_object()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_OES_vertex_array_objectPrivate))
{
}
bool QOpenGLExtension_OES_vertex_array_object::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_OES_vertex_array_object);
d->BindVertexArrayOES = (void (QOPENGLF_APIENTRYP)(GLuint array))context->getProcAddress("glBindVertexArrayOES");
d->DeleteVertexArraysOES = (void (QOPENGLF_APIENTRYP)(GLsizei n, const GLuint *arrays))context->getProcAddress("glDeleteVertexArraysOES");
d->GenVertexArraysOES = (void (QOPENGLF_APIENTRYP)(GLsizei n, GLuint *arrays))context->getProcAddress("glGenVertexArraysOES");
d->IsVertexArrayOES = (GLboolean (QOPENGLF_APIENTRYP)(GLuint array))context->getProcAddress("glIsVertexArrayOES");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_AMD_performance_monitor::QOpenGLExtension_AMD_performance_monitor()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_AMD_performance_monitorPrivate))
{
}
bool QOpenGLExtension_AMD_performance_monitor::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_AMD_performance_monitor);
d->GetPerfMonitorGroupsAMD = (void (QOPENGLF_APIENTRYP)(GLint *numGroups, GLsizei groupsSize, GLuint *groups))context->getProcAddress("glGetPerfMonitorGroupsAMD");
d->GetPerfMonitorCountersAMD = (void (QOPENGLF_APIENTRYP)(GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters))context->getProcAddress("glGetPerfMonitorCountersAMD");
d->GetPerfMonitorGroupStringAMD = (void (QOPENGLF_APIENTRYP)(GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString))context->getProcAddress("glGetPerfMonitorGroupStringAMD");
d->GetPerfMonitorCounterStringAMD = (void (QOPENGLF_APIENTRYP)(GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString))context->getProcAddress("glGetPerfMonitorCounterStringAMD");
d->GetPerfMonitorCounterInfoAMD = (void (QOPENGLF_APIENTRYP)(GLuint group, GLuint counter, GLenum pname, GLvoid *data))context->getProcAddress("glGetPerfMonitorCounterInfoAMD");
d->GenPerfMonitorsAMD = (void (QOPENGLF_APIENTRYP)(GLsizei n, GLuint *monitors))context->getProcAddress("glGenPerfMonitorsAMD");
d->DeletePerfMonitorsAMD = (void (QOPENGLF_APIENTRYP)(GLsizei n, GLuint *monitors))context->getProcAddress("glDeletePerfMonitorsAMD");
d->SelectPerfMonitorCountersAMD = (void (QOPENGLF_APIENTRYP)(GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList))context->getProcAddress("glSelectPerfMonitorCountersAMD");
d->BeginPerfMonitorAMD = (void (QOPENGLF_APIENTRYP)(GLuint monitor))context->getProcAddress("glBeginPerfMonitorAMD");
d->EndPerfMonitorAMD = (void (QOPENGLF_APIENTRYP )(GLuint monitor))context->getProcAddress("glEndPerfMonitorAMD");
d->GetPerfMonitorCounterDataAMD = (void (QOPENGLF_APIENTRYP)(GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten))context->getProcAddress("glGetPerfMonitorCounterDataAMD");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_ANGLE_framebuffer_blit::QOpenGLExtension_ANGLE_framebuffer_blit()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_ANGLE_framebuffer_blitPrivate))
{
}
bool QOpenGLExtension_ANGLE_framebuffer_blit::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_ANGLE_framebuffer_blit);
d->BlitFramebufferANGLE = (void (QOPENGLF_APIENTRYP)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter))context->getProcAddress("glBlitFramebufferANGLE");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_ANGLE_framebuffer_multisample::QOpenGLExtension_ANGLE_framebuffer_multisample()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_ANGLE_framebuffer_multisamplePrivate))
{
}
bool QOpenGLExtension_ANGLE_framebuffer_multisample::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_ANGLE_framebuffer_multisample);
d->RenderbufferStorageMultisampleANGLE = (void (QOPENGLF_APIENTRYP)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height))context->getProcAddress("glRenderbufferStorageMultisampleANGLE");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_ANGLE_instanced_arrays::QOpenGLExtension_ANGLE_instanced_arrays()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_ANGLE_instanced_arraysPrivate))
{
}
bool QOpenGLExtension_ANGLE_instanced_arrays::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_ANGLE_instanced_arrays);
d->DrawArraysInstancedANGLE = (void (QOPENGLF_APIENTRYP)(GLenum mode, GLint first, GLsizei count, GLsizei primcount))context->getProcAddress("glDrawArraysInstancedANGLE");
d->DrawElementsInstancedANGLE = (void (QOPENGLF_APIENTRYP)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount))context->getProcAddress("glDrawElementsInstancedANGLE");
d->VertexAttribDivisorANGLE = (void (QOPENGLF_APIENTRYP)(GLuint index, GLuint divisor))context->getProcAddress("glVertexAttribDivisorANGLE");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_ANGLE_translated_shader_source::QOpenGLExtension_ANGLE_translated_shader_source()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_ANGLE_translated_shader_sourcePrivate))
{
}
bool QOpenGLExtension_ANGLE_translated_shader_source::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_ANGLE_translated_shader_source);
d->GetTranslatedShaderSourceANGLE = (void (QOPENGLF_APIENTRYP)(GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source))context->getProcAddress("glGetTranslatedShaderSourceANGLE");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_APPLE_framebuffer_multisample::QOpenGLExtension_APPLE_framebuffer_multisample()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_APPLE_framebuffer_multisamplePrivate))
{
}
bool QOpenGLExtension_APPLE_framebuffer_multisample::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_APPLE_framebuffer_multisample);
d->RenderbufferStorageMultisampleAPPLE = (void (QOPENGLF_APIENTRYP)(GLenum, GLsizei, GLenum, GLsizei, GLsizei))context->getProcAddress("glRenderbufferStorageMultisampleAPPLE");
d->ResolveMultisampleFramebufferAPPLE = (void (QOPENGLF_APIENTRYP)(void))context->getProcAddress("glResolveMultisampleFramebufferAPPLE");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_EXT_debug_label::QOpenGLExtension_EXT_debug_label()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_EXT_debug_labelPrivate))
{
}
bool QOpenGLExtension_EXT_debug_label::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_EXT_debug_label);
d->LabelObjectEXT = (void (QOPENGLF_APIENTRYP)(GLenum type, GLuint object, GLsizei length, const GLchar *label))context->getProcAddress("glLabelObjectEXT");
d->GetObjectLabelEXT = (void (QOPENGLF_APIENTRYP)(GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label))context->getProcAddress("glGetObjectLabelEXT");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_EXT_debug_marker::QOpenGLExtension_EXT_debug_marker()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_EXT_debug_markerPrivate))
{
}
bool QOpenGLExtension_EXT_debug_marker::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_EXT_debug_marker);
d->InsertEventMarkerEXT = (void (QOPENGLF_APIENTRYP)(GLsizei length, const GLchar *marker))context->getProcAddress("glInsertEventMarkerEXT");
d->PushGroupMarkerEXT = (void (QOPENGLF_APIENTRYP)(GLsizei length, const GLchar *marker))context->getProcAddress("glPushGroupMarkerEXT");
d->PopGroupMarkerEXT = (void (QOPENGLF_APIENTRYP)(void))context->getProcAddress("glPopGroupMarkerEXT");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_EXT_discard_framebuffer::QOpenGLExtension_EXT_discard_framebuffer()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_EXT_discard_framebufferPrivate))
{
}
bool QOpenGLExtension_EXT_discard_framebuffer::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_EXT_discard_framebuffer);
d->DiscardFramebufferEXT = (void (QOPENGLF_APIENTRYP)(GLenum target, GLsizei numAttachments, const GLenum *attachments))context->getProcAddress("glDiscardFramebufferEXT");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_EXT_multisampled_render_to_texture::QOpenGLExtension_EXT_multisampled_render_to_texture()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_EXT_multisampled_render_to_texturePrivate))
{
}
bool QOpenGLExtension_EXT_multisampled_render_to_texture::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_EXT_multisampled_render_to_texture);
d->RenderbufferStorageMultisampleEXT = (void (QOPENGLF_APIENTRYP)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height))context->getProcAddress("glRenderbufferStorageMultisampleEXT");
d->FramebufferTexture2DMultisampleEXT = (void (QOPENGLF_APIENTRYP)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples))context->getProcAddress("glFramebufferTexture2DMultisampleEXT");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_EXT_multi_draw_arrays::QOpenGLExtension_EXT_multi_draw_arrays()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_EXT_multi_draw_arraysPrivate))
{
}
bool QOpenGLExtension_EXT_multi_draw_arrays::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_EXT_multi_draw_arrays);
d->MultiDrawArraysEXT = (void (QOPENGLF_APIENTRYP)(GLenum mode, GLint *first, GLsizei *count, GLsizei primcount))context->getProcAddress("glMultiDrawArraysEXT");
d->MultiDrawElementsEXT = (void (QOPENGLF_APIENTRYP)(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount))context->getProcAddress("glMultiDrawElementsEXT");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_EXT_occlusion_query_boolean::QOpenGLExtension_EXT_occlusion_query_boolean()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_EXT_occlusion_query_booleanPrivate))
{
}
bool QOpenGLExtension_EXT_occlusion_query_boolean::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_EXT_occlusion_query_boolean);
d->GenQueriesEXT = (void (QOPENGLF_APIENTRYP)(GLsizei n, GLuint *ids))context->getProcAddress("glGenQueriesEXT");
d->DeleteQueriesEXT = (void (QOPENGLF_APIENTRYP)(GLsizei n, const GLuint *ids))context->getProcAddress("glDeleteQueriesEXT");
d->IsQueryEXT = (GLboolean (QOPENGLF_APIENTRYP)(GLuint id))context->getProcAddress("glIsQueryEXT");
d->BeginQueryEXT = (void (QOPENGLF_APIENTRYP)(GLenum target, GLuint id))context->getProcAddress("glBeginQueryEXT");
d->EndQueryEXT = (void (QOPENGLF_APIENTRYP)(GLenum target))context->getProcAddress("glEndQueryEXT");
d->GetQueryivEXT = (void (QOPENGLF_APIENTRYP)(GLenum target, GLenum pname, GLint *params))context->getProcAddress("glGetQueryivEXT");
d->GetQueryObjectuivEXT = (void (QOPENGLF_APIENTRYP)(GLuint id, GLenum pname, GLuint *params))context->getProcAddress("glGetQueryObjectuivEXT");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_EXT_robustness::QOpenGLExtension_EXT_robustness()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_EXT_robustnessPrivate))
{
}
bool QOpenGLExtension_EXT_robustness::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_EXT_robustness);
d->GetGraphicsResetStatusEXT = (GLenum (QOPENGLF_APIENTRYP)(void))context->getProcAddress("glGetGraphicsResetStatusEXT");
d->ReadnPixelsEXT = (void (QOPENGLF_APIENTRYP)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data))context->getProcAddress("glReadnPixelsEXT");
d->GetnUniformfvEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei bufSize, float *params))context->getProcAddress("glGetnUniformfvEXT");
d->GetnUniformivEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei bufSize, GLint *params))context->getProcAddress("glGetnUniformivEXT");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_EXT_separate_shader_objects::QOpenGLExtension_EXT_separate_shader_objects()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_EXT_separate_shader_objectsPrivate))
{
}
bool QOpenGLExtension_EXT_separate_shader_objects::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_EXT_separate_shader_objects);
d->UseProgramStagesEXT = (void (QOPENGLF_APIENTRYP)(GLuint pipeline, GLbitfield stages, GLuint program))context->getProcAddress("glUseProgramStagesEXT");
d->ActiveShaderProgramEXT = (void (QOPENGLF_APIENTRYP)(GLuint pipeline, GLuint program))context->getProcAddress("glActiveShaderProgramEXT");
d->CreateShaderProgramvEXT = (GLuint (QOPENGLF_APIENTRYP)(GLenum type, GLsizei count, const GLchar **strings))context->getProcAddress("glCreateShaderProgramvEXT");
d->BindProgramPipelineEXT = (void (QOPENGLF_APIENTRYP)(GLuint pipeline))context->getProcAddress("glBindProgramPipelineEXT");
d->DeleteProgramPipelinesEXT = (void (QOPENGLF_APIENTRYP)(GLsizei n, const GLuint *pipelines))context->getProcAddress("glDeleteProgramPipelinesEXT");
d->GenProgramPipelinesEXT = (void (QOPENGLF_APIENTRYP)(GLsizei n, GLuint *pipelines))context->getProcAddress("glGenProgramPipelinesEXT");
d->IsProgramPipelineEXT = (GLboolean (QOPENGLF_APIENTRYP)(GLuint pipeline))context->getProcAddress("glIsProgramPipelineEXT");
d->ProgramParameteriEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLenum pname, GLint value))context->getProcAddress("glProgramParameteriEXT");
d->GetProgramPipelineivEXT = (void (QOPENGLF_APIENTRYP)(GLuint pipeline, GLenum pname, GLint *params))context->getProcAddress("glGetProgramPipelineivEXT");
d->ProgramUniform1iEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLint x))context->getProcAddress("glProgramUniform1iEXT");
d->ProgramUniform2iEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLint x, GLint y))context->getProcAddress("glProgramUniform2iEXT");
d->ProgramUniform3iEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLint x, GLint y, GLint z))context->getProcAddress("glProgramUniform3iEXT");
d->ProgramUniform4iEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w))context->getProcAddress("glProgramUniform4iEXT");
d->ProgramUniform1fEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLfloat x))context->getProcAddress("glProgramUniform1fEXT");
d->ProgramUniform2fEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLfloat x, GLfloat y))context->getProcAddress("glProgramUniform2fEXT");
d->ProgramUniform3fEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z))context->getProcAddress("glProgramUniform3fEXT");
d->ProgramUniform4fEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w))context->getProcAddress("glProgramUniform4fEXT");
d->ProgramUniform1ivEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei count, const GLint *value))context->getProcAddress("glProgramUniform1ivEXT");
d->ProgramUniform2ivEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei count, const GLint *value))context->getProcAddress("glProgramUniform2ivEXT");
d->ProgramUniform3ivEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei count, const GLint *value))context->getProcAddress("glProgramUniform3ivEXT");
d->ProgramUniform4ivEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei count, const GLint *value))context->getProcAddress("glProgramUniform4ivEXT");
d->ProgramUniform1fvEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei count, const GLfloat *value))context->getProcAddress("glProgramUniform1fvEXT");
d->ProgramUniform2fvEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei count, const GLfloat *value))context->getProcAddress("glProgramUniform2fvEXT");
d->ProgramUniform3fvEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei count, const GLfloat *value))context->getProcAddress("glProgramUniform3fvEXT");
d->ProgramUniform4fvEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei count, const GLfloat *value))context->getProcAddress("glProgramUniform4fvEXT");
d->ProgramUniformMatrix2fvEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value))context->getProcAddress("glProgramUniformMatrix2fvEXT");
d->ProgramUniformMatrix3fvEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value))context->getProcAddress("glProgramUniformMatrix3fvEXT");
d->ProgramUniformMatrix4fvEXT = (void (QOPENGLF_APIENTRYP)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value))context->getProcAddress("glProgramUniformMatrix4fvEXT");
d->ValidateProgramPipelineEXT = (void (QOPENGLF_APIENTRYP)(GLuint pipeline))context->getProcAddress("glValidateProgramPipelineEXT");
d->GetProgramPipelineInfoLogEXT = (void (QOPENGLF_APIENTRYP)(GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog))context->getProcAddress("glGetProgramPipelineInfoLogEXT");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_EXT_texture_storage::QOpenGLExtension_EXT_texture_storage()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_EXT_texture_storagePrivate))
{
}
bool QOpenGLExtension_EXT_texture_storage::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_EXT_texture_storage);
d->TexStorage1DEXT = (void (QOPENGLF_APIENTRYP)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width))context->getProcAddress("glTexStorage1DEXT");
d->TexStorage2DEXT = (void (QOPENGLF_APIENTRYP)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height))context->getProcAddress("glTexStorage2DEXT");
d->TexStorage3DEXT = (void (QOPENGLF_APIENTRYP)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth))context->getProcAddress("glTexStorage3DEXT");
d->TextureStorage1DEXT = (void (QOPENGLF_APIENTRYP)(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width))context->getProcAddress("glTextureStorage1DEXT");
d->TextureStorage2DEXT = (void (QOPENGLF_APIENTRYP)(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height))context->getProcAddress("glTextureStorage2DEXT");
d->TextureStorage3DEXT = (void (QOPENGLF_APIENTRYP)(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth))context->getProcAddress("glTextureStorage3DEXT");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_IMG_multisampled_render_to_texture::QOpenGLExtension_IMG_multisampled_render_to_texture()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_IMG_multisampled_render_to_texturePrivate))
{
}
bool QOpenGLExtension_IMG_multisampled_render_to_texture::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_IMG_multisampled_render_to_texture);
d->RenderbufferStorageMultisampleIMG = (void (QOPENGLF_APIENTRYP)(GLenum, GLsizei, GLenum, GLsizei, GLsizei))context->getProcAddress("glRenderbufferStorageMultisampleIMG");
d->FramebufferTexture2DMultisampleIMG = (void (QOPENGLF_APIENTRYP)(GLenum, GLenum, GLenum, GLuint, GLint, GLsizei))context->getProcAddress("glFramebufferTexture2DMultisampleIMG");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_NV_coverage_sample::QOpenGLExtension_NV_coverage_sample()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_NV_coverage_samplePrivate))
{
}
bool QOpenGLExtension_NV_coverage_sample::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_NV_coverage_sample);
d->CoverageMaskNV = (void (QOPENGLF_APIENTRYP)(GLboolean mask))context->getProcAddress("glCoverageMaskNV");
d->CoverageOperationNV = (void (QOPENGLF_APIENTRYP)(GLenum operation))context->getProcAddress("glCoverageOperationNV");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_NV_draw_buffers::QOpenGLExtension_NV_draw_buffers()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_NV_draw_buffersPrivate))
{
}
bool QOpenGLExtension_NV_draw_buffers::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_NV_draw_buffers);
d->DrawBuffersNV = (void (QOPENGLF_APIENTRYP)(GLsizei n, const GLenum *bufs))context->getProcAddress("glDrawBuffersNV");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_NV_fence::QOpenGLExtension_NV_fence()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_NV_fencePrivate))
{
}
bool QOpenGLExtension_NV_fence::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_NV_fence);
d->DeleteFencesNV = (void (QOPENGLF_APIENTRYP)(GLsizei n, const GLuint *fences))context->getProcAddress("glDeleteFencesNV");
d->GenFencesNV = (void (QOPENGLF_APIENTRYP)(GLsizei n, GLuint *fences))context->getProcAddress("glGenFencesNV");
d->IsFenceNV = (GLboolean (QOPENGLF_APIENTRYP)(GLuint fence))context->getProcAddress("glIsFenceNV");
d->TestFenceNV = (GLboolean (QOPENGLF_APIENTRYP)(GLuint fence))context->getProcAddress("glTestFenceNV");
d->GetFenceivNV = (void (QOPENGLF_APIENTRYP)(GLuint fence, GLenum pname, GLint *params))context->getProcAddress("glGetFenceivNV");
d->FinishFenceNV = (void (QOPENGLF_APIENTRYP)(GLuint fence))context->getProcAddress("glFinishFenceNV");
d->SetFenceNV = (void (QOPENGLF_APIENTRYP)(GLuint fence, GLenum condition))context->getProcAddress("glSetFenceNV");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_NV_read_buffer::QOpenGLExtension_NV_read_buffer()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_NV_read_bufferPrivate))
{
}
bool QOpenGLExtension_NV_read_buffer::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_NV_read_buffer);
d->ReadBufferNV = (void (QOPENGLF_APIENTRYP)(GLenum mode))context->getProcAddress("glReadBufferNV");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_QCOM_alpha_test::QOpenGLExtension_QCOM_alpha_test()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_QCOM_alpha_testPrivate))
{
}
bool QOpenGLExtension_QCOM_alpha_test::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_QCOM_alpha_test);
d->AlphaFuncQCOM = (void (QOPENGLF_APIENTRYP )(GLenum func, GLclampf ref))context->getProcAddress("glAlphaFuncQCOM");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_QCOM_driver_control::QOpenGLExtension_QCOM_driver_control()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_QCOM_driver_controlPrivate))
{
}
bool QOpenGLExtension_QCOM_driver_control::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_QCOM_driver_control);
d->GetDriverControlsQCOM = (void (QOPENGLF_APIENTRYP)(GLint *num, GLsizei size, GLuint *driverControls))context->getProcAddress("glGetDriverControlsQCOM");
d->GetDriverControlStringQCOM = (void (QOPENGLF_APIENTRYP)(GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString))context->getProcAddress("glGetDriverControlStringQCOM");
d->EnableDriverControlQCOM = (void (QOPENGLF_APIENTRYP)(GLuint driverControl))context->getProcAddress("glEnableDriverControlQCOM");
d->DisableDriverControlQCOM = (void (QOPENGLF_APIENTRYP)(GLuint driverControl))context->getProcAddress("glDisableDriverControlQCOM");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_QCOM_extended_get::QOpenGLExtension_QCOM_extended_get()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_QCOM_extended_getPrivate))
{
}
bool QOpenGLExtension_QCOM_extended_get::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_QCOM_extended_get);
d->ExtGetTexturesQCOM = (void (QOPENGLF_APIENTRYP)(GLuint *textures, GLint maxTextures, GLint *numTextures))context->getProcAddress("glExtGetTexturesQCOM");
d->ExtGetBuffersQCOM = (void (QOPENGLF_APIENTRYP)(GLuint *buffers, GLint maxBuffers, GLint *numBuffers))context->getProcAddress("glExtGetBuffersQCOM");
d->ExtGetRenderbuffersQCOM = (void (QOPENGLF_APIENTRYP)(GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers))context->getProcAddress("glExtGetRenderbuffersQCOM");
d->ExtGetFramebuffersQCOM = (void (QOPENGLF_APIENTRYP)(GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers))context->getProcAddress("glExtGetFramebuffersQCOM");
d->ExtGetTexLevelParameterivQCOM = (void (QOPENGLF_APIENTRYP)(GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params))context->getProcAddress("glExtGetTexLevelParameterivQCOM");
d->ExtTexObjectStateOverrideiQCOM = (void (QOPENGLF_APIENTRYP)(GLenum target, GLenum pname, GLint param))context->getProcAddress("glExtTexObjectStateOverrideiQCOM");
d->ExtGetTexSubImageQCOM = (void (QOPENGLF_APIENTRYP)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *texels))context->getProcAddress("glExtGetTexSubImageQCOM");
d->ExtGetBufferPointervQCOM = (void (QOPENGLF_APIENTRYP)(GLenum target, GLvoid **params))context->getProcAddress("glExtGetBufferPointervQCOM");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_QCOM_extended_get2::QOpenGLExtension_QCOM_extended_get2()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_QCOM_extended_get2Private))
{
}
bool QOpenGLExtension_QCOM_extended_get2::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_QCOM_extended_get2);
d->ExtGetShadersQCOM = (void (QOPENGLF_APIENTRYP)(GLuint *shaders, GLint maxShaders, GLint *numShaders))context->getProcAddress("glExtGetShadersQCOM");
d->ExtGetProgramsQCOM = (void (QOPENGLF_APIENTRYP)(GLuint *programs, GLint maxPrograms, GLint *numPrograms))context->getProcAddress("glExtGetProgramsQCOM");
d->ExtIsProgramBinaryQCOM = (GLboolean (QOPENGLF_APIENTRYP)(GLuint program))context->getProcAddress("glExtIsProgramBinaryQCOM");
d->ExtGetProgramBinarySourceQCOM = (void (QOPENGLF_APIENTRYP)(GLuint program, GLenum shadertype, GLchar *source, GLint *length))context->getProcAddress("glExtGetProgramBinarySourceQCOM");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
QOpenGLExtension_QCOM_tiled_rendering::QOpenGLExtension_QCOM_tiled_rendering()
: QAbstractOpenGLExtension(*(new QOpenGLExtension_QCOM_tiled_renderingPrivate))
{
}
bool QOpenGLExtension_QCOM_tiled_rendering::initializeOpenGLFunctions()
{
if (isInitialized())
return true;
QOpenGLContext *context = QOpenGLContext::currentContext();
if (!context) {
qWarning("A current OpenGL context is required to resolve OpenGL extension functions");
return false;
}
// Resolve the functions
Q_D(QOpenGLExtension_QCOM_tiled_rendering);
d->StartTilingQCOM = (void (QOPENGLF_APIENTRYP)(GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask))context->getProcAddress("glStartTilingQCOM");
d->EndTilingQCOM = (void (QOPENGLF_APIENTRYP)(GLbitfield preserveMask))context->getProcAddress("glEndTilingQCOM");
return QAbstractOpenGLExtension::initializeOpenGLFunctions();
}
#endif
QT_END_NAMESPACE
|