I decided to spend the day investigating the claims to a) see if they were true, and b) see how I could replicate this in my own library.
The following video shows how I used the Mac OpenGL profiler to dig into the source code and find out how to do this.
The main code elements you need are the following defines
#ifdef DARWIN #ifndef GL_TESS_CONTROL_SHADER #define GL_TESS_CONTROL_SHADER 0x00008e88 #endif #ifndef GL_TESS_EVALUATION_SHADER #define GL_TESS_EVALUATION_SHADER 0x00008e87 #endif #ifndef GL_PATCHES #define GL_PATCHES 0x0000000e #endif #endifOnce this has been defined somewhere you can use the default OpenGL commands to create a shader, I chose to use the demo code / shader here the main thing to remember is that you must use GL_PATCHES to draw to the tessellation units.
The other problem is that code like
glPatchParameteri(GL_PATCH_VERTICES, 16);is not available as the glPatchParam functions are not exposed, the good news is that you can set all of this in the shader so it is not too much of an issue. The updates have now been rolled into the core ngl library, and I will add some demos soon.