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. what is differences between Qt Opengl & Pure Opengl?

what is differences between Qt Opengl & Pure Opengl?

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 4 Posters 3.0k 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.
  • P Offline
    P Offline
    parvizwpf
    wrote on 3 Oct 2017, 06:55 last edited by parvizwpf 10 Mar 2017, 06:59
    #1

    as qt documentation:
    "The Qt OpenGL module makes it easy to use OpenGL in Qt applications. It provides an OpenGL widget class that can be used just like any other Qt widget, except that it opens an OpenGL display buffer where you can use the OpenGL API to render the contents."
    but i don't understand differences between real opengl libraries such as GLUT,GLFW,GLEW and Qt opengl.
    are they same?
    can i write and run every opengl code that i see in all non qt tutorials on web in the Qt opengl and Qt Creator?
    please help...thanks

    A 1 Reply Last reply 3 Oct 2017, 11:48
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 3 Oct 2017, 08:50 last edited by sierdzio 10 Mar 2017, 10:55
      #2

      I'm not very familiar with OpenGL, but as far as I understand the answer is yes, you can use "real" OpenGL calls inside QOpenGLWidget. The only thing that Qt provides are (optional) convenience wrappers for OpenGL functions, and the actual widget itself.

      (Z(:^

      1 Reply Last reply
      1
      • P parvizwpf
        3 Oct 2017, 06:55

        as qt documentation:
        "The Qt OpenGL module makes it easy to use OpenGL in Qt applications. It provides an OpenGL widget class that can be used just like any other Qt widget, except that it opens an OpenGL display buffer where you can use the OpenGL API to render the contents."
        but i don't understand differences between real opengl libraries such as GLUT,GLFW,GLEW and Qt opengl.
        are they same?
        can i write and run every opengl code that i see in all non qt tutorials on web in the Qt opengl and Qt Creator?
        please help...thanks

        A Offline
        A Offline
        arsinte_andrei
        wrote on 3 Oct 2017, 11:48 last edited by
        #3

        @parvizwpf Yes you can follow any tutorial from internet about OpenGL as long as is written in C++ and you include the libraries (you have to download them if you are in windows - and you should already have them if you are in Linux)

        1 Reply Last reply
        0
        • P Offline
          P Offline
          parvizwpf
          wrote on 3 Oct 2017, 13:25 last edited by
          #4

          hi and thanks for your useful posts.
          arsinte_andrei can you tell me how?
          do you have a link or toturial for doing it on windows?

          A 1 Reply Last reply 3 Oct 2017, 14:30
          0
          • P parvizwpf
            3 Oct 2017, 13:25

            hi and thanks for your useful posts.
            arsinte_andrei can you tell me how?
            do you have a link or toturial for doing it on windows?

            A Offline
            A Offline
            arsinte_andrei
            wrote on 3 Oct 2017, 14:30 last edited by
            #5

            @parvizwpf sure ... there is a lot of info about how to do it...
            have a look first here https://www.khronos.org/opengl/wiki/Getting_Started
            and also here
            https://www.opengl.org/
            you will see to download the sdk for windows...

            1 Reply Last reply
            0
            • P Offline
              P Offline
              parvizwpf
              wrote on 3 Oct 2017, 16:32 last edited by
              #6

              thanks ok. then of downloading it how can i use it in qt?
              is that same as visual studio opengl install or not?

              A 1 Reply Last reply 3 Oct 2017, 17:11
              0
              • P parvizwpf
                3 Oct 2017, 16:32

                thanks ok. then of downloading it how can i use it in qt?
                is that same as visual studio opengl install or not?

                A Offline
                A Offline
                arsinte_andrei
                wrote on 3 Oct 2017, 17:11 last edited by
                #7

                @parvizwpf honestly you have to look on this.. should be some examples there. you should link to the library only and run your program... but better to check their examples and howtos ... you have them in the links that I've already provided... I'm using Ubuntu Linux... I don't know much of windows...

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 3 Oct 2017, 19:55 last edited by
                  #8

                  Hi,

                  Qt does all the platform specific initialisation that can be very convoluted depending on the OS. It also provides useful helper class to help manage OpenGL resources (shaders, vbo, etc.) So basically you don't have to install additional helper libraries like GLEW to write your OpenGL based application.

                  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
                  • P Offline
                    P Offline
                    parvizwpf
                    wrote on 4 Oct 2017, 05:07 last edited by
                    #9

                    thanks friends for your good helps.

                    1 Reply Last reply
                    0

                    4/9

                    3 Oct 2017, 13:25

                    • Login

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