GLenum use of undeclared identifier bug in Xcode
-
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
-
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.
-
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
-
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?
-
Sorry, I don't know OpenGL well enough to propose you an alternative/workaround to emulate that behavior.