Results 1 to 3 of 3

Thread: An example of triangle in opengl 4.1 with vertex buffer object and simplest shaders

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: An example of triangle in opengl 4.1 with vertex buffer object and simplest shade

    In qgl.h QT 4.7 has OpenGLVersionFlag up to 4.0. To get core profile for 4.1 I used gl3w from https://github.com/skaslev/gl3w. With it shaders compile fine, but QT produces : warning C7568: #version 410 not fully supported on current GPU target profile. Probaly QT has the same bug as glew:
    glGetString(GL_EXTENSIONS) being deprecated, an error is generated, no extension is returned and then GLEW fails to initialize. So currently, it’s not recommended to use GLEW with a core profile context.
    - I havn't check this, but that's possible that both use the same approach to opengl wraping.

  2. #2
    Join Date
    Dec 2010
    Location
    Poland. Jelenia Góra.
    Posts
    7
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: An example of triangle in opengl 4.1 with vertex buffer object and simplest shade

    So. I get from glGetIntegerv(GL_MAJOR_VERSION, &glVersion[0]) and glGetIntegerv(GL_MINOR_VERSION, &glVersion[1]); 4.1 OpenGL version. I initilized GLEW in initializeGL(). So now I can use pure OpenGL calls, because i need a QT for everything else than graphics - just a framework(UI, IO, User input, etc...). For matrices i'm using armadillo. (I'm making fully sepeated classes from qt for graphics - if i need sth. im making adapters...). If you use only shaders there is not so many calls from opengl (You need only: vbo, vba, gldrawelements, glVertexAttrib)...

    So I dont get it why i have 4.1 version if this flag is set up to 4.0.. It works.. So im content...

Similar Threads

  1. Replies: 1
    Last Post: 24th December 2010, 00:15
  2. QGLBuffer instead of Vertex Buffer Object -> How To?
    By FlashMuller in forum Qt Programming
    Replies: 0
    Last Post: 18th November 2010, 11:41
  3. OpenGL shaders and x11 forwarding
    By Wali in forum Qt Programming
    Replies: 0
    Last Post: 2nd November 2010, 21:38
  4. OpenGL Vertex Buffer Array/Object
    By Denarius in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2010, 08:59
  5. Replies: 1
    Last Post: 9th November 2009, 14:16

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.