Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Can't Use OpenGL ES 2.0 identifiers
Forum Updated to NodeBB v4.3 + New Features

Can't Use OpenGL ES 2.0 identifiers

Scheduled Pinned Locked Moved Game Development
1 Posts 1 Posters 751 Views 1 Watching
  • 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.
  • F Offline
    F Offline
    Ferobles92
    wrote on last edited by
    #1

    Hello all,

    I have picked up a book on OpenGL ES 2.0 in order to learn its details. In doing so, I have found debugging code in the book that I can't use on Qt. The debugging code uses identifiers such as GL_SHADER_COMPILER, GL_NUM_SHADER_BINARY_FORMATS, GL_SHADER_BINARY_FORMATS, etc...

    Qt Designer will even open up the drop-down menu for me to select these identifiers. However, when I build the program I get "use of undeclared identifier ... "

    Here is the kicker: during my draw code, I can use GL_TRIANGLES just fine.

    Here is a list of all includes I have I think would include those identifiers:

    #include <QCoreApplication>
    #include <QScreen>
    #include <QPainter>
    #include <qopengl.h>
    #include <QOpenGLContext>
    #include <QOpenGLPaintDevice>
    #include <QOpenGLShaderProgram>
    #include <QWindow>
    #include <QOpenGLFunctions>

    Now, this identifiers are not imperative, but they would be nice to have in order to write some debugging code of my own. What I am trying to do is find out is the format of my shader compiler, and the book's sample code uses these identifiers.

    What am I missing to use those identifiers???

    Thanks in advance.

    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