Changeset 846 for trunk/src/opengl/qgl.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/opengl/qgl.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 58 58 # include <OpenGL/gl.h> 59 59 # include <OpenGL/glu.h> 60 #elif defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_1_CL)60 #elif defined(QT_OPENGL_ES_1) 61 61 # include <GLES/gl.h> 62 62 #ifndef GL_DOUBLE … … 145 145 HasOverlay = 0x0100, 146 146 SampleBuffers = 0x0200, 147 147 148 SingleBuffer = DoubleBuffer << 16, 148 149 NoDepthBuffer = DepthBuffer << 16, … … 154 155 IndirectRendering = DirectRendering << 16, 155 156 NoOverlay = HasOverlay << 16, 156 NoSampleBuffers = SampleBuffers << 16 157 NoSampleBuffers = SampleBuffers << 16, 158 NoDeprecatedFunctions = DeprecatedFunctions << 16 157 159 }; 158 160 Q_DECLARE_FLAGS(FormatOptions, FormatOption) … … 236 238 static bool hasOpenGLOverlays(); 237 239 238 enum OpenGLVersionFlag { 240 void setVersion(int major, int minor); 241 int majorVersion() const; 242 int minorVersion() const; 243 244 enum OpenGLContextProfile { 245 NoProfile, 246 CoreProfile, 247 CompatibilityProfile 248 }; 249 250 void setProfile(OpenGLContextProfile profile); 251 OpenGLContextProfile profile() const; 252 253 enum OpenGLVersionFlag { 239 254 OpenGL_Version_None = 0x00000000, 240 255 OpenGL_Version_1_1 = 0x00000001, … … 250 265 OpenGL_ES_CommonLite_Version_1_1 = 0x00000400, 251 266 OpenGL_ES_Version_2_0 = 0x00000800, 252 OpenGL_Version_3_0 = 0x00001000 267 OpenGL_Version_3_0 = 0x00001000, 268 OpenGL_Version_3_1 = 0x00002000, 269 OpenGL_Version_3_2 = 0x00004000, 270 OpenGL_Version_3_3 = 0x00008000, 271 OpenGL_Version_4_0 = 0x00010000 253 272 }; 254 273 Q_DECLARE_FLAGS(OpenGLVersionFlags, OpenGLVersionFlag) … … 263 282 friend Q_OPENGL_EXPORT bool operator==(const QGLFormat&, const QGLFormat&); 264 283 friend Q_OPENGL_EXPORT bool operator!=(const QGLFormat&, const QGLFormat&); 284 285 286 265 287 }; 266 288 … … 269 291 Q_OPENGL_EXPORT bool operator==(const QGLFormat&, const QGLFormat&); 270 292 Q_OPENGL_EXPORT bool operator!=(const QGLFormat&, const QGLFormat&); 293 294 295 296 271 297 272 298 class Q_OPENGL_EXPORT QGLContext … … 360 386 virtual int choosePixelFormat(void* pfd, HDC pdc); 361 387 #endif 362 #if defined(Q_WS_X11) && !defined(QT_OPENGL_ES)388 #if defined(Q_WS_X11) && ) 363 389 virtual void* tryVisual(const QGLFormat& f, int bufDepth = 1); 364 390 virtual void* chooseVisual(); … … 403 429 friend class QGLPixmapBlurFilter; 404 430 friend class QGLExtensions; 431 405 432 friend QGLFormat::OpenGLVersionFlags QGLFormat::openGLVersionFlags(); 406 433 #ifdef Q_WS_MAC … … 415 442 friend class QGLFBOGLPaintDevice; 416 443 friend class QGLPaintDevice; 444 417 445 friend class QX11GLPixmapData; 446 418 447 private: 419 448 Q_DISABLE_COPY(QGLContext)
Note:
See TracChangeset
for help on using the changeset viewer.