Results 1 to 1 of 1

Thread: qtopengl es 3.0 support

  1. #1
    Join Date
    Jul 2016
    Posts
    18
    Thanks
    3
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: qtopengl es 3.0 support

    Hello and thank you for stopping by.

    imx6q
    qt 5.7
    3.14.52

    I have an error in my qtopengl code that has to do with versioning. It seems qt supports opengl es 2.0 without question (for me anyways). I have queried the hardware and here is the results...

    Qt Code:
    1. Opengl vendor 'Vivante Corporation'
    2. renderer 'Vivante GC2000'
    3. version 'OpenGL ES 3.0 V5.0.11.p7.33433'
    4.  
    5. 12 hardware units can access texture data from vertex and fragment processors
    6. 8 hardware units can access texture data from fragment processors
    7. 4 hardware units can access texture data from vertex processors
    8. 4 hardware units can access texture data from vertex processors
    To copy to clipboard, switch view to plain text mode 

    This means that I should be able to write es 3.0 vertex and fragment shaders and use the es 3.0 APIs to compile such things. Compiling the first shader gives me an error.

    Qt Code:
    1. (2:0) : error : syntax error at 'layout'
    To copy to clipboard, switch view to plain text mode 

    What I have figured out is that the built rootfs has opengl libs for gles2 and i am assuming what I want is gles3. So there is the question(s)...

    As my hardware supports 3.0 and it seems qt does support the 3.0 and well beyond functions, how am I supposed to get the correct rootfs files as well as my Qt project on my host to support opengl 3.0?

    info::

    1) my .pro does have "QT += gui"

    2) in a .h file
    Qt Code:
    1. #include <QOpenGLFunctions_3_0>
    2. #include <GLES3/gl3.h>
    To copy to clipboard, switch view to plain text mode 

    3) in a .h file
    Qt Code:
    1. class myClass : public QObject, protected QOpenGLFunctions // works
    2. class myClass : public QObject, protected QOpenGLFunctions_3_0 // does not work
    To copy to clipboard, switch view to plain text mode 

    4) same .h file without the class definition error
    Qt Code:
    1. class myClass : public QObject, protected QOpenGLFunctions // works
    2. protected:
    3. QOpenGLFunctions_3_0* m_ogl300Funcs; // "error: 'QOpenGLFunctions_3_0' does not name a type QOpenGLFunctions_3_0* m_ogl300Funcs;"
    To copy to clipboard, switch view to plain text mode 

    I am unsure how Qt shows to have all of this opengl version support as well as my hardware but yet I can't use it. Stop teasing, please. 8^)





    Added after 13 minutes:


    I found this is the answer...QOpenGLExtraFunctions.

    Unless someone has other pointers, I think this is what I am seeing is the answer.
    Last edited by PeterVE; 31st August 2016 at 16:18. Reason: don't need the original wording

Similar Threads

  1. [QtOpenGL] gl_blend vs MultiSampled
    By muby in forum Qt Programming
    Replies: 0
    Last Post: 31st December 2012, 01:15
  2. Updating Window QTOpenGL
    By xleniz in forum Newbie
    Replies: 9
    Last Post: 23rd February 2012, 19:01
  3. QtOpenGL/qgl.h change between 4.7.3 and 4.8
    By hml in forum Qt Programming
    Replies: 6
    Last Post: 28th January 2012, 19:38
  4. QtOpenGL example problem on wince6
    By lamosca in forum Installation and Deployment
    Replies: 1
    Last Post: 21st April 2010, 17:56
  5. QtOpenGL how to draw text?
    By AndreaCe in forum Qt Programming
    Replies: 0
    Last Post: 22nd July 2009, 01:50

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.