42 #ifndef QGL_EXTENSIONS_P_H 43 #define QGL_EXTENSIONS_P_H 60 # define APIENTRYP APIENTRY * 73 #include <QtGui/private/qegl_p.h> 76 #include <QtCore/qglobal.h> 78 #ifndef GL_ARB_vertex_buffer_object 83 #ifndef GL_VERSION_2_0 99 #if defined(QT_OPENGL_ES) 100 #if defined(GL_OES_VERSION_1_0) && !defined(GL_OES_VERSION_1_1) 101 #define QGL_RESOLVE_BUFFER_FUNCS 1 104 #define QGL_RESOLVE_BUFFER_FUNCS 1 189 GLuint texture,
GLint level);
191 GLuint renderbuffer);
198 int dstX0,
int dstY0,
int dstX1,
int dstY1,
208 GLuint texture,
GLint level);
231 #if !defined(QT_OPENGL_ES_2) 295 qt_glslResolved =
false;
297 qt_glGetProgramBinaryOES = 0;
298 qt_glProgramBinaryOES = 0;
302 #if !defined(QT_OPENGL_ES_2) 323 #if defined(QGL_RESOLVE_BUFFER_FUNCS) 341 #if !defined(QT_OPENGL_ES) 354 #if !defined(QT_OPENGL_ES_2) 411 bool qt_glslResolved;
420 #if !defined(QT_OPENGL_ES_2) 429 #if !defined(QT_OPENGL_ES_2) 450 #if defined(QGL_RESOLVE_BUFFER_FUNCS) 469 #if !defined(QT_OPENGL_ES) 484 #ifndef FRAMEBUFFER_SRGB_CAPABLE_EXT 485 #define FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA 488 #ifndef FRAMEBUFFER_SRGB_EXT 489 #define FRAMEBUFFER_SRGB_EXT 0x8DB9 492 #ifndef GL_ARRAY_BUFFER 493 #define GL_ARRAY_BUFFER 0x8892 496 #ifndef GL_STATIC_DRAW 497 #define GL_STATIC_DRAW 0x88E4 501 #ifndef GL_NV_texture_rectangle 502 #define GL_TEXTURE_RECTANGLE_NV 0x84F5 503 #define GL_TEXTURE_BINDING_RECTANGLE_NV 0x84F6 504 #define GL_PROXY_TEXTURE_RECTANGLE_NV 0x84F7 505 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV 0x84F8 509 #define GL_BGRA 0x80E1 513 #define GL_RGB16 0x8054 516 #ifndef GL_UNSIGNED_SHORT_5_6_5 517 #define GL_UNSIGNED_SHORT_5_6_5 0x8363 520 #ifndef GL_UNSIGNED_INT_8_8_8_8_REV 521 #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 524 #ifndef GL_MULTISAMPLE 525 #define GL_MULTISAMPLE 0x809D 528 #ifndef GL_CLAMP_TO_EDGE 529 #define GL_CLAMP_TO_EDGE 0x812F 532 #ifndef GL_IBM_texture_mirrored_repeat 533 #define GL_MIRRORED_REPEAT_IBM 0x8370 536 #ifndef GL_SGIS_generate_mipmap 537 #define GL_GENERATE_MIPMAP_SGIS 0x8191 538 #define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192 542 #ifndef GL_FRAGMENT_PROGRAM_ARB 543 #define GL_FRAGMENT_PROGRAM_ARB 0x8804 544 #define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875 547 #ifndef GL_PIXEL_UNPACK_BUFFER_ARB 548 #define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC 551 #ifndef GL_WRITE_ONLY_ARB 552 #define GL_WRITE_ONLY_ARB 0x88B9 555 #ifndef GL_STREAM_DRAW_ARB 556 #define GL_STREAM_DRAW_ARB 0x88E0 560 #ifndef GL_STENCIL_TEST_TWO_SIDE_EXT 561 #define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910 563 #ifndef GL_INCR_WRAP_EXT 564 #define GL_INCR_WRAP_EXT 0x8507 566 #ifndef GL_DECR_WRAP_EXT 567 #define GL_DECR_WRAP_EXT 0x8508 571 #define GL_TEXTURE0 0x84C0 575 #define GL_TEXTURE1 0x84C1 578 #ifndef GL_DEPTH_COMPONENT16 579 #define GL_DEPTH_COMPONENT16 0x81A5 582 #ifndef GL_DEPTH_COMPONENT24_OES 583 #define GL_DEPTH_COMPONENT24_OES 0x81A6 586 #ifndef GL_EXT_framebuffer_object 587 #define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506 588 #define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8 589 #define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6 590 #define GL_RENDERBUFFER_BINDING_EXT 0x8CA7 591 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0 592 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1 593 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2 594 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3 595 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4 596 #define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5 597 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6 598 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7 599 #define GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 0x8CD8 600 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9 601 #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA 602 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB 603 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC 604 #define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD 605 #define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF 606 #define GL_COLOR_ATTACHMENT0_EXT 0x8CE0 607 #define GL_COLOR_ATTACHMENT1_EXT 0x8CE1 608 #define GL_COLOR_ATTACHMENT2_EXT 0x8CE2 609 #define GL_COLOR_ATTACHMENT3_EXT 0x8CE3 610 #define GL_COLOR_ATTACHMENT4_EXT 0x8CE4 611 #define GL_COLOR_ATTACHMENT5_EXT 0x8CE5 612 #define GL_COLOR_ATTACHMENT6_EXT 0x8CE6 613 #define GL_COLOR_ATTACHMENT7_EXT 0x8CE7 614 #define GL_COLOR_ATTACHMENT8_EXT 0x8CE8 615 #define GL_COLOR_ATTACHMENT9_EXT 0x8CE9 616 #define GL_COLOR_ATTACHMENT10_EXT 0x8CEA 617 #define GL_COLOR_ATTACHMENT11_EXT 0x8CEB 618 #define GL_COLOR_ATTACHMENT12_EXT 0x8CEC 619 #define GL_COLOR_ATTACHMENT13_EXT 0x8CED 620 #define GL_COLOR_ATTACHMENT14_EXT 0x8CEE 621 #define GL_COLOR_ATTACHMENT15_EXT 0x8CEF 622 #define GL_DEPTH_ATTACHMENT_EXT 0x8D00 623 #define GL_STENCIL_ATTACHMENT_EXT 0x8D20 624 #define GL_FRAMEBUFFER_EXT 0x8D40 625 #define GL_RENDERBUFFER_EXT 0x8D41 626 #define GL_RENDERBUFFER_WIDTH_EXT 0x8D42 627 #define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43 628 #define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44 629 #define GL_STENCIL_INDEX_EXT 0x8D45 630 #define GL_STENCIL_INDEX1_EXT 0x8D46 631 #define GL_STENCIL_INDEX4_EXT 0x8D47 632 #define GL_STENCIL_INDEX8_EXT 0x8D48 633 #define GL_STENCIL_INDEX16_EXT 0x8D49 634 #define GL_RENDERBUFFER_RED_SIZE_EXT 0x8D50 635 #define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8D51 636 #define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8D52 637 #define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8D53 638 #define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8D54 639 #define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8D55 643 #ifndef GL_READ_FRAMEBUFFER_EXT 644 #define GL_READ_FRAMEBUFFER_EXT 0x8CA8 648 #ifndef GL_RENDERBUFFER_SAMPLES_EXT 649 #define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB 652 #ifndef GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 653 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56 656 #ifndef GL_MAX_SAMPLES_EXT 657 #define GL_MAX_SAMPLES_EXT 0x8D57 660 #ifndef GL_DRAW_FRAMEBUFFER_EXT 661 #define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9 664 #ifndef GL_EXT_packed_depth_stencil 665 #define GL_DEPTH_STENCIL_EXT 0x84F9 666 #define GL_UNSIGNED_INT_24_8_EXT 0x84FA 667 #define GL_DEPTH24_STENCIL8_EXT 0x88F0 668 #define GL_TEXTURE_STENCIL_SIZE_EXT 0x88F1 672 #ifndef GL_CLAMP_TO_EDGE 673 #define GL_CLAMP_TO_EDGE 0x812F 676 #ifndef GL_VERSION_1_2 677 #define GL_PACK_SKIP_IMAGES 0x806B 678 #define GL_PACK_IMAGE_HEIGHT 0x806C 679 #define GL_UNPACK_SKIP_IMAGES 0x806D 680 #define GL_UNPACK_IMAGE_HEIGHT 0x806E 683 #ifndef GL_VERSION_1_4 684 #define GL_CONSTANT_COLOR 0x8001 685 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 686 #define GL_CONSTANT_ALPHA 0x8003 687 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 688 #define GL_INCR_WRAP 0x8507 689 #define GL_DECR_WRAP 0x8508 692 #ifndef GL_VERSION_1_5 693 #define GL_ARRAY_BUFFER 0x8892 694 #define GL_ELEMENT_ARRAY_BUFFER 0x8893 695 #define GL_STREAM_DRAW 0x88E0 696 #define GL_STREAM_READ 0x88E1 697 #define GL_STREAM_COPY 0x88E2 698 #define GL_STATIC_DRAW 0x88E4 699 #define GL_STATIC_READ 0x88E5 700 #define GL_STATIC_COPY 0x88E6 701 #define GL_DYNAMIC_DRAW 0x88E8 702 #define GL_DYNAMIC_READ 0x88E9 703 #define GL_DYNAMIC_COPY 0x88EA 706 #ifndef GL_VERSION_2_0 707 #define GL_FRAGMENT_SHADER 0x8B30 708 #define GL_VERTEX_SHADER 0x8B31 709 #define GL_FLOAT_VEC2 0x8B50 710 #define GL_FLOAT_VEC3 0x8B51 711 #define GL_FLOAT_VEC4 0x8B52 712 #define GL_INT_VEC2 0x8B53 713 #define GL_INT_VEC3 0x8B54 714 #define GL_INT_VEC4 0x8B55 715 #define GL_BOOL 0x8B56 716 #define GL_BOOL_VEC2 0x8B57 717 #define GL_BOOL_VEC3 0x8B58 718 #define GL_BOOL_VEC4 0x8B59 719 #define GL_FLOAT_MAT2 0x8B5A 720 #define GL_FLOAT_MAT3 0x8B5B 721 #define GL_FLOAT_MAT4 0x8B5C 722 #define GL_SAMPLER_1D 0x8B5D 723 #define GL_SAMPLER_2D 0x8B5E 724 #define GL_SAMPLER_3D 0x8B5F 725 #define GL_SAMPLER_CUBE 0x8B60 726 #define GL_COMPILE_STATUS 0x8B81 727 #define GL_LINK_STATUS 0x8B82 728 #define GL_INFO_LOG_LENGTH 0x8B84 729 #define GL_ACTIVE_UNIFORMS 0x8B86 730 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 731 #define GL_ACTIVE_ATTRIBUTES 0x8B89 732 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A 736 #ifndef GL_GEOMETRY_SHADER_EXT 737 # define GL_GEOMETRY_SHADER_EXT 0x8DD9 738 # define GL_GEOMETRY_VERTICES_OUT_EXT 0x8DDA 739 # define GL_GEOMETRY_INPUT_TYPE_EXT 0x8DDB 740 # define GL_GEOMETRY_OUTPUT_TYPE_EXT 0x8DDC 741 # define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29 742 # define GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD 743 # define GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE 744 # define GL_MAX_VARYING_COMPONENTS_EXT 0x8B4B 745 # define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF 746 # define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0 747 # define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1 748 # define GL_LINES_ADJACENCY_EXT 0xA 749 # define GL_LINE_STRIP_ADJACENCY_EXT 0xB 750 # define GL_TRIANGLES_ADJACENCY_EXT 0xC 751 # define GL_TRIANGLE_STRIP_ADJACENCY_EXT 0xD 752 # define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8 753 # define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9 754 # define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7 755 # define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4 756 # define GL_PROGRAM_POINT_SIZE_EXT 0x8642 759 #if !defined(QT_OPENGL_ES_2) 760 #define glProgramStringARB QGLContextPrivate::extensionFuncs(ctx).qt_glProgramStringARB 761 #define glBindProgramARB QGLContextPrivate::extensionFuncs(ctx).qt_glBindProgramARB 762 #define glDeleteProgramsARB QGLContextPrivate::extensionFuncs(ctx).qt_glDeleteProgramsARB 763 #define glGenProgramsARB QGLContextPrivate::extensionFuncs(ctx).qt_glGenProgramsARB 764 #define glProgramLocalParameter4fvARB QGLContextPrivate::extensionFuncs(ctx).qt_glProgramLocalParameter4fvARB 766 #define glActiveStencilFaceEXT QGLContextPrivate::extensionFuncs(ctx).qt_glActiveStencilFaceEXT 768 #define glMultiTexCoord4f QGLContextPrivate::extensionFuncs(ctx).qt_glMultiTexCoord4f 770 #define glActiveTexture QGLContextPrivate::extensionFuncs(ctx).qt_glActiveTexture 771 #endif // !defined(QT_OPENGL_ES_2) 775 #if !defined(QT_OPENGL_ES_2) 776 #define glIsRenderbuffer QGLContextPrivate::extensionFuncs(ctx).qt_glIsRenderbuffer 777 #define glBindRenderbuffer QGLContextPrivate::extensionFuncs(ctx).qt_glBindRenderbuffer 778 #define glDeleteRenderbuffers QGLContextPrivate::extensionFuncs(ctx).qt_glDeleteRenderbuffers 779 #define glGenRenderbuffers QGLContextPrivate::extensionFuncs(ctx).qt_glGenRenderbuffers 780 #define glRenderbufferStorage QGLContextPrivate::extensionFuncs(ctx).qt_glRenderbufferStorage 781 #define glGetRenderbufferParameteriv QGLContextPrivate::extensionFuncs(ctx).qt_glGetRenderbufferParameteriv 782 #define glIsFramebuffer QGLContextPrivate::extensionFuncs(ctx).qt_glIsFramebuffer 783 #define glBindFramebuffer QGLContextPrivate::extensionFuncs(ctx).qt_glBindFramebuffer 784 #define glDeleteFramebuffers QGLContextPrivate::extensionFuncs(ctx).qt_glDeleteFramebuffers 785 #define glGenFramebuffers QGLContextPrivate::extensionFuncs(ctx).qt_glGenFramebuffers 786 #define glCheckFramebufferStatus QGLContextPrivate::extensionFuncs(ctx).qt_glCheckFramebufferStatus 787 #define glFramebufferTexture2D QGLContextPrivate::extensionFuncs(ctx).qt_glFramebufferTexture2D 788 #define glFramebufferRenderbuffer QGLContextPrivate::extensionFuncs(ctx).qt_glFramebufferRenderbuffer 789 #define glGetFramebufferAttachmentParameteriv QGLContextPrivate::extensionFuncs(ctx).qt_glGetFramebufferAttachmentParameteriv 790 #define glGenerateMipmap QGLContextPrivate::extensionFuncs(ctx).qt_glGenerateMipmap 791 #endif // QT_OPENGL_ES_2 792 #define glBlitFramebufferEXT QGLContextPrivate::extensionFuncs(ctx).qt_glBlitFramebufferEXT 793 #define glRenderbufferStorageMultisampleEXT QGLContextPrivate::extensionFuncs(ctx).qt_glRenderbufferStorageMultisampleEXT 797 #if defined(QGL_RESOLVE_BUFFER_FUNCS) 798 #define glBindBuffer QGLContextPrivate::extensionFuncs(ctx).qt_glBindBuffer 799 #define glDeleteBuffers QGLContextPrivate::extensionFuncs(ctx).qt_glDeleteBuffers 800 #define glGenBuffers QGLContextPrivate::extensionFuncs(ctx).qt_glGenBuffers 801 #define glBufferData QGLContextPrivate::extensionFuncs(ctx).qt_glBufferData 802 #define glBufferSubData QGLContextPrivate::extensionFuncs(ctx).qt_glBufferSubData 803 #define glGetBufferSubData QGLContextPrivate::extensionFuncs(ctx).qt_glGetBufferSubData 804 #define glGetBufferParameteriv QGLContextPrivate::extensionFuncs(ctx).qt_glGetBufferParameteriv 806 #define glMapBufferARB QGLContextPrivate::extensionFuncs(ctx).qt_glMapBufferARB 807 #define glUnmapBufferARB QGLContextPrivate::extensionFuncs(ctx).qt_glUnmapBufferARB 811 #if !defined(QT_OPENGL_ES_2) 813 #define glCreateShader QGLContextPrivate::extensionFuncs(ctx).qt_glCreateShader 814 #define glShaderSource QGLContextPrivate::extensionFuncs(ctx).qt_glShaderSource 815 #define glShaderBinary QGLContextPrivate::extensionFuncs(ctx).qt_glShaderBinary 816 #define glCompileShader QGLContextPrivate::extensionFuncs(ctx).qt_glCompileShader 817 #define glDeleteShader QGLContextPrivate::extensionFuncs(ctx).qt_glDeleteShader 818 #define glIsShader QGLContextPrivate::extensionFuncs(ctx).qt_glIsShader 820 #define glCreateProgram QGLContextPrivate::extensionFuncs(ctx).qt_glCreateProgram 821 #define glAttachShader QGLContextPrivate::extensionFuncs(ctx).qt_glAttachShader 822 #define glDetachShader QGLContextPrivate::extensionFuncs(ctx).qt_glDetachShader 823 #define glLinkProgram QGLContextPrivate::extensionFuncs(ctx).qt_glLinkProgram 824 #define glUseProgram QGLContextPrivate::extensionFuncs(ctx).qt_glUseProgram 825 #define glDeleteProgram QGLContextPrivate::extensionFuncs(ctx).qt_glDeleteProgram 826 #define glIsProgram QGLContextPrivate::extensionFuncs(ctx).qt_glIsProgram 828 #define glGetShaderInfoLog QGLContextPrivate::extensionFuncs(ctx).qt_glGetShaderInfoLog 829 #define glGetShaderiv QGLContextPrivate::extensionFuncs(ctx).qt_glGetShaderiv 830 #define glGetShaderSource QGLContextPrivate::extensionFuncs(ctx).qt_glGetShaderSource 831 #define glGetProgramiv QGLContextPrivate::extensionFuncs(ctx).qt_glGetProgramiv 832 #define glGetProgramInfoLog QGLContextPrivate::extensionFuncs(ctx).qt_glGetProgramInfoLog 834 #define glGetUniformLocation QGLContextPrivate::extensionFuncs(ctx).qt_glGetUniformLocation 835 #define glUniform4fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniform4fv 836 #define glUniform3fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniform3fv 837 #define glUniform2fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniform2fv 838 #define glUniform1fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniform1fv 839 #define glUniform1i QGLContextPrivate::extensionFuncs(ctx).qt_glUniform1i 840 #define glUniform1iv QGLContextPrivate::extensionFuncs(ctx).qt_glUniform1iv 841 #define glUniformMatrix2fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniformMatrix2fv 842 #define glUniformMatrix3fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniformMatrix3fv 843 #define glUniformMatrix4fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniformMatrix4fv 844 #define glUniformMatrix2x3fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniformMatrix2x3fv 845 #define glUniformMatrix2x4fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniformMatrix2x4fv 846 #define glUniformMatrix3x2fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniformMatrix3x2fv 847 #define glUniformMatrix3x4fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniformMatrix3x4fv 848 #define glUniformMatrix4x2fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniformMatrix4x2fv 849 #define glUniformMatrix4x3fv QGLContextPrivate::extensionFuncs(ctx).qt_glUniformMatrix4x3fv 851 #define glBindAttribLocation QGLContextPrivate::extensionFuncs(ctx).qt_glBindAttribLocation 852 #define glGetAttribLocation QGLContextPrivate::extensionFuncs(ctx).qt_glGetAttribLocation 853 #define glVertexAttrib1fv QGLContextPrivate::extensionFuncs(ctx).qt_glVertexAttrib1fv 854 #define glVertexAttrib2fv QGLContextPrivate::extensionFuncs(ctx).qt_glVertexAttrib2fv 855 #define glVertexAttrib3fv QGLContextPrivate::extensionFuncs(ctx).qt_glVertexAttrib3fv 856 #define glVertexAttrib4fv QGLContextPrivate::extensionFuncs(ctx).qt_glVertexAttrib4fv 857 #define glVertexAttribPointer QGLContextPrivate::extensionFuncs(ctx).qt_glVertexAttribPointer 858 #define glDisableVertexAttribArray QGLContextPrivate::extensionFuncs(ctx).qt_glDisableVertexAttribArray 859 #define glEnableVertexAttribArray QGLContextPrivate::extensionFuncs(ctx).qt_glEnableVertexAttribArray 861 #else // QT_OPENGL_ES_2 863 #define glGetProgramBinaryOES QGLContextPrivate::extensionFuncs(ctx).qt_glGetProgramBinaryOES 864 #define glProgramBinaryOES QGLContextPrivate::extensionFuncs(ctx).qt_glProgramBinaryOES 866 #endif // QT_OPENGL_ES_2 869 #if !defined(QT_OPENGL_ES_2) 870 #define glStencilOpSeparate QGLContextPrivate::extensionFuncs(ctx).qt_glStencilOpSeparate 871 #define glBlendColor QGLContextPrivate::extensionFuncs(ctx).qt_glBlendColor 874 #if defined(QT_OPENGL_ES_2) 875 #define glClearDepth glClearDepthf 878 #define glProgramParameteriEXT QGLContextPrivate::extensionFuncs(ctx).qt_glProgramParameteriEXT 879 #define glFramebufferTextureEXT QGLContextPrivate::extensionFuncs(ctx).qt_glFramebufferTextureEXT 880 #define glFramebufferTextureLayerEXT QGLContextPrivate::extensionFuncs(ctx).qt_glFramebufferTextureLayerEXT 881 #define glFramebufferTextureFaceEXT QGLContextPrivate::extensionFuncs(ctx).qt_glFramebufferTextureFaceEXT 883 #if !defined(QT_OPENGL_ES) 884 #define glCompressedTexImage2D QGLContextPrivate::extensionFuncs(ctx).qt_glCompressedTexImage2DARB 889 #define glEGLImageTargetTexture2DOES QGLContextPrivate::extensionFuncs(ctx).qt_glEGLImageTargetTexture2DOES 890 #define glEGLImageTargetRenderbufferStorageOES QGLContextPrivate::extensionFuncs(ctx).qt_glEGLImageTargetRenderbufferStorageOES 909 #endif // QGL_EXTENSIONS_P_H void(APIENTRY * _glActiveStencilFaceEXT)(GLenum)
void(APIENTRY * _glUniformMatrix4x2fv)(GLint, GLsizei, GLboolean, const GLfloat *)
_glUniformMatrix3x2fv qt_glUniformMatrix3x2fv
_glUniform4fv qt_glUniform4fv
void(APIENTRY * _glGetFramebufferAttachmentParameteriv)(GLenum target, GLenum attachment, GLenum pname, GLint *params)
void(APIENTRY * _glUniformMatrix4x3fv)(GLint, GLsizei, GLboolean, const GLfloat *)
_glShaderBinary qt_glShaderBinary
_glDisableVertexAttribArray qt_glDisableVertexAttribArray
_glUniform2fv qt_glUniform2fv
_glUniformMatrix4x2fv qt_glUniformMatrix4x2fv
void(APIENTRY * _glProgramLocalParameter4fvARB)(GLenum, GLuint, const GLfloat *)
GLvoid *(APIENTRY * _glMapBufferARB)(GLenum, GLenum)
#define QT_END_NAMESPACE
This macro expands to.
_glBindProgramARB qt_glBindProgramARB
bool qt_resolve_version_1_3_functions(QGLContext *ctx)
void(APIENTRY * _glUniformMatrix2x3fv)(GLint, GLsizei, GLboolean, const GLfloat *)
_glGenFramebuffers qt_glGenFramebuffers
void(APIENTRY * _glUniformMatrix4fv)(GLint, GLsizei, GLboolean, const GLfloat *)
GLint(APIENTRY * _glGetAttribLocation)(GLuint, const char *)
_glLinkProgram qt_glLinkProgram
_glBindFramebuffer qt_glBindFramebuffer
_glBindBuffer qt_glBindBuffer
GLuint(APIENTRY * _glCreateShader)(GLenum)
GLenum(APIENTRY * _glCheckFramebufferStatus)(GLenum target)
_glRenderbufferStorageMultisampleEXT qt_glRenderbufferStorageMultisampleEXT
_glFramebufferTexture2D qt_glFramebufferTexture2D
_glDeleteFramebuffers qt_glDeleteFramebuffers
GLboolean(APIENTRY * _glIsFramebuffer)(GLuint framebuffer)
void(APIENTRY * _glDeleteFramebuffers)(GLsizei n, const GLuint *framebuffers)
_glCreateProgram qt_glCreateProgram
void(APIENTRY * _glBindFramebuffer)(GLenum target, GLuint framebuffer)
_glGetShaderInfoLog qt_glGetShaderInfoLog
_glDetachShader qt_glDetachShader
_glMultiTexCoord4f qt_glMultiTexCoord4f
_glIsFramebuffer qt_glIsFramebuffer
_glGenProgramsARB qt_glGenProgramsARB
void(APIENTRY * _glShaderSource)(GLuint, GLsizei, const char **, const GLint *)
_glDeleteBuffers qt_glDeleteBuffers
void(APIENTRY * _glMultiTexCoord4f)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat)
void(APIENTRY * _glDeleteProgramsARB)(GLsizei, const GLuint *)
_glUniformMatrix3x4fv qt_glUniformMatrix3x4fv
void(APIENTRY * _glUniform4fv)(GLint, GLsizei, const GLfloat *)
_glAttachShader qt_glAttachShader
_glEnableVertexAttribArray qt_glEnableVertexAttribArray
_glDeleteProgram qt_glDeleteProgram
void(APIENTRY * _glGetRenderbufferParameteriv)(GLenum target, GLenum pname, GLint *params)
void(APIENTRY * _glUniform3fv)(GLint, GLsizei, const GLfloat *)
_glCheckFramebufferStatus qt_glCheckFramebufferStatus
bool qt_resolve_frag_program_extensions(QGLContext *ctx)
void(APIENTRY * _glAttachShader)(GLuint, GLuint)
void(APIENTRY * _glUseProgram)(GLuint)
void(APIENTRY * _glGetProgramBinaryOES)(GLuint, GLsizei, GLsizei *, GLenum *, void *)
void(APIENTRY * _glGetShaderSource)(GLuint, GLsizei, GLsizei *, char *)
void(APIENTRY * _glUniformMatrix2fv)(GLint, GLsizei, GLboolean, const GLfloat *)
bool Q_OPENGL_EXPORT qt_resolve_version_2_0_functions(QGLContext *ctx)
_glBufferData qt_glBufferData
_glGetShaderiv qt_glGetShaderiv
void(APIENTRY * _glBindAttribLocation)(GLuint, GLuint, const char *)
_glVertexAttribPointer qt_glVertexAttribPointer
void(APIENTRY * _glVertexAttribPointer)(GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *)
_glUniformMatrix2x4fv qt_glUniformMatrix2x4fv
void(APIENTRY * _glBindBuffer)(GLenum, GLuint)
_glCompileShader qt_glCompileShader
void(APIENTRY * _glDetachShader)(GLuint, GLuint)
_glIsProgram qt_glIsProgram
void(APIENTRY * _glEGLImageTargetRenderbufferStorageOES)(GLenum, EGLImageKHR)
_glGetBufferParameteriv qt_glGetBufferParameteriv
_glGetShaderSource qt_glGetShaderSource
void(APIENTRY * _glEGLImageTargetTexture2DOES)(GLenum, EGLImageKHR)
void(APIENTRY * _glGetBufferParameteriv)(GLenum, GLenum, GLint *)
_glIsShader qt_glIsShader
void(APIENTRY * _glBufferSubData)(GLenum, GLintptrARB, GLsizeiptrARB, const GLvoid *)
void(APIENTRY * _glGenProgramsARB)(GLsizei, GLuint *)
#define QT_BEGIN_NAMESPACE
This macro expands to.
void(APIENTRY * _glUniform1fv)(GLint, GLsizei, const GLfloat *)
_glGenerateMipmap qt_glGenerateMipmap
void(APIENTRY * _glUniformMatrix2x4fv)(GLint, GLsizei, GLboolean, const GLfloat *)
_glUniformMatrix4x3fv qt_glUniformMatrix4x3fv
_glGetAttribLocation qt_glGetAttribLocation
void(APIENTRY * _glRenderbufferStorageMultisampleEXT)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
_glUniformMatrix2x3fv qt_glUniformMatrix2x3fv
_glEGLImageTargetTexture2DOES qt_glEGLImageTargetTexture2DOES
_glUnmapBufferARB qt_glUnmapBufferARB
_glGetFramebufferAttachmentParameteriv qt_glGetFramebufferAttachmentParameteriv
void(APIENTRY * _glUniformMatrix3x2fv)(GLint, GLsizei, GLboolean, const GLfloat *)
void(APIENTRY * _glLinkProgram)(GLuint)
The QGLContext class encapsulates an OpenGL rendering context.
_glGetProgramiv qt_glGetProgramiv
void(APIENTRY * _glBindRenderbuffer)(GLenum target, GLuint renderbuffer)
_glProgramLocalParameter4fvARB qt_glProgramLocalParameter4fvARB
GLboolean(APIENTRY * _glIsShader)(GLuint)
_glDeleteProgramsARB qt_glDeleteProgramsARB
void(APIENTRY * _glBufferData)(GLenum, GLsizeiptrARB, const GLvoid *, GLenum)
_glVertexAttrib4fv qt_glVertexAttrib4fv
void(APIENTRY * _glRenderbufferStorage)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
void(APIENTRY * _glGenerateMipmap)(GLenum target)
void(APIENTRY * _glBlitFramebufferEXT)(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, GLbitfield mask, GLenum filter)
_glUniform3fv qt_glUniform3fv
void(APIENTRY * _glFramebufferTextureFaceEXT)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face)
_glActiveStencilFaceEXT qt_glActiveStencilFaceEXT
Q_OPENGL_EXPORT bool qt_resolve_eglimage_gl_extensions(QGLContext *ctx)
void(APIENTRY * _glStencilOpSeparate)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
void(APIENTRY * _glFramebufferTextureEXT)(GLenum target, GLenum attachment, GLuint texture, GLint level)
bool Q_OPENGL_EXPORT qt_resolve_buffer_extensions(QGLContext *ctx)
_glBufferSubData qt_glBufferSubData
void(APIENTRY * _glBindProgramARB)(GLenum, GLuint)
void(APIENTRY * _glGenRenderbuffers)(GLsizei n, GLuint *renderbuffers)
void(APIENTRY * _glProgramStringARB)(GLenum, GLenum, GLsizei, const GLvoid *)
void(APIENTRY * _glGetBufferSubData)(GLenum, GLintptrARB, GLsizeiptrARB, GLvoid *)
void(APIENTRY * _glFramebufferTextureLayerEXT)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
_glGetBufferSubData qt_glGetBufferSubData
void(APIENTRY * _glProgramParameteriEXT)(GLuint program, GLenum pname, GLint value)
void(APIENTRY * _glGetProgramiv)(GLuint, GLenum, GLint *)
_glProgramParameteriEXT qt_glProgramParameteriEXT
_glGenBuffers qt_glGenBuffers
void(APIENTRY * _glUniform1iv)(GLint, GLsizei, const GLint *)
void(APIENTRY * _glDeleteProgram)(GLuint)
_glGetProgramInfoLog qt_glGetProgramInfoLog
_glIsRenderbuffer qt_glIsRenderbuffer
_glUniform1i qt_glUniform1i
_glBindAttribLocation qt_glBindAttribLocation
void(APIENTRY * _glVertexAttrib3fv)(GLuint, const GLfloat *)
GLboolean(APIENTRY * _glIsRenderbuffer)(GLuint renderbuffer)
_glBlitFramebufferEXT qt_glBlitFramebufferEXT
void(APIENTRY * _glShaderBinary)(GLint, const GLuint *, GLenum, const void *, GLint)
void(APIENTRY * _glGetShaderiv)(GLuint, GLenum, GLint *)
_glUniformMatrix4fv qt_glUniformMatrix4fv
_glFramebufferTextureEXT qt_glFramebufferTextureEXT
void(APIENTRY * _glVertexAttrib4fv)(GLuint, const GLfloat *)
GLboolean(APIENTRY * _glIsProgram)(GLuint)
_glDeleteRenderbuffers qt_glDeleteRenderbuffers
void(APIENTRY * _glDeleteShader)(GLuint)
_glBindRenderbuffer qt_glBindRenderbuffer
void(APIENTRY * _glGenBuffers)(GLsizei, GLuint *)
_glVertexAttrib3fv qt_glVertexAttrib3fv
void(APIENTRY * _glUniformMatrix3x4fv)(GLint, GLsizei, GLboolean, const GLfloat *)
_glProgramStringARB qt_glProgramStringARB
void(APIENTRY * _glActiveTexture)(GLenum)
_glUniformMatrix3fv qt_glUniformMatrix3fv
_glGenRenderbuffers qt_glGenRenderbuffers
_glVertexAttrib2fv qt_glVertexAttrib2fv
bool qt_resolve_stencil_face_extension(QGLContext *ctx)
void(APIENTRY * _glCompileShader)(GLuint)
void(APIENTRY * _glGenFramebuffers)(GLsizei n, GLuint *framebuffers)
_glBlendColor qt_glBlendColor
_glUniform1iv qt_glUniform1iv
_glGetUniformLocation qt_glGetUniformLocation
_glRenderbufferStorage qt_glRenderbufferStorage
void(APIENTRY * _glDisableVertexAttribArray)(GLuint)
_glStencilOpSeparate qt_glStencilOpSeparate
QFuture< void > filter(Sequence &sequence, FilterFunction filterFunction)
void(APIENTRY * _glVertexAttrib2fv)(GLuint, const GLfloat *)
void(APIENTRY * _glProgramBinaryOES)(GLuint, GLenum, const void *, GLint)
void(APIENTRY * _glGetProgramInfoLog)(GLuint, GLsizei, GLsizei *, char *)
_glGetRenderbufferParameteriv qt_glGetRenderbufferParameteriv
_glFramebufferRenderbuffer qt_glFramebufferRenderbuffer
void(APIENTRY * _glDeleteRenderbuffers)(GLsizei n, const GLuint *renderbuffers)
bool qt_resolve_framebufferobject_extensions(QGLContext *ctx)
_glUniformMatrix2fv qt_glUniformMatrix2fv
_glCreateShader qt_glCreateShader
_glCompressedTexImage2DARB qt_glCompressedTexImage2DARB
void(APIENTRY * _glFramebufferRenderbuffer)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
_glUseProgram qt_glUseProgram
void(APIENTRY * _glGetShaderInfoLog)(GLuint, GLsizei, GLsizei *, char *)
void(APIENTRY * _glDeleteBuffers)(GLsizei, const GLuint *)
void(APIENTRY * _glBlendColor)(GLclampf, GLclampf, GLclampf, GLclampf)
_glEGLImageTargetRenderbufferStorageOES qt_glEGLImageTargetRenderbufferStorageOES
void(APIENTRY * _glUniform2fv)(GLint, GLsizei, const GLfloat *)
void(APIENTRY * _glEnableVertexAttribArray)(GLuint)
_glShaderSource qt_glShaderSource
GLuint(APIENTRY * _glCreateProgram)()
bool qt_resolve_glsl_extensions(QGLContext *ctx)
void(APIENTRY * _glVertexAttrib1fv)(GLuint, const GLfloat *)
void(APIENTRY * _glFramebufferTexture2D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
void(APIENTRY * _glUniform1i)(GLint, GLint)
_glMapBufferARB qt_glMapBufferARB
void(APIENTRY * _glUniformMatrix3fv)(GLint, GLsizei, GLboolean, const GLfloat *)
_glDeleteShader qt_glDeleteShader
_glActiveTexture qt_glActiveTexture
bool qt_bufferFuncsResolved
void(APIENTRY * _glCompressedTexImage2DARB)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *)
GLboolean(APIENTRY * _glUnmapBufferARB)(GLenum)
_glFramebufferTextureFaceEXT qt_glFramebufferTextureFaceEXT
_glUniform1fv qt_glUniform1fv
_glFramebufferTextureLayerEXT qt_glFramebufferTextureLayerEXT
GLuint(APIENTRY * _glGetUniformLocation)(GLuint, const char *)
_glVertexAttrib1fv qt_glVertexAttrib1fv