Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. --- qgl.h.old 2010-07-06 07:32:13.000000000 -0300
  2. +++ qgl.h 2010-09-10 06:05:25.000000000 -0300
  3. @@ -57,7 +57,7 @@
  4. #if defined(Q_WS_MAC)
  5. # include <OpenGL/gl.h>
  6. # include <OpenGL/glu.h>
  7. -#elif defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_1_CL)
  8. +#elif defined(QT_OPENGL_ES_1)
  9. # include <GLES/gl.h>
  10. #ifndef GL_DOUBLE
  11. # define GL_DOUBLE GL_FLOAT
  12. @@ -144,6 +144,7 @@
  13. DirectRendering = 0x0080,
  14. HasOverlay = 0x0100,
  15. SampleBuffers = 0x0200,
  16. + DeprecatedFunctions = 0x0400,
  17. SingleBuffer = DoubleBuffer << 16,
  18. NoDepthBuffer = DepthBuffer << 16,
  19. ColorIndex = Rgba << 16,
  20. @@ -153,7 +154,8 @@
  21. NoStereoBuffers = StereoBuffers << 16,
  22. IndirectRendering = DirectRendering << 16,
  23. NoOverlay = HasOverlay << 16,
  24. - NoSampleBuffers = SampleBuffers << 16
  25. + NoSampleBuffers = SampleBuffers << 16,
  26. + NoDeprecatedFunctions = DeprecatedFunctions << 16
  27. };
  28. Q_DECLARE_FLAGS(FormatOptions, FormatOption)
  29. }
  30. @@ -235,7 +237,20 @@
  31. static bool hasOpenGL();
  32. static bool hasOpenGLOverlays();
  33.  
  34. - enum OpenGLVersionFlag {
  35. + void setVersion(int major, int minor);
  36. + int majorVersion() const;
  37. + int minorVersion() const;
  38. +
  39. + enum OpenGLContextProfile {
  40. + NoProfile,
  41. + CoreProfile,
  42. + CompatibilityProfile
  43. + };
  44. +
  45. + void setProfile(OpenGLContextProfile profile);
  46. + OpenGLContextProfile profile() const;
  47. +
  48. + enum OpenGLVersionFlag {
  49. OpenGL_Version_None = 0x00000000,
  50. OpenGL_Version_1_1 = 0x00000001,
  51. OpenGL_Version_1_2 = 0x00000002,
  52. @@ -249,7 +264,11 @@
  53. OpenGL_ES_Common_Version_1_1 = 0x00000200,
  54. OpenGL_ES_CommonLite_Version_1_1 = 0x00000400,
  55. OpenGL_ES_Version_2_0 = 0x00000800,
  56. - OpenGL_Version_3_0 = 0x00001000
  57. + OpenGL_Version_3_0 = 0x00001000,
  58. + OpenGL_Version_3_1 = 0x00002000,
  59. + OpenGL_Version_3_2 = 0x00004000,
  60. + OpenGL_Version_3_3 = 0x00008000,
  61. + OpenGL_Version_4_0 = 0x00010000
  62. };
  63. Q_DECLARE_FLAGS(OpenGLVersionFlags, OpenGLVersionFlag)
  64.  
  65. @@ -262,6 +281,9 @@
  66.  
  67. friend Q_OPENGL_EXPORT bool operator==(const QGLFormat&, const QGLFormat&);
  68. friend Q_OPENGL_EXPORT bool operator!=(const QGLFormat&, const QGLFormat&);
  69. +#ifndef QT_NO_DEBUG_STREAM
  70. + friend Q_OPENGL_EXPORT QDebug operator<<(QDebug, const QGLFormat &);
  71. +#endif
  72. };
  73.  
  74. Q_DECLARE_OPERATORS_FOR_FLAGS(QGLFormat::OpenGLVersionFlags)
  75. @@ -269,6 +291,10 @@
  76. Q_OPENGL_EXPORT bool operator==(const QGLFormat&, const QGLFormat&);
  77. Q_OPENGL_EXPORT bool operator!=(const QGLFormat&, const QGLFormat&);
  78.  
  79. +#ifndef QT_NO_DEBUG_STREAM
  80. +Q_OPENGL_EXPORT QDebug operator<<(QDebug, const QGLFormat &);
  81. +#endif
  82. +
  83. class Q_OPENGL_EXPORT QGLContext
  84. {
  85. Q_DECLARE_PRIVATE(QGLContext)
  86. @@ -359,7 +385,7 @@
  87. #if defined(Q_WS_WIN)
  88. virtual int choosePixelFormat(void* pfd, HDC pdc);
  89. #endif
  90. -#if defined(Q_WS_X11) && !defined(QT_OPENGL_ES)
  91. +#if defined(Q_WS_X11) && defined(QT_NO_EGL)
  92. virtual void* tryVisual(const QGLFormat& f, int bufDepth = 1);
  93. virtual void* chooseVisual();
  94. #endif
  95. @@ -414,7 +440,9 @@
  96. friend class QGLFramebufferObjectPrivate;
  97. friend class QGLFBOGLPaintDevice;
  98. friend class QGLPaintDevice;
  99. + friend class QGLWidgetGLPaintDevice;
  100. friend class QX11GLPixmapData;
  101. + friend class QX11GLSharedContexts;
  102. private:
  103. Q_DISABLE_COPY(QGLContext)
  104. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement