src/opengl/qglextensions_p.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   182 
   182 
   183 // EXT_GL_framebuffer_multisample
   183 // EXT_GL_framebuffer_multisample
   184 typedef void (APIENTRY *_glRenderbufferStorageMultisampleEXT) (GLenum target, GLsizei samples,
   184 typedef void (APIENTRY *_glRenderbufferStorageMultisampleEXT) (GLenum target, GLsizei samples,
   185                                                                GLenum internalformat, GLsizei width, GLsizei height);
   185                                                                GLenum internalformat, GLsizei width, GLsizei height);
   186 
   186 
       
   187 // ARB_texture_compression
       
   188 typedef void (APIENTRY *_glCompressedTexImage2DARB) (GLenum, GLint, GLenum, GLsizei,
       
   189                                                      GLsizei, GLint, GLsizei, const GLvoid *);
       
   190 
   187 QT_BEGIN_NAMESPACE
   191 QT_BEGIN_NAMESPACE
   188 
   192 
   189 struct QGLExtensionFuncs
   193 struct QGLExtensionFuncs
   190 {
   194 {
   191     QGLExtensionFuncs() {
   195     QGLExtensionFuncs() {
   287         qt_glGenBuffers = 0;
   291         qt_glGenBuffers = 0;
   288         qt_glBufferData = 0;
   292         qt_glBufferData = 0;
   289 #endif
   293 #endif
   290         qt_glMapBufferARB = 0;
   294         qt_glMapBufferARB = 0;
   291         qt_glUnmapBufferARB = 0;
   295         qt_glUnmapBufferARB = 0;
       
   296 
       
   297 #if !defined(QT_OPENGL_ES)
       
   298         // Texture compression
       
   299         qt_glCompressedTexImage2DARB = 0;
       
   300 #endif
   292     }
   301     }
   293 
   302 
   294 
   303 
   295 #if !defined(QT_OPENGL_ES_2)
   304 #if !defined(QT_OPENGL_ES_2)
   296     _glProgramStringARB qt_glProgramStringARB;
   305     _glProgramStringARB qt_glProgramStringARB;
   395     _glBufferData qt_glBufferData;
   404     _glBufferData qt_glBufferData;
   396 #endif
   405 #endif
   397     _glMapBufferARB qt_glMapBufferARB;
   406     _glMapBufferARB qt_glMapBufferARB;
   398     _glUnmapBufferARB qt_glUnmapBufferARB;
   407     _glUnmapBufferARB qt_glUnmapBufferARB;
   399 
   408 
       
   409 #if !defined(QT_OPENGL_ES)
       
   410     // Texture compression
       
   411     _glCompressedTexImage2DARB qt_glCompressedTexImage2DARB;
       
   412 #endif
   400 };
   413 };
   401 
   414 
   402 
   415 
   403 // OpenGL constants
   416 // OpenGL constants
   404 
   417 
   730 
   743 
   731 #if defined(QT_OPENGL_ES_2)
   744 #if defined(QT_OPENGL_ES_2)
   732 #define glClearDepth glClearDepthf
   745 #define glClearDepth glClearDepthf
   733 #endif
   746 #endif
   734 
   747 
       
   748 #if !defined(QT_OPENGL_ES)
       
   749 #define glCompressedTexImage2D QGLContextPrivate::extensionFuncs(ctx).qt_glCompressedTexImage2DARB
       
   750 #endif
       
   751 
   735 extern bool qt_resolve_framebufferobject_extensions(QGLContext *ctx);
   752 extern bool qt_resolve_framebufferobject_extensions(QGLContext *ctx);
   736 bool qt_resolve_buffer_extensions(QGLContext *ctx);
   753 bool qt_resolve_buffer_extensions(QGLContext *ctx);
   737 
   754 
   738 bool qt_resolve_version_1_3_functions(QGLContext *ctx);
   755 bool qt_resolve_version_1_3_functions(QGLContext *ctx);
   739 bool qt_resolve_version_2_0_functions(QGLContext *ctx);
   756 bool qt_resolve_version_2_0_functions(QGLContext *ctx);