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. GLenum use of undeclared identifier bug in Xcode

GLenum use of undeclared identifier bug in Xcode

Scheduled Pinned Locked Moved General and Desktop
glenumxcode
6 Posts 2 Posters 3.1k Views 2 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.
  • A Offline
    A Offline
    akilone
    wrote on last edited by
    #1

    I started doing Qt project in Visual Studio 2013, then I wanted to port project to Xcode on Mac. But I have problem compiling it in Xcode, strange error appears: Use of undeclared identifier 'GL_PRIMITIVE_RESTART_FIXED_INDEX' .

    I check all of includes, I don't know what else can be source of error. As I mentioned, everything compiles fine in Visual Studio 2013. Every other GLenum seems to work, but GL_PRIMITIVE_RESTART_FIXED_INDEX is not recognized. Is there difference between version for Mac and PC?
    I should mention that I use Qt's OpenGL functionality.

    Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which version of Qt and Xcode are you using ?

      Difference in OpenGL between OS X and Windows ? Sure there is, both OS offer different support for it that Qt tries to leverage so that you don't have to go into the gory details.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Which version of Qt and Xcode are you using ?

        Difference in OpenGL between OS X and Windows ? Sure there is, both OS offer different support for it that Qt tries to leverage so that you don't have to go into the gory details.

        A Offline
        A Offline
        akilone
        wrote on last edited by akilone
        #3

        Hi, I'm using Qt 5.4 and Xcode 6.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by SGaist
          #4

          Just checked, GL_PRIMITIVE_RESTART_FIXED_INDEX comes with OpenGL 4.3 and currently it seems that OS X 10.9 and 10.10 are implementing OpenGL 4.1

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • A Offline
            A Offline
            akilone
            wrote on last edited by
            #5

            Thanks @SGaist.

            Is there alternative to functionality of GL_PRIMITIVE_RESTART_FIXED_INDEX? I need to draw multiple geometric primitives (for example few triangle strips for cylinder), and I did it by passing list of all indices and restarting index with null element in list. How can I have same functionality in OpenGL 4.1?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Sorry, I don't know OpenGL well enough to propose you an alternative/workaround to emulate that behavior.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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