VirtualBox

Changeset 94137 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Mar 8, 2022 10:10:28 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150386
Message:

OpenGLTest: qt6 adjustments. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGL2D.h

    r93115 r94137  
    237237extern PFNVBOXVHWA_FRAMEBUFFER_TEXTURE3D vboxglFramebufferTexture3D;
    238238extern 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)
     248class QOpenGLWidget;
     249class QOpenGLContext;
     250# define MY_QOpenGLWidget   QOpenGLWidget
     251# define MY_QOpenGLContext  QOpenGLContext
     252#else
     253class QGLWidget;
     254class QGLContext;
     255# define MY_QOpenGLWidget   QGLWidget
     256# define MY_QOpenGLContext  QGLContext
     257#endif
    239258
    240259
     
    262281    {}
    263282
    264     void init(const class QGLContext * pContext);
     283    void init(const MY_QOpenGLContext *pContext);
    265284
    266285    bool isInitialized() const { return mInitialized; }
     
    280299    static int parseVersion(const GLubyte * ver);
    281300private:
    282     void initExtSupport(const class QGLContext & context);
     301    void initExtSupport(const MY_QOpenGLContext &context);
    283302
    284303    int mGLVersion;
     
    309328    ~VBoxGLTmpContext();
    310329
    311     const class QGLContext * makeCurrent();
     330    const MY_QOpenGLContext *makeCurrent();
    312331private:
    313     class QGLWidget * mWidget;
     332    MY_QOpenGLWidget *mWidget;
    314333};
    315334
     
    339358    {}
    340359
    341     void init(const class QGLContext * pContext);
     360    void init(const MY_QOpenGLContext *pContext);
    342361
    343362    bool isInitialized() const { return mInitialized; }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette