Setting Up a Tessillation Shader

Hey all,
I am trying to make a tessilation shader from scratch. It shows “GL_TESS_CONTROL_SHADER was not declared in this scope” and “GL_TESS_CONTROL_SHADER was not declared in this scope”. Please let me know where I am wrong.

Link to Code
Triangle: http://codepad.org/ib3dL9Ni

Main: http://codepad.org/cT2wlaS2

Thanks and Regards,

From your output, the Utils.h is missing. Are you using some extension loader like glew? You have to include something that defines the GL_TESS_CONTROL_SHADER constant and loads the openGL functions at runtime.

Thanks menzel. Actually, problem was that I didn’t use the latest GLEW library.

Cheers,

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.