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. [Solved] Simplest Vertex/Fragment Shaders using QGLWidget Derivation
QtWS25 Last Chance

[Solved] Simplest Vertex/Fragment Shaders using QGLWidget Derivation

Scheduled Pinned Locked Moved General and Desktop
29 Posts 3 Posters 22.5k Views
  • 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.
  • Z Offline
    Z Offline
    ZapB
    wrote on last edited by
    #21

    No worries, real life happens - especially when nice weather lands ;-)

    I have just checked and the patch to Qt master that I mentioned earlier has no been applied. So now shaders should work even if you select the Core profile.

    The main part of the patch is in src/opengl/qgl.cpp in the helper class QGLExtensionMatcher found "here":https://qt.gitorious.org/qt/qt/blobs/master/src/opengl/qgl.cpp#line5373.

    The corresponding commit message was:

    @
    commit 2f59eaeee1fbe33d07b0e7d0747afd8658df95ac
    Author: Samuel R<C3><B8>dal sroedal@trolltech.com
    Date: Wed May 26 16:39:02 2010 +0200

    Made extension resolving work with Core profile.
    
    The Core profile was introduced in OpenGL 3.2 and if chosen removes
    all deprecated functionality from the OpenGL API.
    
    In the Core profile glGetString(GL_EXTENSIONS) is unsupported, so
    instead we need to use glGetStringi(GL_EXTENSIONS, index) together with
    glGetIntegerv(GL_NUM_EXTENSIONS). Also optimized the QGLExtensionMatcher
    to not have to recompute the split positions all the time.
    
    Preliminary support to prevent non-core-functions to be called in the GL
    2 engine has also been added.
    
    Reviewed-by: Kim
    

    @

    Nokia Certified Qt Specialist
    Interested in hearing about Qt related work

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hornsj2
      wrote on last edited by
      #22

      removed.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hornsj2
        wrote on last edited by
        #23

        The fact that I can't just configure/nmake like I do with qt-everywhere-opensource is crushing my soul to the point where I'm going to call it for the night. I'll have to figure out this workflow.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hornsj2
          wrote on last edited by
          #24

          I'm just going to diff my changes with the repository and not worry about building from gitorious.

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            ZapB
            wrote on last edited by
            #25

            If you are trying to build a checkout from gitorious you need to have perl installed. The reason is that the configure script calls a perl script called syncqt which is used to create the camelcase forwarding headers that allow you to do this:

            @#include <QCoreApplication>@

            These headers are generated to simply contain something like

            @#include "../include/qtcore/qcoreapplication.h"@

            I fell for this same problem too on windows. On linux it just works since perl is nearly always already available.

            Edit: fixed typo.

            Nokia Certified Qt Specialist
            Interested in hearing about Qt related work

            1 Reply Last reply
            0
            • H Offline
              H Offline
              Hornsj2
              wrote on last edited by
              #26

              Great answer again, thank you. I posted the same question in the correct forum. I'm going to consider this thread closed and move my updates to my tessellation shader thread.

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                ZapB
                wrote on last edited by
                #27

                No problem. You're welcome.

                Nokia Certified Qt Specialist
                Interested in hearing about Qt related work

                1 Reply Last reply
                0
                • Z Offline
                  Z Offline
                  ZapB
                  wrote on last edited by
                  #28

                  Sorry to bump an old thread but I've just written a related "wiki article":http://developer.qt.nokia.com/wiki/How_to_use_OpenGL_Core_Profile_with_Qt on this topic that shows how to use the OpenGL Core profile with Qt using some very simple shaders and a single triangle.

                  Nokia Certified Qt Specialist
                  Interested in hearing about Qt related work

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    number23
                    wrote on last edited by
                    #29

                    moved to new "thread":http://developer.qt.nokia.com/forums/viewthread/11031/

                    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