Changeset 94137 in vbox for trunk/include/VBox
- Timestamp:
- Mar 8, 2022 10:10:28 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150386
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGL2D.h
r93115 r94137 237 237 extern PFNVBOXVHWA_FRAMEBUFFER_TEXTURE3D vboxglFramebufferTexture3D; 238 238 extern PFNVBOXVHWA_GET_FRAMEBUFFER_ATTACHMENT_PARAMETRIV vboxglGetFramebufferAttachmentParameteriv; 239 240 241 /* 242 * Glossing over qt 5 vs 6 differences. 243 * 244 * Note! We could use the qt6 classes in 5, but we probably don't have the 245 * necessary modules in our current qt builds. 246 */ 247 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) 248 class QOpenGLWidget; 249 class QOpenGLContext; 250 # define MY_QOpenGLWidget QOpenGLWidget 251 # define MY_QOpenGLContext QOpenGLContext 252 #else 253 class QGLWidget; 254 class QGLContext; 255 # define MY_QOpenGLWidget QGLWidget 256 # define MY_QOpenGLContext QGLContext 257 #endif 239 258 240 259 … … 262 281 {} 263 282 264 void init(const class QGLContext *pContext);283 void init(const MY_QOpenGLContext *pContext); 265 284 266 285 bool isInitialized() const { return mInitialized; } … … 280 299 static int parseVersion(const GLubyte * ver); 281 300 private: 282 void initExtSupport(const class QGLContext &context);301 void initExtSupport(const MY_QOpenGLContext &context); 283 302 284 303 int mGLVersion; … … 309 328 ~VBoxGLTmpContext(); 310 329 311 const class QGLContext *makeCurrent();330 const MY_QOpenGLContext *makeCurrent(); 312 331 private: 313 class QGLWidget *mWidget;332 MY_QOpenGLWidget *mWidget; 314 333 }; 315 334 … … 339 358 {} 340 359 341 void init(const class QGLContext *pContext);360 void init(const MY_QOpenGLContext *pContext); 342 361 343 362 bool isInitialized() const { return mInitialized; }
Note:
See TracChangeset
for help on using the changeset viewer.