Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Quick 2.0 & OpenGL (ES 3.0) & GLEW
Forum Updated to NodeBB v4.3 + New Features

Qt Quick 2.0 & OpenGL (ES 3.0) & GLEW

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 4.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    matti-
    wrote on last edited by
    #1

    So I started working on a small project around OpenGL ES 3.0.. I want to build it around Qt Quick 2.0 (using Qt 5.2 RC1 for now) and took this example as the starting point: http://qt-project.org/doc/qt-5.0/qtquick/scenegraph-openglunderqml.html

    However I want to run this on desktop builds as well so I need GLEW and this does not play along at all with #import <QOpenGLContext>. I am writing portable opengl code so I will not use the QTOpenGL stuff except for bootstrapping / getting a context to draw on.

    Is there any way around this?

    • Matti

    Author of <a href="http://mmark.777-team.org/">MMark13</a>

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Why not use the "QAbstractOpenGLFunctions":http://qt-project.org/doc/qt-5.1/qtgui/qabstractopenglfunctions.html classes ? You wouldn't need glew that way

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        matti-
        wrote on last edited by
        #3

        As a Qt's c++ API this is not portable; what I'm looking for is a way to use the standard OpenGL C API. With Qt 4 I used QGLWidget based structure, with GLEW providing the API on desktop and GLES 2.0 providing it on the device builds.

        • Matti

        Author of <a href="http://mmark.777-team.org/">MMark13</a>

        1 Reply Last reply
        0
        • M Offline
          M Offline
          matti-
          wrote on last edited by
          #4

          Also there seems not to be support for GLES 3.0 - I see QOpenGLFunctions_ES2 but not QOpenGLFunctions_ES3.

          Wonder if its possible to force a GLES 3.0 context for a QQuickWindow and then dig the missing function addresses up with QOpenGLContext::getProcAddress().

          • M

          Author of <a href="http://mmark.777-team.org/">MMark13</a>

          1 Reply Last reply
          0
          • M Offline
            M Offline
            matti-
            wrote on last edited by
            #5

            Cannot seem to find an up-to-date roadmap for Qt 5.x. Would be immensely interested to hear when GLES 3.0 support is coming since such devices already exist on the market.

            • Matti

            Author of <a href="http://mmark.777-team.org/">MMark13</a>

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You should then ask on the interest mailing list, you'll have more chances to get an answer

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SteveG
                wrote on last edited by
                #7

                Matti,

                It appears that GLEW works with Qt, although I've seen nothing official about support. See this "post":http://stackoverflow.com/questions/17123100/glew-and-qt5-redefinition-of-headers

                I've looked for roadmaps for Qt and Qt Creator but haven't found anything useful. Let us know if you find anything.

                Steve

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved