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. OpenGL 3.1 glBindBuffer, glDeleteBuffer, etc. calls undeclared despite glext.h and gl.h inclusion
Forum Updated to NodeBB v4.3 + New Features

OpenGL 3.1 glBindBuffer, glDeleteBuffer, etc. calls undeclared despite glext.h and gl.h inclusion

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.6k 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.
  • S Offline
    S Offline
    sreich
    wrote on last edited by
    #1

    Trying to use a QQuickView to render my opengl scene underneath it...

    My game started out as just glew + sdl + opengl, so i'm just using standard function calls here and trying to make qt work with it now, hopefully without glew and its junk.

    The code is below, but I am getting undefineds and I don't understand them.

    e.g.

    /fluidrenderer.cpp:47:5: error: use of undeclared identifier 'glDeleteBuffers'; did you mean 'glSelectBuffer'? [Semantic Issue]
    glDeleteBuffers(1, &m_eboWater);
    ^~~~~~~~~~~~~~~
    glSelectBuffer

    @
    #include <QOpenGLFunctions>
    #include <QOpenGLShaderProgram>
    #include <QOpenGLFramebufferObject>

    #include <GL/glext.h>

    #include <map>
    #include <string>
    #include <vector>

    class FluidRenderer : protected QOpenGLFunctions_3_1_CoreBackend@

    For platform, I'm on archlinux and nvidia's blob. This stuff worked previously..those functions are defined in glext.h but aren't being found somehow.

    Software Developer for KDE

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZapB
      wrote on last edited by
      #2

      Hmmm odd. Can you try replacing the GL/glext.h with

      @
      #include <qopengl.h>
      @

      That should take care of including GL/gl.h and an equivalent of glext.h. What type of build of Qt are you using ES 2 or desktop GL?

      Nokia Certified Qt Specialist
      Interested in hearing about Qt related work

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sreich
        wrote on last edited by
        #3

        Done. I'm just using archlinux-provided packages. I'd assume they were built for desktop, but I'm not sure how to check the flags it was built with.

        I don't notice any changes in particular.

        build errors:

        http://paste.kde.org/p14be92fb/

        Software Developer for KDE

        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