Results 1 to 4 of 4

Thread: QGLFunctions missing some functions.

  1. #1
    Join Date
    Mar 2014
    Posts
    12
    Qt products
    Qt5
    Platforms
    Windows

    Default QGLFunctions missing some functions.

    I’m trying to write a Qt + OpenGL desktop application, and I find it seems to be missing an important function that I need. In this case its VertexAttribDivisor. Is this because Qt only implements OpenGL ES? Thanks!

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QGLFunctions missing some functions.

    You are not including/inheriting the appropriate versioned OpenGL functions header for OpenGL 3.3 or later, or your machine does not have OpenGL 3.3 capable drivers/hardware.
    See the OpenGL example and use QOpenGLFunctions_3_3.

  3. #3
    Join Date
    Mar 2014
    Posts
    12
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QGLFunctions missing some functions.

    Does this exclude "QGLFunctions"?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QGLFunctions missing some functions.

    As the docs say, QGLFunctions provides a wrapper for OpenGL/ES 2.0 and is deprecated in Qt 5. In Qt 5 the equivalent is QOpenGLFunctions. Support for other OpenGL versions is described here.

    In Qt4 you use the OpenGl library directly to get other OpenGL versions.

Similar Threads

  1. Strange error with QGLFunctions
    By Zamaster in forum Qt Programming
    Replies: 4
    Last Post: 7th March 2014, 15:09
  2. API functions in Qt?
    By Ali Reza in forum Newbie
    Replies: 3
    Last Post: 6th June 2012, 01:28
  3. Replies: 0
    Last Post: 19th April 2012, 15:52
  4. using functions in different forms
    By vishnu5 in forum General Programming
    Replies: 1
    Last Post: 4th February 2008, 19:37
  5. name of exported dll functions
    By vrudolf in forum General Programming
    Replies: 2
    Last Post: 30th July 2006, 20:18

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.